style.css 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995
  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 mandatory;
  76. }
  77. /* All major sections snap to top when scrolling stops */
  78. section[id] {
  79. scroll-snap-align: start;
  80. scroll-snap-stop: always;
  81. }
  82. body {
  83. font-family: var(--font-family);
  84. font-size: var(--font-size-body);
  85. line-height: 1.6;
  86. color: var(--color-text-primary);
  87. background: var(--bg-body);
  88. -webkit-font-smoothing: antialiased;
  89. -moz-osx-font-smoothing: grayscale;
  90. overflow-x: hidden;
  91. }
  92. img { max-width: 100%; height: auto; display: block; }
  93. a { color: inherit; text-decoration: none; }
  94. ul { list-style: none; }
  95. /* ----------------------------------------------------------
  96. 2. Container
  97. ---------------------------------------------------------- */
  98. .container {
  99. width: 100%;
  100. max-width: var(--max-width);
  101. margin: 0 auto;
  102. padding: 0 var(--space-xl);
  103. }
  104. /* ----------------------------------------------------------
  105. 3. Header / Navigation
  106. ---------------------------------------------------------- */
  107. .site-header {
  108. position: fixed;
  109. top: 0;
  110. left: 0;
  111. right: 0;
  112. height: var(--header-height);
  113. background: rgba(245, 250, 254, .92);
  114. backdrop-filter: blur(16px) saturate(180%);
  115. -webkit-backdrop-filter: blur(16px) saturate(180%);
  116. border-bottom: 1px solid var(--color-border-light);
  117. z-index: 1000;
  118. transition: box-shadow var(--transition-normal);
  119. }
  120. .site-header.scrolled {
  121. box-shadow: var(--shadow-sm);
  122. }
  123. .header-inner {
  124. display: flex;
  125. align-items: center;
  126. justify-content: space-between;
  127. height: 100%;
  128. }
  129. /* Logo */
  130. .logo {
  131. display: flex;
  132. align-items: center;
  133. gap: var(--space-xs);
  134. font-weight: 700;
  135. font-size: 1.125rem;
  136. }
  137. .logo-icon { font-size: 1.5rem; }
  138. .logo-text {
  139. color: var(--color-text-primary);
  140. }
  141. .logo-tag {
  142. color: var(--color-primary);
  143. font-weight: 600;
  144. }
  145. /* Nav Toggle (Mobile) */
  146. .nav-toggle {
  147. display: none;
  148. flex-direction: column;
  149. gap: 5px;
  150. background: none;
  151. border: none;
  152. cursor: pointer;
  153. padding: 4px;
  154. z-index: 1001;
  155. }
  156. .nav-toggle span {
  157. display: block;
  158. width: 24px;
  159. height: 2px;
  160. background: var(--color-text-primary);
  161. border-radius: 2px;
  162. transition: var(--transition-fast);
  163. transform-origin: center;
  164. }
  165. .nav-toggle.active span:nth-child(1) {
  166. transform: translateY(7px) rotate(45deg);
  167. }
  168. .nav-toggle.active span:nth-child(2) {
  169. opacity: 0;
  170. }
  171. .nav-toggle.active span:nth-child(3) {
  172. transform: translateY(-7px) rotate(-45deg);
  173. }
  174. /* Nav List */
  175. .nav-list {
  176. display: flex;
  177. align-items: center;
  178. gap: var(--space-lg);
  179. }
  180. .nav-link {
  181. font-size: var(--font-size-small);
  182. font-weight: 500;
  183. color: var(--color-text-secondary);
  184. transition: color var(--transition-fast);
  185. position: relative;
  186. padding: var(--space-xs) 0;
  187. }
  188. .nav-link::after {
  189. content: '';
  190. position: absolute;
  191. bottom: 0;
  192. left: 0;
  193. width: 0;
  194. height: 2px;
  195. background: var(--color-primary);
  196. border-radius: 1px;
  197. transition: width var(--transition-normal);
  198. }
  199. .nav-link:hover,
  200. .nav-link.active {
  201. color: var(--color-primary);
  202. }
  203. .nav-link:hover::after,
  204. .nav-link.active::after {
  205. width: 100%;
  206. }
  207. /* Nav login button */
  208. .nav-login-btn {
  209. display: inline-flex;
  210. align-items: center;
  211. padding: .5rem 1.125rem;
  212. font-size: var(--font-size-tiny);
  213. font-weight: 600;
  214. color: #fff;
  215. background: var(--color-primary);
  216. border-radius: var(--radius-full);
  217. transition: all var(--transition-fast);
  218. margin-left: var(--space-md);
  219. white-space: nowrap;
  220. }
  221. .nav-login-btn:hover {
  222. background: var(--color-primary-hover);
  223. transform: translateY(-1px);
  224. box-shadow: 0 4px 12px rgba(74, 155, 215, .3);
  225. }
  226. /* ----------------------------------------------------------
  227. 4. Section Shell
  228. ---------------------------------------------------------- */
  229. .section {
  230. padding: var(--space-section) 0;
  231. }
  232. .section-header {
  233. text-align: center;
  234. max-width: 720px;
  235. margin: 0 auto var(--space-3xl);
  236. }
  237. .section-tag {
  238. display: inline-block;
  239. font-size: var(--font-size-tiny);
  240. font-weight: 600;
  241. letter-spacing: .08em;
  242. text-transform: uppercase;
  243. color: var(--color-primary);
  244. background: var(--color-primary-light);
  245. padding: .35em 1em;
  246. border-radius: var(--radius-full);
  247. margin-bottom: var(--space-md);
  248. }
  249. .section-title {
  250. font-size: var(--font-size-h1);
  251. font-weight: 700;
  252. line-height: 1.25;
  253. margin-bottom: var(--space-md);
  254. color: var(--color-text-primary);
  255. }
  256. .section-desc {
  257. font-size: var(--font-size-body);
  258. color: var(--color-text-secondary);
  259. line-height: 1.7;
  260. max-width: 600px;
  261. margin: 0 auto;
  262. }
  263. /* ----------------------------------------------------------
  264. 5. Buttons
  265. ---------------------------------------------------------- */
  266. .btn {
  267. display: inline-flex;
  268. align-items: center;
  269. gap: var(--space-xs);
  270. padding: .75rem 1.75rem;
  271. font-family: var(--font-family);
  272. font-size: var(--font-size-small);
  273. font-weight: 600;
  274. border-radius: var(--radius-md);
  275. border: 2px solid transparent;
  276. cursor: pointer;
  277. transition: all var(--transition-fast);
  278. text-align: center;
  279. }
  280. .btn-primary {
  281. background: var(--color-primary);
  282. color: #fff;
  283. border-color: var(--color-primary);
  284. }
  285. .btn-primary:hover {
  286. background: var(--color-primary-hover);
  287. border-color: var(--color-primary-hover);
  288. transform: translateY(-2px);
  289. box-shadow: 0 8px 24px rgba(74, 155, 215, .35);
  290. }
  291. .btn-outline {
  292. background: var(--color-primary);
  293. color: #fff;
  294. border-color: var(--color-primary);
  295. }
  296. .btn-outline:hover {
  297. background: var(--color-primary-hover);
  298. border-color: var(--color-primary-hover);
  299. transform: translateY(-2px);
  300. }
  301. /* Hero service provider link */
  302. .hero-service-link {
  303. margin-top: var(--space-lg);
  304. font-size: var(--font-size-small);
  305. color: var(--color-text-muted);
  306. display: flex;
  307. align-items: center;
  308. gap: var(--space-xs);
  309. }
  310. .hero-service-link a {
  311. color: var(--color-primary);
  312. font-weight: 600;
  313. transition: color var(--transition-fast);
  314. }
  315. .hero-service-link a:hover {
  316. color: var(--color-primary-hover);
  317. text-decoration: underline;
  318. }
  319. /* Role card login button */
  320. .role-login-btn {
  321. display: inline-block;
  322. margin-top: var(--space-md);
  323. padding: .5rem 1.25rem;
  324. font-size: var(--font-size-tiny);
  325. font-weight: 600;
  326. color: #fff;
  327. background: var(--color-text-primary);
  328. border-radius: var(--radius-full);
  329. transition: all var(--transition-fast);
  330. }
  331. .role-login-btn:hover {
  332. background: var(--color-primary);
  333. transform: translateY(-1px);
  334. box-shadow: 0 4px 12px rgba(74, 155, 215, .25);
  335. }
  336. .role-teacher .role-login-btn:hover {
  337. background: #3B82F6;
  338. box-shadow: 0 4px 12px rgba(59, 130, 246, .3);
  339. }
  340. .role-admin .role-login-btn:hover {
  341. background: #6366F1;
  342. box-shadow: 0 4px 12px rgba(99, 102, 241, .3);
  343. }
  344. /* ----------------------------------------------------------
  345. 6. Hero Section
  346. ---------------------------------------------------------- */
  347. .hero {
  348. min-height: 100vh;
  349. display: flex;
  350. align-items: center;
  351. position: relative;
  352. padding-top: var(--header-height);
  353. overflow: hidden;
  354. }
  355. .hero-bg {
  356. position: absolute;
  357. inset: 0;
  358. background:
  359. radial-gradient(ellipse 80% 50% at 50% -10%, rgba(74, 155, 215, .10), transparent),
  360. radial-gradient(ellipse 60% 40% at 80% 80%, rgba(78, 205, 196, .08), transparent),
  361. radial-gradient(ellipse 50% 50% at 20% 70%, rgba(255, 217, 61, .06), transparent);
  362. pointer-events: none;
  363. }
  364. .hero-inner {
  365. display: grid;
  366. grid-template-columns: 1fr 1fr;
  367. gap: var(--space-3xl);
  368. align-items: center;
  369. position: relative;
  370. z-index: 1;
  371. }
  372. .hero-badge {
  373. display: inline-block;
  374. font-size: var(--font-size-tiny);
  375. font-weight: 600;
  376. letter-spacing: .06em;
  377. color: var(--color-primary);
  378. background: var(--color-primary-light);
  379. padding: .4em 1.2em;
  380. border-radius: var(--radius-full);
  381. margin-bottom: var(--space-lg);
  382. }
  383. .hero-title {
  384. font-size: var(--font-size-display);
  385. font-weight: 800;
  386. line-height: 1.15;
  387. margin-bottom: var(--space-lg);
  388. }
  389. .highlight {
  390. color: var(--color-primary);
  391. }
  392. .hero-desc {
  393. font-size: 1.0625rem;
  394. color: var(--color-text-secondary);
  395. line-height: 1.8;
  396. margin-bottom: var(--space-xl);
  397. max-width: 540px;
  398. }
  399. .hero-desc strong {
  400. color: var(--color-text-primary);
  401. }
  402. .hero-actions {
  403. display: flex;
  404. gap: var(--space-md);
  405. flex-wrap: wrap;
  406. }
  407. /* Hero Visual - Orbit Animation */
  408. .hero-visual {
  409. display: flex;
  410. justify-content: center;
  411. align-items: center;
  412. }
  413. .dimension-orbit {
  414. position: relative;
  415. width: 320px;
  416. height: 320px;
  417. display: flex;
  418. align-items: center;
  419. justify-content: center;
  420. }
  421. .orbit-center {
  422. width: 80px;
  423. height: 80px;
  424. border-radius: 50%;
  425. background: var(--color-primary);
  426. color: #fff;
  427. font-size: 1.5rem;
  428. font-weight: 700;
  429. display: flex;
  430. align-items: center;
  431. justify-content: center;
  432. box-shadow: 0 0 40px rgba(74, 155, 215, .3);
  433. position: relative;
  434. z-index: 2;
  435. animation: pulseCenter 3s ease-in-out infinite;
  436. }
  437. @keyframes pulseCenter {
  438. 0%, 100% { box-shadow: 0 0 40px rgba(74, 155, 215, .3); transform: scale(1); }
  439. 50% { box-shadow: 0 0 60px rgba(74, 155, 215, .5); transform: scale(1.05); }
  440. }
  441. .orbit-item {
  442. position: absolute;
  443. width: 56px;
  444. height: 56px;
  445. border-radius: 50%;
  446. background: var(--bg-surface);
  447. border: 2px solid var(--color-border-light);
  448. display: flex;
  449. align-items: center;
  450. justify-content: center;
  451. font-size: 1.25rem;
  452. font-weight: 700;
  453. color: var(--color-text-secondary);
  454. box-shadow: var(--shadow-sm);
  455. animation: orbit 12s linear infinite;
  456. animation-delay: calc(var(--i) * -2.4s);
  457. z-index: 1;
  458. }
  459. @keyframes orbit {
  460. 0% {
  461. transform: rotate(0deg) translateX(130px) rotate(0deg);
  462. }
  463. 100% {
  464. transform: rotate(360deg) translateX(130px) rotate(-360deg);
  465. }
  466. }
  467. .orbit-item:nth-child(2) { --i: 1; }
  468. .orbit-item:nth-child(3) { --i: 2; }
  469. .orbit-item:nth-child(4) { --i: 3; }
  470. .orbit-item:nth-child(5) { --i: 4; }
  471. /* Scroll Indicator */
  472. .scroll-indicator {
  473. position: absolute;
  474. bottom: var(--space-xl);
  475. left: 50%;
  476. transform: translateX(-50%);
  477. display: flex;
  478. flex-direction: column;
  479. align-items: center;
  480. gap: var(--space-xs);
  481. color: var(--color-text-muted);
  482. font-size: var(--font-size-tiny);
  483. animation: fadeInUp 1s ease 1s both;
  484. }
  485. .scroll-arrow {
  486. width: 20px;
  487. height: 20px;
  488. border-right: 2px solid var(--color-text-muted);
  489. border-bottom: 2px solid var(--color-text-muted);
  490. transform: rotate(45deg);
  491. animation: scrollBounce 2s ease-in-out infinite;
  492. }
  493. @keyframes scrollBounce {
  494. 0%, 100% { transform: rotate(45deg) translateY(0); opacity: .5; }
  495. 50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
  496. }
  497. @keyframes fadeInUp {
  498. from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  499. to { opacity: 1; transform: translateX(-50%) translateY(0); }
  500. }
  501. /* ----------------------------------------------------------
  502. 7. About Section
  503. ---------------------------------------------------------- */
  504. .section-about {
  505. background: var(--bg-surface);
  506. }
  507. .about-grid {
  508. display: grid;
  509. grid-template-columns: repeat(3, 1fr);
  510. gap: var(--space-xl);
  511. }
  512. .about-card {
  513. background: var(--bg-surface);
  514. border: 1px solid var(--color-border-light);
  515. border-radius: var(--radius-lg);
  516. padding: var(--space-2xl);
  517. text-align: center;
  518. transition: all var(--transition-normal);
  519. }
  520. .about-card:hover {
  521. transform: translateY(-4px);
  522. box-shadow: var(--shadow-md);
  523. border-color: transparent;
  524. }
  525. .about-icon {
  526. width: 72px;
  527. height: 72px;
  528. margin: 0 auto var(--space-lg);
  529. display: flex;
  530. align-items: center;
  531. justify-content: center;
  532. }
  533. .about-card h3 {
  534. font-size: var(--font-size-h3);
  535. margin-bottom: var(--space-sm);
  536. font-weight: 700;
  537. }
  538. .about-card p {
  539. color: var(--color-text-secondary);
  540. line-height: 1.7;
  541. font-size: var(--font-size-small);
  542. }
  543. /* ----------------------------------------------------------
  544. 8. Product Section
  545. ---------------------------------------------------------- */
  546. .section-product {
  547. background: linear-gradient(180deg, var(--bg-body) 0%, var(--color-primary-light) 100%);
  548. }
  549. .product-showcase {
  550. max-width: 800px;
  551. margin: 0 auto;
  552. }
  553. .product-quote {
  554. background: var(--bg-surface);
  555. border-left: 4px solid var(--color-primary);
  556. padding: var(--space-xl) var(--space-2xl);
  557. border-radius: 0 var(--radius-md) var(--radius-md) 0;
  558. margin-bottom: var(--space-2xl);
  559. box-shadow: var(--shadow-sm);
  560. }
  561. .product-quote p {
  562. font-size: 1.0625rem;
  563. line-height: 1.9;
  564. color: var(--color-text-secondary);
  565. font-style: italic;
  566. }
  567. .product-stats {
  568. display: grid;
  569. grid-template-columns: repeat(4, 1fr);
  570. gap: var(--space-lg);
  571. margin-bottom: var(--space-2xl);
  572. }
  573. .stat {
  574. text-align: center;
  575. padding: var(--space-lg);
  576. background: var(--bg-surface);
  577. border-radius: var(--radius-md);
  578. border: 1px solid var(--color-border-light);
  579. }
  580. .stat-link {
  581. display: block;
  582. text-decoration: none;
  583. color: inherit;
  584. transition: transform var(--transition-normal);
  585. }
  586. .stat-link:hover {
  587. transform: translateY(-3px);
  588. }
  589. .stat-num {
  590. display: block;
  591. font-size: 2rem;
  592. font-weight: 800;
  593. color: var(--color-primary);
  594. line-height: 1.2;
  595. margin-bottom: var(--space-xs);
  596. }
  597. .stat-label {
  598. font-size: var(--font-size-tiny);
  599. color: var(--color-text-secondary);
  600. font-weight: 500;
  601. }
  602. /* 幸福三支柱 */
  603. /* ----------------------------------------------------------
  604. 9. Footer
  605. ---------------------------------------------------------- */
  606. .section-products {
  607. background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--bg-body) 100%);
  608. }
  609. .products-grid {
  610. display: grid;
  611. grid-template-columns: repeat(2, 1fr);
  612. gap: var(--space-xl);
  613. max-width: 920px;
  614. margin: 0 auto;
  615. }
  616. .product-card {
  617. background: var(--bg-surface);
  618. border-radius: var(--radius-lg);
  619. padding: var(--space-2xl);
  620. border: 1px solid var(--color-border-light);
  621. transition: all var(--transition-normal);
  622. position: relative;
  623. overflow: hidden;
  624. }
  625. .product-card::before {
  626. content: '';
  627. position: absolute;
  628. top: 0;
  629. left: 0;
  630. right: 0;
  631. height: 4px;
  632. background: var(--product-color, var(--color-primary));
  633. }
  634. .product-card:hover {
  635. transform: translateY(-4px);
  636. box-shadow: var(--shadow-md);
  637. border-color: transparent;
  638. }
  639. .product-card-icon {
  640. width: 56px;
  641. height: 56px;
  642. display: flex;
  643. align-items: center;
  644. justify-content: center;
  645. border-radius: var(--radius-md);
  646. background: var(--product-bg, var(--color-primary-light));
  647. margin-bottom: var(--space-md);
  648. }
  649. .product-card h3 {
  650. font-size: 1.1rem;
  651. font-weight: 700;
  652. color: var(--color-text-primary);
  653. margin-bottom: var(--space-xs);
  654. }
  655. .product-card .product-sub {
  656. font-size: var(--font-size-small);
  657. color: var(--product-color, var(--color-primary));
  658. font-weight: 600;
  659. margin-bottom: var(--space-sm);
  660. margin-top: -4px;
  661. }
  662. .product-card > p {
  663. font-size: var(--font-size-small);
  664. color: var(--color-text-secondary);
  665. line-height: 1.75;
  666. margin-bottom: var(--space-md);
  667. }
  668. .product-tags {
  669. display: flex;
  670. flex-wrap: wrap;
  671. gap: var(--space-xs);
  672. }
  673. .product-tags span {
  674. display: inline-block;
  675. padding: 2px 10px;
  676. font-size: var(--font-size-tiny);
  677. color: var(--product-color, var(--color-text-secondary));
  678. background: color-mix(in srgb, var(--product-color, var(--color-primary)) 10%, transparent);
  679. border-radius: 100px;
  680. font-weight: 500;
  681. }
  682. .product-plus {
  683. color: var(--product-color, var(--color-primary));
  684. font-weight: 700;
  685. }
  686. @media (max-width: 768px) {
  687. .products-grid {
  688. grid-template-columns: 1fr;
  689. gap: var(--space-lg);
  690. }
  691. }
  692. /* ----------------------------------------------------------
  693. 10. Dimensions Section
  694. ---------------------------------------------------------- */
  695. .section-dimensions {
  696. background: var(--bg-surface);
  697. }
  698. .dimension-grid {
  699. display: flex;
  700. flex-wrap: wrap;
  701. justify-content: center;
  702. gap: var(--space-xl);
  703. }
  704. .dimension-grid > .dimension-card {
  705. width: calc((100% - var(--space-xl) * 2) / 3);
  706. }
  707. .dimension-card {
  708. background: var(--bg-surface);
  709. border: 1px solid var(--color-border-light);
  710. border-radius: var(--radius-lg);
  711. padding: var(--space-2xl);
  712. position: relative;
  713. overflow: hidden;
  714. transition: all var(--transition-normal);
  715. }
  716. .dim-bg-illustration {
  717. position: absolute;
  718. bottom: 0;
  719. left: 0;
  720. width: 100%;
  721. height: 28%;
  722. pointer-events: none;
  723. opacity: 0.3;
  724. transition: opacity var(--transition-normal);
  725. mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
  726. -webkit-mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
  727. }
  728. .dim-bg-illustration svg {
  729. width: 100%;
  730. height: 100%;
  731. color: var(--dim-color);
  732. display: block;
  733. }
  734. .dimension-card:hover .dim-bg-illustration {
  735. opacity: 0.3;
  736. }
  737. .dimension-card::before {
  738. content: '';
  739. position: absolute;
  740. top: 0;
  741. left: 0;
  742. right: 0;
  743. height: 4px;
  744. background: var(--dim-color);
  745. opacity: .6;
  746. transition: opacity var(--transition-normal);
  747. }
  748. .dimension-card:hover {
  749. transform: translateY(-6px);
  750. box-shadow: var(--shadow-lg);
  751. border-color: transparent;
  752. }
  753. .dimension-card:hover::before {
  754. opacity: 1;
  755. }
  756. .dim-title {
  757. font-size: var(--font-size-h3);
  758. font-weight: 700;
  759. margin-bottom: var(--space-sm);
  760. display: flex;
  761. align-items: center;
  762. gap: var(--space-xs);
  763. }
  764. .dim-emoji {
  765. font-size: 1.5rem;
  766. }
  767. .dim-desc {
  768. font-size: var(--font-size-small);
  769. color: var(--color-text-secondary);
  770. line-height: 1.8;
  771. margin-bottom: var(--space-md);
  772. }
  773. .dim-points {
  774. display: flex;
  775. flex-wrap: wrap;
  776. gap: var(--space-xs);
  777. }
  778. .dim-points li {
  779. font-size: var(--font-size-tiny);
  780. font-weight: 500;
  781. color: var(--dim-color);
  782. background: var(--dim-bg);
  783. padding: .3em .9em;
  784. border-radius: var(--radius-full);
  785. }
  786. /* Make 2 items in last row centered */
  787. /* 5 items in 3-col grid: items 4 & 5 naturally wrap to row 2, cols 1 & 2 */
  788. /* ----------------------------------------------------------
  789. 11. Features Section
  790. ---------------------------------------------------------- */
  791. .section-features {
  792. background: var(--bg-section-alt);
  793. }
  794. .features-grid {
  795. display: grid;
  796. grid-template-columns: repeat(4, 1fr);
  797. gap: var(--space-lg);
  798. }
  799. .feature-card {
  800. background: var(--bg-surface);
  801. border: 1px solid var(--color-border-light);
  802. border-radius: var(--radius-lg);
  803. padding: var(--space-xl);
  804. transition: all var(--transition-normal);
  805. text-align: center;
  806. }
  807. .feature-card:hover {
  808. transform: translateY(-4px);
  809. box-shadow: var(--shadow-md);
  810. border-color: transparent;
  811. }
  812. .feature-icon {
  813. width: 56px;
  814. height: 56px;
  815. margin: 0 auto var(--space-md);
  816. display: flex;
  817. align-items: center;
  818. justify-content: center;
  819. border-radius: var(--radius-md);
  820. background: color-mix(in srgb, var(--fc) 10%, white);
  821. color: var(--fc);
  822. }
  823. .feature-card h3 {
  824. font-size: 1rem;
  825. font-weight: 700;
  826. margin-bottom: var(--space-sm);
  827. }
  828. .feature-card p {
  829. font-size: var(--font-size-small);
  830. color: var(--color-text-secondary);
  831. line-height: 1.7;
  832. }
  833. /* Loop flow — 科学成长闭环 */
  834. .loop-flow {
  835. display: flex;
  836. align-items: flex-start;
  837. justify-content: center;
  838. gap: var(--space-md);
  839. flex-wrap: wrap;
  840. }
  841. .loop-step {
  842. flex: 1;
  843. min-width: 200px;
  844. max-width: 260px;
  845. background: var(--bg-surface);
  846. border-radius: var(--radius-lg);
  847. padding: var(--space-xl) var(--space-lg);
  848. border: 1px solid var(--color-border-light);
  849. text-align: left;
  850. transition: transform .3s ease, box-shadow .3s ease;
  851. }
  852. .loop-step:hover {
  853. transform: translateY(-4px);
  854. box-shadow: var(--shadow-lg);
  855. }
  856. .loop-header {
  857. display: flex;
  858. align-items: center;
  859. gap: var(--space-sm);
  860. margin-bottom: var(--space-md);
  861. }
  862. .loop-icon {
  863. color: var(--step-color);
  864. flex-shrink: 0;
  865. display: flex;
  866. align-items: center;
  867. justify-content: center;
  868. width: 40px;
  869. height: 40px;
  870. border-radius: var(--radius-md);
  871. background: var(--step-bg);
  872. }
  873. .loop-step h3 {
  874. font-size: 1rem;
  875. font-weight: 700;
  876. color: var(--color-text-primary);
  877. margin-bottom: 0;
  878. }
  879. .loop-step p {
  880. font-size: var(--font-size-small);
  881. color: var(--color-text-secondary);
  882. line-height: 1.7;
  883. margin-bottom: var(--space-md);
  884. }
  885. .loop-tags {
  886. display: flex;
  887. flex-wrap: wrap;
  888. justify-content: flex-start;
  889. gap: .3em;
  890. }
  891. .loop-tags span {
  892. font-size: 11px;
  893. padding: .2em .6em;
  894. border-radius: var(--radius-full);
  895. background: var(--step-bg);
  896. color: var(--step-color);
  897. font-weight: 500;
  898. }
  899. .loop-arrow {
  900. font-size: 1.5rem;
  901. color: var(--color-text-muted);
  902. align-self: center;
  903. flex-shrink: 0;
  904. }
  905. @media (max-width: 900px) {
  906. .loop-flow {
  907. flex-direction: column;
  908. align-items: center;
  909. }
  910. .loop-arrow {
  911. transform: rotate(90deg);
  912. margin: 0;
  913. }
  914. }
  915. /* ----------------------------------------------------------
  916. 12. AI Technology Section
  917. ---------------------------------------------------------- */
  918. .section-ai-tech {
  919. background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-section-alt) 100%);
  920. }
  921. .ai-grid {
  922. display: grid;
  923. grid-template-columns: repeat(3, 1fr);
  924. gap: var(--space-xl);
  925. max-width: 1000px;
  926. margin: 0 auto;
  927. }
  928. .ai-card {
  929. background: var(--bg-surface);
  930. border-radius: var(--radius-lg);
  931. padding: var(--space-2xl);
  932. border: 1px solid var(--color-border-light);
  933. transition: all var(--transition-normal);
  934. position: relative;
  935. overflow: hidden;
  936. }
  937. .ai-card::before {
  938. content: '';
  939. position: absolute;
  940. top: 0;
  941. left: 0;
  942. right: 0;
  943. height: 3px;
  944. background: var(--ai-color, var(--color-primary));
  945. opacity: .4;
  946. transition: opacity var(--transition-normal);
  947. }
  948. .ai-card:hover {
  949. transform: translateY(-4px);
  950. box-shadow: var(--shadow-md);
  951. border-color: transparent;
  952. }
  953. .ai-card:hover::before {
  954. opacity: 1;
  955. }
  956. .ai-card-header {
  957. display: flex;
  958. align-items: center;
  959. gap: var(--space-sm);
  960. margin-bottom: var(--space-md);
  961. }
  962. .ai-card-icon {
  963. width: 48px;
  964. height: 48px;
  965. display: flex;
  966. align-items: center;
  967. justify-content: center;
  968. border-radius: var(--radius-md);
  969. background: var(--ai-bg, var(--color-primary-light));
  970. flex-shrink: 0;
  971. }
  972. .ai-card-badge {
  973. display: inline-block;
  974. padding: 2px 10px;
  975. font-size: var(--font-size-tiny);
  976. font-weight: 600;
  977. color: var(--ai-color, var(--color-primary));
  978. background: color-mix(in srgb, var(--ai-color, var(--color-primary)) 10%, white);
  979. border-radius: 100px;
  980. white-space: nowrap;
  981. }
  982. .ai-card h3 {
  983. font-size: 1.05rem;
  984. font-weight: 700;
  985. color: var(--color-text-primary);
  986. margin-bottom: var(--space-sm);
  987. line-height: 1.4;
  988. }
  989. .ai-card p {
  990. font-size: var(--font-size-small);
  991. color: var(--color-text-secondary);
  992. line-height: 1.8;
  993. margin: 0;
  994. }
  995. @media (max-width: 900px) {
  996. .ai-grid {
  997. grid-template-columns: repeat(2, 1fr);
  998. }
  999. }
  1000. @media (max-width: 600px) {
  1001. .ai-grid {
  1002. grid-template-columns: 1fr;
  1003. }
  1004. }
  1005. /* ----------------------------------------------------------
  1006. 13. Roles Section
  1007. ---------------------------------------------------------- */
  1008. .section-roles {
  1009. background: var(--bg-surface);
  1010. }
  1011. .roles-flow {
  1012. display: flex;
  1013. align-items: stretch;
  1014. justify-content: center;
  1015. gap: var(--space-xl);
  1016. max-width: 960px;
  1017. margin: 0 auto;
  1018. }
  1019. .role-card {
  1020. flex: 1;
  1021. background: var(--bg-surface);
  1022. border: 1px solid var(--color-border-light);
  1023. border-radius: var(--radius-lg);
  1024. padding: var(--space-xl);
  1025. text-align: center;
  1026. position: relative;
  1027. transition: all var(--transition-normal);
  1028. }
  1029. .role-card:hover {
  1030. transform: translateY(-4px);
  1031. box-shadow: var(--shadow-md);
  1032. }
  1033. .role-badge {
  1034. display: inline-block;
  1035. font-size: var(--font-size-tiny);
  1036. font-weight: 600;
  1037. padding: .25em 1em;
  1038. border-radius: var(--radius-full);
  1039. margin-bottom: var(--space-md);
  1040. }
  1041. .role-parent .role-badge { background: var(--color-primary-light); color: var(--color-primary); }
  1042. .role-teacher .role-badge { background: #F0F7FF; color: #3B82F6; }
  1043. .role-admin .role-badge { background: #EEF0FF; color: #6366F1; }
  1044. .role-icon {
  1045. margin-bottom: var(--space-md);
  1046. }
  1047. .role-card h3 {
  1048. font-size: var(--font-size-h3);
  1049. font-weight: 700;
  1050. margin-bottom: var(--space-sm);
  1051. }
  1052. .role-card > p {
  1053. font-size: var(--font-size-small);
  1054. color: var(--color-text-secondary);
  1055. line-height: 1.7;
  1056. margin-bottom: var(--space-md);
  1057. }
  1058. .role-perms {
  1059. text-align: left;
  1060. }
  1061. .role-perms li {
  1062. font-size: var(--font-size-tiny);
  1063. color: var(--color-text-secondary);
  1064. padding: .35em 0;
  1065. display: flex;
  1066. align-items: flex-start;
  1067. gap: var(--space-xs);
  1068. }
  1069. .role-perms li::before {
  1070. content: '';
  1071. width: 5px;
  1072. height: 5px;
  1073. border-radius: 50%;
  1074. background: var(--color-primary);
  1075. flex-shrink: 0;
  1076. margin-top: 7px;
  1077. }
  1078. .role-teacher .role-perms li::before { background: #3B82F6; }
  1079. .role-admin .role-perms li::before { background: #6366F1; }
  1080. /* 客户角色 — 小程序二维码 */
  1081. .role-qr {
  1082. margin-top: var(--space-lg);
  1083. padding-top: var(--space-md);
  1084. border-top: 1px solid var(--color-border-light);
  1085. display: flex;
  1086. flex-direction: column;
  1087. align-items: center;
  1088. gap: var(--space-xs);
  1089. }
  1090. .role-qr-code {
  1091. display: block;
  1092. width: 180px;
  1093. height: 180px;
  1094. border-radius: var(--radius-md);
  1095. box-shadow: 0 2px 8px rgba(0,0,0,.10);
  1096. transition: transform .3s ease, box-shadow .3s ease;
  1097. }
  1098. .role-qr-code:hover {
  1099. transform: scale(1.08);
  1100. box-shadow: 0 4px 16px rgba(0,0,0,.12);
  1101. }
  1102. .role-qr-label {
  1103. font-size: var(--font-size-tiny);
  1104. color: var(--color-text-secondary);
  1105. font-weight: 500;
  1106. letter-spacing: .05em;
  1107. }
  1108. .roles-connector {
  1109. display: flex;
  1110. flex-direction: column;
  1111. align-items: center;
  1112. gap: var(--space-xs);
  1113. color: var(--color-text-muted);
  1114. font-size: var(--font-size-tiny);
  1115. font-weight: 500;
  1116. flex-shrink: 0;
  1117. align-self: center;
  1118. }
  1119. .connector-arrow {
  1120. width: 2px;
  1121. height: 40px;
  1122. background: var(--color-border);
  1123. position: relative;
  1124. }
  1125. .connector-arrow::after {
  1126. content: '';
  1127. position: absolute;
  1128. bottom: -4px;
  1129. left: 50%;
  1130. transform: translateX(-50%);
  1131. border: 5px solid transparent;
  1132. border-top-color: var(--color-border);
  1133. }
  1134. /* ----------------------------------------------------------
  1135. 14. Contact Section
  1136. ---------------------------------------------------------- */
  1137. .section-contact {
  1138. background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-body) 100%);
  1139. }
  1140. .contact-grid {
  1141. display: grid;
  1142. grid-template-columns: 1fr 1fr;
  1143. gap: var(--space-3xl);
  1144. align-items: start;
  1145. max-width: 800px;
  1146. margin: 0 auto;
  1147. }
  1148. .contact-info {
  1149. display: flex;
  1150. flex-direction: column;
  1151. gap: var(--space-lg);
  1152. }
  1153. .contact-item {
  1154. display: flex;
  1155. align-items: flex-start;
  1156. gap: var(--space-md);
  1157. padding: var(--space-lg);
  1158. background: var(--bg-surface);
  1159. border-radius: var(--radius-md);
  1160. border: 1px solid var(--color-border-light);
  1161. }
  1162. .contact-item svg {
  1163. flex-shrink: 0;
  1164. margin-top: 2px;
  1165. }
  1166. .contact-item strong {
  1167. display: block;
  1168. font-size: var(--font-size-tiny);
  1169. color: var(--color-text-muted);
  1170. font-weight: 500;
  1171. text-transform: uppercase;
  1172. letter-spacing: .04em;
  1173. margin-bottom: 2px;
  1174. }
  1175. .contact-item span {
  1176. font-weight: 600;
  1177. color: var(--color-text-primary);
  1178. }
  1179. .contact-cta {
  1180. text-align: center;
  1181. padding: var(--space-2xl);
  1182. background: var(--bg-surface);
  1183. border-radius: var(--radius-lg);
  1184. border: 1px solid var(--color-border-light);
  1185. }
  1186. .contact-cta > p {
  1187. font-size: var(--font-size-h3);
  1188. font-weight: 700;
  1189. margin-bottom: var(--space-xs);
  1190. }
  1191. .cta-sub {
  1192. font-size: var(--font-size-small) !important;
  1193. font-weight: 400 !important;
  1194. color: var(--color-text-secondary);
  1195. margin-bottom: var(--space-xl) !important;
  1196. }
  1197. .cta-cards {
  1198. display: grid;
  1199. grid-template-columns: repeat(3, 1fr);
  1200. gap: var(--space-sm);
  1201. }
  1202. .cta-card {
  1203. display: flex;
  1204. flex-direction: column;
  1205. align-items: center;
  1206. gap: var(--space-xs);
  1207. padding: var(--space-md);
  1208. background: var(--bg-body);
  1209. border-radius: var(--radius-md);
  1210. font-size: var(--font-size-tiny);
  1211. font-weight: 600;
  1212. border: 1px solid var(--color-border-light);
  1213. transition: all var(--transition-fast);
  1214. }
  1215. .cta-card:hover {
  1216. border-color: var(--color-primary);
  1217. background: var(--color-primary-light);
  1218. }
  1219. .cta-card-icon {
  1220. font-size: 1.5rem;
  1221. }
  1222. .cta-card-desc {
  1223. font-weight: 400;
  1224. color: var(--color-text-muted);
  1225. font-size: var(--font-size-tiny);
  1226. }
  1227. /* ----------------------------------------------------------
  1228. 15. Footer
  1229. ---------------------------------------------------------- */
  1230. .site-footer {
  1231. background: var(--color-text-primary);
  1232. color: #fff;
  1233. padding: var(--space-3xl) 0 0;
  1234. }
  1235. .footer-inner {
  1236. display: flex;
  1237. justify-content: space-between;
  1238. gap: var(--space-3xl);
  1239. padding-bottom: var(--space-2xl);
  1240. border-bottom: 1px solid rgba(255, 255, 255, .1);
  1241. }
  1242. .footer-brand .logo-text {
  1243. color: #fff;
  1244. font-size: 1.25rem;
  1245. font-weight: 700;
  1246. }
  1247. .footer-brand .logo-tag {
  1248. color: var(--color-primary);
  1249. font-weight: 600;
  1250. font-size: 1.25rem;
  1251. }
  1252. .footer-brand p {
  1253. color: rgba(255, 255, 255, .6);
  1254. font-size: var(--font-size-small);
  1255. margin-top: var(--space-sm);
  1256. max-width: 300px;
  1257. line-height: 1.7;
  1258. }
  1259. .footer-links {
  1260. display: flex;
  1261. gap: var(--space-3xl);
  1262. }
  1263. .footer-col h4 {
  1264. font-size: var(--font-size-tiny);
  1265. font-weight: 600;
  1266. text-transform: uppercase;
  1267. letter-spacing: .06em;
  1268. color: rgba(255, 255, 255, .5);
  1269. margin-bottom: var(--space-md);
  1270. }
  1271. .footer-col ul li {
  1272. margin-bottom: var(--space-sm);
  1273. }
  1274. .footer-col ul li a {
  1275. font-size: var(--font-size-small);
  1276. color: rgba(255, 255, 255, .7);
  1277. transition: color var(--transition-fast);
  1278. }
  1279. .footer-col ul li a:hover {
  1280. color: var(--color-primary);
  1281. }
  1282. .footer-bottom {
  1283. text-align: center;
  1284. padding: var(--space-lg) 0;
  1285. }
  1286. .footer-bottom p {
  1287. font-size: var(--font-size-tiny);
  1288. color: rgba(255, 255, 255, .4);
  1289. }
  1290. /* ----------------------------------------------------------
  1291. 16. Scroll Animations (AOS-like)
  1292. ---------------------------------------------------------- */
  1293. .reveal {
  1294. opacity: 0;
  1295. transform: translateY(30px);
  1296. transition: opacity .6s ease, transform .6s cubic-bezier(.4, 0, .2, 1);
  1297. }
  1298. .reveal.visible {
  1299. opacity: 1;
  1300. transform: translateY(0);
  1301. }
  1302. /* ----------------------------------------------------------
  1303. 17. Responsive - Tablet
  1304. ---------------------------------------------------------- */
  1305. @media (max-width: 1024px) {
  1306. .hero-inner {
  1307. grid-template-columns: 1fr;
  1308. text-align: center;
  1309. }
  1310. .hero-desc {
  1311. margin-left: auto;
  1312. margin-right: auto;
  1313. }
  1314. .hero-actions {
  1315. justify-content: center;
  1316. }
  1317. .hero-visual {
  1318. display: none;
  1319. }
  1320. .dimension-grid > .dimension-card {
  1321. width: calc((100% - var(--space-xl)) / 2);
  1322. }
  1323. .features-grid {
  1324. grid-template-columns: repeat(2, 1fr);
  1325. }
  1326. .roles-flow {
  1327. gap: var(--space-md);
  1328. }
  1329. .role-card {
  1330. padding: var(--space-lg) var(--space-md);
  1331. }
  1332. .roles-connector {
  1333. flex-direction: row;
  1334. gap: 0;
  1335. }
  1336. .connector-arrow {
  1337. width: 40px;
  1338. height: 2px;
  1339. }
  1340. .connector-arrow::after {
  1341. top: 50%;
  1342. left: auto;
  1343. right: -4px;
  1344. bottom: auto;
  1345. transform: translateY(-50%);
  1346. border: 5px solid transparent;
  1347. border-left-color: var(--color-border);
  1348. border-top-color: transparent;
  1349. }
  1350. .contact-grid {
  1351. grid-template-columns: 1fr;
  1352. }
  1353. .product-stats {
  1354. grid-template-columns: repeat(2, 1fr);
  1355. }
  1356. }
  1357. /* ----------------------------------------------------------
  1358. 18. Responsive - Mobile
  1359. ---------------------------------------------------------- */
  1360. @media (max-width: 768px) {
  1361. :root {
  1362. --space-section: 3.5rem;
  1363. --header-height: 56px;
  1364. }
  1365. .container {
  1366. padding: 0 var(--space-md);
  1367. }
  1368. /* Mobile Nav */
  1369. .nav-toggle {
  1370. display: flex;
  1371. }
  1372. .nav {
  1373. position: fixed;
  1374. top: var(--header-height);
  1375. left: 0;
  1376. right: 0;
  1377. background: rgba(255, 249, 240, .98);
  1378. backdrop-filter: blur(16px);
  1379. -webkit-backdrop-filter: blur(16px);
  1380. border-bottom: 1px solid var(--color-border-light);
  1381. padding: var(--space-lg);
  1382. transform: translateY(-110%);
  1383. opacity: 0;
  1384. transition: all var(--transition-normal);
  1385. pointer-events: none;
  1386. }
  1387. .nav.open {
  1388. transform: translateY(0);
  1389. opacity: 1;
  1390. pointer-events: auto;
  1391. }
  1392. .nav-list {
  1393. flex-direction: column;
  1394. gap: 0;
  1395. }
  1396. .nav-link {
  1397. display: block;
  1398. padding: var(--space-md) 0;
  1399. border-bottom: 1px solid var(--color-border-light);
  1400. width: 100%;
  1401. }
  1402. .nav-link::after {
  1403. display: none;
  1404. }
  1405. /* Hero */
  1406. .hero-title {
  1407. font-size: clamp(1.75rem, 7vw, 2.5rem);
  1408. }
  1409. .hero-desc {
  1410. font-size: var(--font-size-small);
  1411. }
  1412. .hero-actions {
  1413. flex-direction: column;
  1414. align-items: stretch;
  1415. }
  1416. .btn {
  1417. justify-content: center;
  1418. }
  1419. /* Grids */
  1420. .about-grid {
  1421. grid-template-columns: 1fr;
  1422. }
  1423. .dimension-grid > .dimension-card {
  1424. width: 100%;
  1425. }
  1426. .features-grid {
  1427. grid-template-columns: 1fr;
  1428. }
  1429. .contact-grid {
  1430. grid-template-columns: 1fr;
  1431. }
  1432. .product-stats {
  1433. grid-template-columns: repeat(2, 1fr);
  1434. }
  1435. .cta-cards {
  1436. grid-template-columns: 1fr;
  1437. }
  1438. .footer-inner {
  1439. flex-direction: column;
  1440. gap: var(--space-xl);
  1441. }
  1442. .footer-links {
  1443. gap: var(--space-xl);
  1444. }
  1445. .product-quote {
  1446. padding: var(--space-md) var(--space-lg);
  1447. }
  1448. .product-quote p {
  1449. font-size: var(--font-size-small);
  1450. }
  1451. .stat-num {
  1452. font-size: 1.5rem;
  1453. }
  1454. /* Roles row — tighter spacing */
  1455. .roles-flow {
  1456. gap: var(--space-sm);
  1457. }
  1458. .role-card {
  1459. padding: var(--space-md);
  1460. }
  1461. .role-card h3 {
  1462. font-size: calc(var(--font-size-h3) * 0.85);
  1463. }
  1464. .role-perms li {
  1465. font-size: calc(var(--font-size-tiny) * 0.9);
  1466. }
  1467. .role-qr-code {
  1468. width: 150px;
  1469. height: 150px;
  1470. }
  1471. }
  1472. @media (max-width: 480px) {
  1473. .product-stats {
  1474. grid-template-columns: repeat(2, 1fr);
  1475. gap: var(--space-sm);
  1476. }
  1477. .stat {
  1478. padding: var(--space-md);
  1479. }
  1480. .roles-flow {
  1481. flex-direction: column;
  1482. gap: var(--space-md);
  1483. }
  1484. .roles-connector {
  1485. flex-direction: column;
  1486. gap: var(--space-xs);
  1487. }
  1488. .connector-arrow {
  1489. width: 2px;
  1490. height: 40px;
  1491. }
  1492. .connector-arrow::after {
  1493. top: auto;
  1494. left: 50%;
  1495. right: auto;
  1496. bottom: -4px;
  1497. transform: translateX(-50%);
  1498. border: 5px solid transparent;
  1499. border-top-color: var(--color-border);
  1500. border-left-color: transparent;
  1501. }
  1502. .footer-links {
  1503. flex-direction: column;
  1504. gap: var(--space-lg);
  1505. }
  1506. }
  1507. /* ----------------------------------------------------------
  1508. 19. Logo
  1509. ---------------------------------------------------------- */
  1510. .logo-img {
  1511. display: block;
  1512. flex-shrink: 0;
  1513. border-radius: 8px;
  1514. width: 36px;
  1515. height: 36px;
  1516. object-fit: contain;
  1517. }
  1518. .footer-logo-img {
  1519. display: block;
  1520. flex-shrink: 0;
  1521. border-radius: 10px;
  1522. margin-bottom: var(--space-xs);
  1523. object-fit: contain;
  1524. }
  1525. /* ----------------------------------------------------------
  1526. 20. Wuxing Philosophy Section
  1527. ---------------------------------------------------------- */
  1528. .section-wuxing {
  1529. background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface) 100%);
  1530. }
  1531. /* --- Diagram --- */
  1532. .wuxing-diagram {
  1533. position: relative;
  1534. width: 100%;
  1535. max-width: 480px;
  1536. aspect-ratio: 1;
  1537. margin: 0 auto var(--space-3xl);
  1538. }
  1539. .wuxing-diagram canvas {
  1540. display: block;
  1541. width: 100%;
  1542. height: 100%;
  1543. }
  1544. .wuxing-diagram .taiji-center {
  1545. position: absolute;
  1546. top: 50%;
  1547. left: 50%;
  1548. transform: translate(-50%, -50%);
  1549. pointer-events: none;
  1550. z-index: 1;
  1551. color: var(--color-text-secondary);
  1552. }
  1553. .wuxing-diagram .taiji-svg {
  1554. display: block;
  1555. animation: taiji-rotate 24s linear infinite;
  1556. }
  1557. @keyframes taiji-rotate {
  1558. to { transform: rotate(360deg); }
  1559. }
  1560. /* --- Explanation Cards --- */
  1561. .wuxing-explanations {
  1562. max-width: 960px;
  1563. margin: 0 auto;
  1564. }
  1565. .we-section {
  1566. margin-bottom: var(--space-2xl);
  1567. }
  1568. .we-section:last-child {
  1569. margin-bottom: 0;
  1570. }
  1571. .we-title {
  1572. font-size: var(--font-size-h3);
  1573. font-weight: 700;
  1574. margin-bottom: var(--space-xs);
  1575. }
  1576. .we-sheng {
  1577. color: var(--color-secondary);
  1578. }
  1579. .we-ke {
  1580. color: var(--color-primary);
  1581. }
  1582. .we-subtitle {
  1583. font-size: var(--font-size-small);
  1584. color: var(--color-text-secondary);
  1585. margin-bottom: var(--space-lg);
  1586. }
  1587. .we-grid {
  1588. display: grid;
  1589. grid-template-columns: repeat(5, 1fr);
  1590. gap: var(--space-md);
  1591. }
  1592. .wuxing-card {
  1593. background: var(--bg-surface);
  1594. border: 1px solid var(--color-border-light);
  1595. border-radius: var(--radius-md);
  1596. padding: var(--space-lg);
  1597. text-align: center;
  1598. transition: all var(--transition-normal);
  1599. position: relative;
  1600. overflow: hidden;
  1601. }
  1602. .wuxing-card::before {
  1603. content: '';
  1604. position: absolute;
  1605. top: 0;
  1606. left: 0;
  1607. right: 0;
  1608. height: 3px;
  1609. background: var(--wc-color);
  1610. opacity: .5;
  1611. transition: opacity var(--transition-normal);
  1612. }
  1613. .wuxing-card:hover {
  1614. transform: translateY(-4px);
  1615. box-shadow: var(--shadow-md);
  1616. border-color: transparent;
  1617. }
  1618. .wuxing-card:hover::before {
  1619. opacity: 1;
  1620. }
  1621. .wc-arrow {
  1622. display: inline-block;
  1623. font-size: var(--font-size-tiny);
  1624. font-weight: 700;
  1625. color: var(--wc-color);
  1626. padding: .15em .6em;
  1627. border-radius: var(--radius-full);
  1628. background: color-mix(in srgb, var(--wc-color) 10%, white);
  1629. margin-bottom: var(--space-sm);
  1630. }
  1631. .wuxing-card h4 {
  1632. font-size: 1rem;
  1633. font-weight: 700;
  1634. margin-bottom: var(--space-xs);
  1635. color: var(--color-text-primary);
  1636. }
  1637. .wuxing-card p {
  1638. font-size: var(--font-size-tiny);
  1639. color: var(--color-text-secondary);
  1640. line-height: 1.6;
  1641. }
  1642. @media (max-width: 1024px) {
  1643. .we-grid {
  1644. grid-template-columns: repeat(3, 1fr);
  1645. }
  1646. }
  1647. @media (max-width: 600px) {
  1648. .we-grid {
  1649. grid-template-columns: repeat(2, 1fr);
  1650. }
  1651. }
  1652. @media (max-width: 480px) {
  1653. .we-grid {
  1654. grid-template-columns: 1fr;
  1655. }
  1656. }
  1657. /* Mobile: prevent dimension title wrapping */
  1658. @media (max-width: 600px) {
  1659. .dim-title {
  1660. font-size: 1rem;
  1661. flex-wrap: wrap;
  1662. }
  1663. .dim-emoji {
  1664. font-size: 1.2rem;
  1665. }
  1666. .dim-element {
  1667. font-size: 9px;
  1668. }
  1669. }
  1670. /* ----------------------------------------------------------
  1671. 21. Dimension Energy Tips
  1672. ---------------------------------------------------------- */
  1673. .dim-energy {
  1674. margin-top: var(--space-md);
  1675. padding-top: var(--space-md);
  1676. border-top: 1px dashed var(--color-border-light);
  1677. }
  1678. .dim-energy h4 {
  1679. font-size: var(--font-size-small);
  1680. font-weight: 700;
  1681. color: var(--dim-color);
  1682. margin-bottom: var(--space-sm);
  1683. }
  1684. .dim-energy ul {
  1685. display: flex;
  1686. flex-direction: column;
  1687. gap: var(--space-xs);
  1688. }
  1689. .dim-energy ul li {
  1690. font-size: var(--font-size-tiny);
  1691. color: var(--color-text-secondary);
  1692. padding: .25em 0;
  1693. display: flex;
  1694. align-items: center;
  1695. gap: var(--space-xs);
  1696. }
  1697. .dim-energy ul li::before {
  1698. content: '✦';
  1699. color: var(--dim-color);
  1700. font-size: 10px;
  1701. flex-shrink: 0;
  1702. }
  1703. /* Dim element badge */
  1704. .dim-element {
  1705. display: inline-block;
  1706. font-size: 10px;
  1707. font-weight: 600;
  1708. color: #fff;
  1709. padding: .15em .6em;
  1710. border-radius: var(--radius-full);
  1711. margin-left: var(--space-xs);
  1712. vertical-align: middle;
  1713. letter-spacing: .04em;
  1714. white-space: nowrap;
  1715. }
  1716. /* Prevent role name (家长/孩子/成长规划师) from breaking across lines */
  1717. .role-perms li strong {
  1718. white-space: nowrap;
  1719. }
  1720. /* Responsive: Wuxing diagram — handled by aspect-ratio and Canvas redraw */
  1721. @media (max-width: 600px) {
  1722. .wuxing-diagram {
  1723. max-width: 360px;
  1724. }
  1725. }