style.css 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722
  1. /* ============================================================
  2. 亿图腾 · 浠艾福 — 企业官网样式表
  3. 设计系统基于 DESIGN.md 设计 Token
  4. ============================================================ */
  5. /* ----------------------------------------------------------
  6. 0. CSS Custom Properties (Design Tokens)
  7. ---------------------------------------------------------- */
  8. :root {
  9. /* Brand Colors (from DESIGN.md parent palette) */
  10. --color-primary: #FF8C42;
  11. --color-primary-hover: #FF7A2E;
  12. --color-primary-light: #FFF5E6;
  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: #FFF9F0;
  22. --bg-surface: #FFFFFF;
  23. --bg-section-alt: #FFF9F0;
  24. /* Other UI */
  25. --color-border: #E8E0D8;
  26. --color-border-light: #F0EAE0;
  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(255, 249, 240, .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(255, 140, 66, .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(255, 140, 66, .35);
  290. }
  291. .btn-outline {
  292. background: transparent;
  293. color: var(--color-text-primary);
  294. border-color: var(--color-border);
  295. }
  296. .btn-outline:hover {
  297. border-color: var(--color-primary);
  298. color: var(--color-primary);
  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(255, 140, 66, .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(255, 140, 66, .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(255, 140, 66, .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(255, 140, 66, .3); transform: scale(1); }
  439. 50% { box-shadow: 0 0 60px rgba(255, 140, 66, .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-num {
  581. display: block;
  582. font-size: 2rem;
  583. font-weight: 800;
  584. color: var(--color-primary);
  585. line-height: 1.2;
  586. margin-bottom: var(--space-xs);
  587. }
  588. .stat-label {
  589. font-size: var(--font-size-tiny);
  590. color: var(--color-text-secondary);
  591. font-weight: 500;
  592. }
  593. /* 幸福三支柱 */
  594. .pillar-section {
  595. margin-top: var(--space-3xl);
  596. text-align: center;
  597. }
  598. .pillar-heading {
  599. font-size: 1.35rem;
  600. font-weight: 700;
  601. color: var(--color-text-primary);
  602. margin-bottom: var(--space-2xl);
  603. position: relative;
  604. display: inline-block;
  605. }
  606. .pillar-heading::after {
  607. content: '';
  608. display: block;
  609. width: 60px;
  610. height: 3px;
  611. background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  612. border-radius: 2px;
  613. margin: var(--space-sm) auto 0;
  614. }
  615. .pillar-grid {
  616. display: grid;
  617. grid-template-columns: repeat(3, 1fr);
  618. gap: var(--space-xl);
  619. max-width: 960px;
  620. margin: 0 auto;
  621. }
  622. .pillar-card {
  623. background: var(--bg-surface);
  624. border-radius: var(--radius-lg);
  625. padding: var(--space-2xl) var(--space-lg);
  626. text-align: center;
  627. border: 1px solid var(--color-border-light);
  628. transition: transform .3s ease, box-shadow .3s ease;
  629. }
  630. .pillar-card:hover {
  631. transform: translateY(-6px);
  632. box-shadow: var(--shadow-lg);
  633. }
  634. .pillar-icon {
  635. display: inline-flex;
  636. align-items: center;
  637. justify-content: center;
  638. width: 64px;
  639. height: 64px;
  640. border-radius: 50%;
  641. background: var(--pillar-bg, var(--color-primary-light));
  642. margin-bottom: var(--space-md);
  643. }
  644. .pillar-card h4 {
  645. font-size: 1.125rem;
  646. font-weight: 700;
  647. color: var(--pillar-color, var(--color-primary));
  648. margin-bottom: var(--space-sm);
  649. }
  650. .pillar-card p {
  651. font-size: var(--font-size-small);
  652. color: var(--color-text-secondary);
  653. line-height: 1.7;
  654. margin: 0;
  655. }
  656. @media (max-width: 768px) {
  657. .pillar-grid {
  658. grid-template-columns: 1fr;
  659. gap: var(--space-lg);
  660. }
  661. }
  662. /* ----------------------------------------------------------
  663. 9. Dimensions Section
  664. ---------------------------------------------------------- */
  665. .section-dimensions {
  666. background: var(--bg-surface);
  667. }
  668. .dimension-grid {
  669. display: grid;
  670. grid-template-columns: repeat(3, 1fr);
  671. gap: var(--space-xl);
  672. }
  673. .dimension-card {
  674. background: var(--bg-surface);
  675. border: 1px solid var(--color-border-light);
  676. border-radius: var(--radius-lg);
  677. padding: var(--space-2xl);
  678. position: relative;
  679. overflow: hidden;
  680. transition: all var(--transition-normal);
  681. }
  682. .dimension-card::before {
  683. content: '';
  684. position: absolute;
  685. top: 0;
  686. left: 0;
  687. right: 0;
  688. height: 4px;
  689. background: var(--dim-color);
  690. opacity: .6;
  691. transition: opacity var(--transition-normal);
  692. }
  693. .dimension-card:hover {
  694. transform: translateY(-6px);
  695. box-shadow: var(--shadow-lg);
  696. border-color: transparent;
  697. }
  698. .dimension-card:hover::before {
  699. opacity: 1;
  700. }
  701. .dim-title {
  702. font-size: var(--font-size-h3);
  703. font-weight: 700;
  704. margin-bottom: var(--space-sm);
  705. display: flex;
  706. align-items: center;
  707. gap: var(--space-xs);
  708. }
  709. .dim-emoji {
  710. font-size: 1.5rem;
  711. }
  712. .dim-desc {
  713. font-size: var(--font-size-small);
  714. color: var(--color-text-secondary);
  715. line-height: 1.8;
  716. margin-bottom: var(--space-md);
  717. }
  718. .dim-points {
  719. display: flex;
  720. flex-wrap: wrap;
  721. gap: var(--space-xs);
  722. }
  723. .dim-points li {
  724. font-size: var(--font-size-tiny);
  725. font-weight: 500;
  726. color: var(--dim-color);
  727. background: var(--dim-bg);
  728. padding: .3em .9em;
  729. border-radius: var(--radius-full);
  730. }
  731. /* Make 2 items in last row centered */
  732. /* 5 items in 3-col grid: items 4 & 5 naturally wrap to row 2, cols 1 & 2 */
  733. /* ----------------------------------------------------------
  734. 10. Features Section
  735. ---------------------------------------------------------- */
  736. .section-features {
  737. background: var(--bg-section-alt);
  738. }
  739. .features-grid {
  740. display: grid;
  741. grid-template-columns: repeat(4, 1fr);
  742. gap: var(--space-lg);
  743. }
  744. .feature-card {
  745. background: var(--bg-surface);
  746. border: 1px solid var(--color-border-light);
  747. border-radius: var(--radius-lg);
  748. padding: var(--space-xl);
  749. transition: all var(--transition-normal);
  750. text-align: center;
  751. }
  752. .feature-card:hover {
  753. transform: translateY(-4px);
  754. box-shadow: var(--shadow-md);
  755. border-color: transparent;
  756. }
  757. .feature-icon {
  758. width: 56px;
  759. height: 56px;
  760. margin: 0 auto var(--space-md);
  761. display: flex;
  762. align-items: center;
  763. justify-content: center;
  764. border-radius: var(--radius-md);
  765. background: color-mix(in srgb, var(--fc) 10%, white);
  766. color: var(--fc);
  767. }
  768. .feature-card h3 {
  769. font-size: 1rem;
  770. font-weight: 700;
  771. margin-bottom: var(--space-sm);
  772. }
  773. .feature-card p {
  774. font-size: var(--font-size-small);
  775. color: var(--color-text-secondary);
  776. line-height: 1.7;
  777. }
  778. /* ----------------------------------------------------------
  779. 11. Roles Section
  780. ---------------------------------------------------------- */
  781. .section-roles {
  782. background: var(--bg-surface);
  783. }
  784. .roles-flow {
  785. display: flex;
  786. align-items: stretch;
  787. justify-content: center;
  788. gap: var(--space-xl);
  789. max-width: 960px;
  790. margin: 0 auto;
  791. }
  792. .role-card {
  793. flex: 1;
  794. background: var(--bg-surface);
  795. border: 1px solid var(--color-border-light);
  796. border-radius: var(--radius-lg);
  797. padding: var(--space-xl);
  798. text-align: center;
  799. position: relative;
  800. transition: all var(--transition-normal);
  801. }
  802. .role-card:hover {
  803. transform: translateY(-4px);
  804. box-shadow: var(--shadow-md);
  805. }
  806. .role-badge {
  807. display: inline-block;
  808. font-size: var(--font-size-tiny);
  809. font-weight: 600;
  810. padding: .25em 1em;
  811. border-radius: var(--radius-full);
  812. margin-bottom: var(--space-md);
  813. }
  814. .role-parent .role-badge { background: var(--color-primary-light); color: var(--color-primary); }
  815. .role-teacher .role-badge { background: #F0F7FF; color: #3B82F6; }
  816. .role-admin .role-badge { background: #EEF0FF; color: #6366F1; }
  817. .role-icon {
  818. margin-bottom: var(--space-md);
  819. }
  820. .role-card h3 {
  821. font-size: var(--font-size-h3);
  822. font-weight: 700;
  823. margin-bottom: var(--space-sm);
  824. }
  825. .role-card > p {
  826. font-size: var(--font-size-small);
  827. color: var(--color-text-secondary);
  828. line-height: 1.7;
  829. margin-bottom: var(--space-md);
  830. }
  831. .role-perms {
  832. text-align: left;
  833. }
  834. .role-perms li {
  835. font-size: var(--font-size-tiny);
  836. color: var(--color-text-secondary);
  837. padding: .35em 0;
  838. display: flex;
  839. align-items: center;
  840. gap: var(--space-xs);
  841. }
  842. .role-perms li::before {
  843. content: '';
  844. width: 5px;
  845. height: 5px;
  846. border-radius: 50%;
  847. background: var(--color-primary);
  848. flex-shrink: 0;
  849. }
  850. .role-teacher .role-perms li::before { background: #3B82F6; }
  851. .role-admin .role-perms li::before { background: #6366F1; }
  852. /* 客户角色 — 小程序二维码 */
  853. .role-qr {
  854. margin-top: var(--space-lg);
  855. padding-top: var(--space-md);
  856. border-top: 1px solid var(--color-border-light);
  857. display: flex;
  858. flex-direction: column;
  859. align-items: center;
  860. gap: var(--space-xs);
  861. }
  862. .role-qr-code {
  863. display: inline-flex;
  864. align-items: center;
  865. justify-content: center;
  866. width: 80px;
  867. height: 80px;
  868. border-radius: var(--radius-md);
  869. background: #fff;
  870. box-shadow: 0 2px 8px rgba(0,0,0,.08);
  871. transition: transform .3s ease, box-shadow .3s ease;
  872. cursor: pointer;
  873. }
  874. .role-qr-code:hover {
  875. transform: scale(1.08);
  876. box-shadow: 0 4px 16px rgba(0,0,0,.12);
  877. }
  878. .role-qr-label {
  879. font-size: var(--font-size-tiny);
  880. color: var(--color-text-secondary);
  881. font-weight: 500;
  882. letter-spacing: .05em;
  883. }
  884. .roles-connector {
  885. display: flex;
  886. flex-direction: column;
  887. align-items: center;
  888. gap: var(--space-xs);
  889. color: var(--color-text-muted);
  890. font-size: var(--font-size-tiny);
  891. font-weight: 500;
  892. flex-shrink: 0;
  893. align-self: center;
  894. }
  895. .connector-arrow {
  896. width: 2px;
  897. height: 40px;
  898. background: var(--color-border);
  899. position: relative;
  900. }
  901. .connector-arrow::after {
  902. content: '';
  903. position: absolute;
  904. bottom: -4px;
  905. left: 50%;
  906. transform: translateX(-50%);
  907. border: 5px solid transparent;
  908. border-top-color: var(--color-border);
  909. }
  910. /* ----------------------------------------------------------
  911. 12. Contact Section
  912. ---------------------------------------------------------- */
  913. .section-contact {
  914. background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-body) 100%);
  915. }
  916. .contact-grid {
  917. display: grid;
  918. grid-template-columns: 1fr 1fr;
  919. gap: var(--space-3xl);
  920. align-items: start;
  921. max-width: 800px;
  922. margin: 0 auto;
  923. }
  924. .contact-info {
  925. display: flex;
  926. flex-direction: column;
  927. gap: var(--space-lg);
  928. }
  929. .contact-item {
  930. display: flex;
  931. align-items: flex-start;
  932. gap: var(--space-md);
  933. padding: var(--space-lg);
  934. background: var(--bg-surface);
  935. border-radius: var(--radius-md);
  936. border: 1px solid var(--color-border-light);
  937. }
  938. .contact-item svg {
  939. flex-shrink: 0;
  940. margin-top: 2px;
  941. }
  942. .contact-item strong {
  943. display: block;
  944. font-size: var(--font-size-tiny);
  945. color: var(--color-text-muted);
  946. font-weight: 500;
  947. text-transform: uppercase;
  948. letter-spacing: .04em;
  949. margin-bottom: 2px;
  950. }
  951. .contact-item span {
  952. font-weight: 600;
  953. color: var(--color-text-primary);
  954. }
  955. .contact-cta {
  956. text-align: center;
  957. padding: var(--space-2xl);
  958. background: var(--bg-surface);
  959. border-radius: var(--radius-lg);
  960. border: 1px solid var(--color-border-light);
  961. }
  962. .contact-cta > p {
  963. font-size: var(--font-size-h3);
  964. font-weight: 700;
  965. margin-bottom: var(--space-xs);
  966. }
  967. .cta-sub {
  968. font-size: var(--font-size-small) !important;
  969. font-weight: 400 !important;
  970. color: var(--color-text-secondary);
  971. margin-bottom: var(--space-xl) !important;
  972. }
  973. .cta-cards {
  974. display: grid;
  975. grid-template-columns: repeat(3, 1fr);
  976. gap: var(--space-sm);
  977. }
  978. .cta-card {
  979. display: flex;
  980. flex-direction: column;
  981. align-items: center;
  982. gap: var(--space-xs);
  983. padding: var(--space-md);
  984. background: var(--bg-body);
  985. border-radius: var(--radius-md);
  986. font-size: var(--font-size-tiny);
  987. font-weight: 600;
  988. border: 1px solid var(--color-border-light);
  989. transition: all var(--transition-fast);
  990. }
  991. .cta-card:hover {
  992. border-color: var(--color-primary);
  993. background: var(--color-primary-light);
  994. }
  995. .cta-card-icon {
  996. font-size: 1.5rem;
  997. }
  998. .cta-card-desc {
  999. font-weight: 400;
  1000. color: var(--color-text-muted);
  1001. font-size: var(--font-size-tiny);
  1002. }
  1003. /* ----------------------------------------------------------
  1004. 13. Footer
  1005. ---------------------------------------------------------- */
  1006. .site-footer {
  1007. background: var(--color-text-primary);
  1008. color: #fff;
  1009. padding: var(--space-3xl) 0 0;
  1010. }
  1011. .footer-inner {
  1012. display: flex;
  1013. justify-content: space-between;
  1014. gap: var(--space-3xl);
  1015. padding-bottom: var(--space-2xl);
  1016. border-bottom: 1px solid rgba(255, 255, 255, .1);
  1017. }
  1018. .footer-brand .logo-text {
  1019. color: #fff;
  1020. font-size: 1.25rem;
  1021. font-weight: 700;
  1022. }
  1023. .footer-brand .logo-tag {
  1024. color: var(--color-primary);
  1025. font-weight: 600;
  1026. font-size: 1.25rem;
  1027. }
  1028. .footer-brand p {
  1029. color: rgba(255, 255, 255, .6);
  1030. font-size: var(--font-size-small);
  1031. margin-top: var(--space-sm);
  1032. max-width: 300px;
  1033. line-height: 1.7;
  1034. }
  1035. .footer-links {
  1036. display: flex;
  1037. gap: var(--space-3xl);
  1038. }
  1039. .footer-col h4 {
  1040. font-size: var(--font-size-tiny);
  1041. font-weight: 600;
  1042. text-transform: uppercase;
  1043. letter-spacing: .06em;
  1044. color: rgba(255, 255, 255, .5);
  1045. margin-bottom: var(--space-md);
  1046. }
  1047. .footer-col ul li {
  1048. margin-bottom: var(--space-sm);
  1049. }
  1050. .footer-col ul li a {
  1051. font-size: var(--font-size-small);
  1052. color: rgba(255, 255, 255, .7);
  1053. transition: color var(--transition-fast);
  1054. }
  1055. .footer-col ul li a:hover {
  1056. color: var(--color-primary);
  1057. }
  1058. .footer-bottom {
  1059. text-align: center;
  1060. padding: var(--space-lg) 0;
  1061. }
  1062. .footer-bottom p {
  1063. font-size: var(--font-size-tiny);
  1064. color: rgba(255, 255, 255, .4);
  1065. }
  1066. /* ----------------------------------------------------------
  1067. 14. Scroll Animations (AOS-like)
  1068. ---------------------------------------------------------- */
  1069. .reveal {
  1070. opacity: 0;
  1071. transform: translateY(30px);
  1072. transition: opacity .6s ease, transform .6s cubic-bezier(.4, 0, .2, 1);
  1073. }
  1074. .reveal.visible {
  1075. opacity: 1;
  1076. transform: translateY(0);
  1077. }
  1078. /* ----------------------------------------------------------
  1079. 15. Responsive - Tablet
  1080. ---------------------------------------------------------- */
  1081. @media (max-width: 1024px) {
  1082. .hero-inner {
  1083. grid-template-columns: 1fr;
  1084. text-align: center;
  1085. }
  1086. .hero-desc {
  1087. margin-left: auto;
  1088. margin-right: auto;
  1089. }
  1090. .hero-actions {
  1091. justify-content: center;
  1092. }
  1093. .hero-visual {
  1094. display: none;
  1095. }
  1096. .dimension-grid {
  1097. grid-template-columns: repeat(2, 1fr);
  1098. }
  1099. /* Reset grid centering */
  1100. .dimension-card:nth-child(4) {
  1101. grid-column: auto;
  1102. justify-self: auto;
  1103. width: auto;
  1104. }
  1105. .dimension-card:nth-child(5) {
  1106. grid-column: auto;
  1107. justify-self: auto;
  1108. width: auto;
  1109. }
  1110. .features-grid {
  1111. grid-template-columns: repeat(2, 1fr);
  1112. }
  1113. .roles-flow {
  1114. gap: var(--space-md);
  1115. }
  1116. .role-card {
  1117. padding: var(--space-lg) var(--space-md);
  1118. }
  1119. .roles-connector {
  1120. flex-direction: row;
  1121. gap: 0;
  1122. }
  1123. .connector-arrow {
  1124. width: 40px;
  1125. height: 2px;
  1126. }
  1127. .connector-arrow::after {
  1128. top: 50%;
  1129. left: auto;
  1130. right: -4px;
  1131. bottom: auto;
  1132. transform: translateY(-50%);
  1133. border: 5px solid transparent;
  1134. border-left-color: var(--color-border);
  1135. border-top-color: transparent;
  1136. }
  1137. .contact-grid {
  1138. grid-template-columns: 1fr;
  1139. }
  1140. .product-stats {
  1141. grid-template-columns: repeat(2, 1fr);
  1142. }
  1143. }
  1144. /* ----------------------------------------------------------
  1145. 16. Responsive - Mobile
  1146. ---------------------------------------------------------- */
  1147. @media (max-width: 768px) {
  1148. :root {
  1149. --space-section: 3.5rem;
  1150. --header-height: 56px;
  1151. }
  1152. .container {
  1153. padding: 0 var(--space-md);
  1154. }
  1155. /* Mobile Nav */
  1156. .nav-toggle {
  1157. display: flex;
  1158. }
  1159. .nav {
  1160. position: fixed;
  1161. top: var(--header-height);
  1162. left: 0;
  1163. right: 0;
  1164. background: rgba(255, 249, 240, .98);
  1165. backdrop-filter: blur(16px);
  1166. -webkit-backdrop-filter: blur(16px);
  1167. border-bottom: 1px solid var(--color-border-light);
  1168. padding: var(--space-lg);
  1169. transform: translateY(-110%);
  1170. opacity: 0;
  1171. transition: all var(--transition-normal);
  1172. pointer-events: none;
  1173. }
  1174. .nav.open {
  1175. transform: translateY(0);
  1176. opacity: 1;
  1177. pointer-events: auto;
  1178. }
  1179. .nav-list {
  1180. flex-direction: column;
  1181. gap: 0;
  1182. }
  1183. .nav-link {
  1184. display: block;
  1185. padding: var(--space-md) 0;
  1186. border-bottom: 1px solid var(--color-border-light);
  1187. width: 100%;
  1188. }
  1189. .nav-link::after {
  1190. display: none;
  1191. }
  1192. /* Hero */
  1193. .hero-title {
  1194. font-size: clamp(1.75rem, 7vw, 2.5rem);
  1195. }
  1196. .hero-desc {
  1197. font-size: var(--font-size-small);
  1198. }
  1199. .hero-actions {
  1200. flex-direction: column;
  1201. align-items: stretch;
  1202. }
  1203. .btn {
  1204. justify-content: center;
  1205. }
  1206. /* Grids */
  1207. .about-grid {
  1208. grid-template-columns: 1fr;
  1209. }
  1210. .dimension-grid {
  1211. grid-template-columns: 1fr;
  1212. }
  1213. .features-grid {
  1214. grid-template-columns: 1fr;
  1215. }
  1216. .contact-grid {
  1217. grid-template-columns: 1fr;
  1218. }
  1219. .product-stats {
  1220. grid-template-columns: repeat(2, 1fr);
  1221. }
  1222. .cta-cards {
  1223. grid-template-columns: 1fr;
  1224. }
  1225. .footer-inner {
  1226. flex-direction: column;
  1227. gap: var(--space-xl);
  1228. }
  1229. .footer-links {
  1230. gap: var(--space-xl);
  1231. }
  1232. .product-quote {
  1233. padding: var(--space-md) var(--space-lg);
  1234. }
  1235. .product-quote p {
  1236. font-size: var(--font-size-small);
  1237. }
  1238. .stat-num {
  1239. font-size: 1.5rem;
  1240. }
  1241. /* Roles row — tighter spacing */
  1242. .roles-flow {
  1243. gap: var(--space-sm);
  1244. }
  1245. .role-card {
  1246. padding: var(--space-md);
  1247. }
  1248. .role-card h3 {
  1249. font-size: calc(var(--font-size-h3) * 0.85);
  1250. }
  1251. .role-perms li {
  1252. font-size: calc(var(--font-size-tiny) * 0.9);
  1253. }
  1254. .role-qr-code {
  1255. width: 64px;
  1256. height: 64px;
  1257. }
  1258. .role-qr-code svg {
  1259. width: 56px;
  1260. height: 56px;
  1261. }
  1262. }
  1263. @media (max-width: 480px) {
  1264. .product-stats {
  1265. grid-template-columns: repeat(2, 1fr);
  1266. gap: var(--space-sm);
  1267. }
  1268. .stat {
  1269. padding: var(--space-md);
  1270. }
  1271. .roles-flow {
  1272. flex-direction: column;
  1273. gap: var(--space-md);
  1274. }
  1275. .roles-connector {
  1276. flex-direction: column;
  1277. gap: var(--space-xs);
  1278. }
  1279. .connector-arrow {
  1280. width: 2px;
  1281. height: 40px;
  1282. }
  1283. .connector-arrow::after {
  1284. top: auto;
  1285. left: 50%;
  1286. right: auto;
  1287. bottom: -4px;
  1288. transform: translateX(-50%);
  1289. border: 5px solid transparent;
  1290. border-top-color: var(--color-border);
  1291. border-left-color: transparent;
  1292. }
  1293. .footer-links {
  1294. flex-direction: column;
  1295. gap: var(--space-lg);
  1296. }
  1297. }
  1298. /* ----------------------------------------------------------
  1299. 17. Logo
  1300. ---------------------------------------------------------- */
  1301. .logo-img {
  1302. display: block;
  1303. flex-shrink: 0;
  1304. border-radius: 8px;
  1305. width: 36px;
  1306. height: 36px;
  1307. object-fit: contain;
  1308. }
  1309. .footer-logo-img {
  1310. display: block;
  1311. flex-shrink: 0;
  1312. border-radius: 10px;
  1313. margin-bottom: var(--space-xs);
  1314. object-fit: contain;
  1315. }
  1316. /* ----------------------------------------------------------
  1317. 18. Wuxing Philosophy Section
  1318. ---------------------------------------------------------- */
  1319. .section-wuxing {
  1320. background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface) 100%);
  1321. }
  1322. /* --- Diagram --- */
  1323. .wuxing-diagram {
  1324. position: relative;
  1325. width: 100%;
  1326. max-width: 480px;
  1327. aspect-ratio: 1;
  1328. margin: 0 auto var(--space-3xl);
  1329. }
  1330. .wuxing-diagram canvas {
  1331. display: block;
  1332. width: 100%;
  1333. height: 100%;
  1334. }
  1335. /* --- Explanation Cards --- */
  1336. .wuxing-explanations {
  1337. max-width: 900px;
  1338. margin: 0 auto;
  1339. }
  1340. .we-section {
  1341. margin-bottom: var(--space-2xl);
  1342. }
  1343. .we-section:last-child {
  1344. margin-bottom: 0;
  1345. }
  1346. .we-title {
  1347. font-size: var(--font-size-h3);
  1348. font-weight: 700;
  1349. margin-bottom: var(--space-xs);
  1350. }
  1351. .we-sheng {
  1352. color: var(--color-secondary);
  1353. }
  1354. .we-ke {
  1355. color: var(--color-primary);
  1356. }
  1357. .we-subtitle {
  1358. font-size: var(--font-size-small);
  1359. color: var(--color-text-secondary);
  1360. margin-bottom: var(--space-lg);
  1361. }
  1362. .we-grid {
  1363. display: grid;
  1364. grid-template-columns: repeat(5, 1fr);
  1365. gap: var(--space-md);
  1366. }
  1367. .wuxing-card {
  1368. background: var(--bg-surface);
  1369. border: 1px solid var(--color-border-light);
  1370. border-radius: var(--radius-md);
  1371. padding: var(--space-lg);
  1372. text-align: center;
  1373. transition: all var(--transition-normal);
  1374. position: relative;
  1375. overflow: hidden;
  1376. }
  1377. .wuxing-card::before {
  1378. content: '';
  1379. position: absolute;
  1380. top: 0;
  1381. left: 0;
  1382. right: 0;
  1383. height: 3px;
  1384. background: var(--wc-color);
  1385. opacity: .5;
  1386. transition: opacity var(--transition-normal);
  1387. }
  1388. .wuxing-card:hover {
  1389. transform: translateY(-4px);
  1390. box-shadow: var(--shadow-md);
  1391. border-color: transparent;
  1392. }
  1393. .wuxing-card:hover::before {
  1394. opacity: 1;
  1395. }
  1396. .wc-arrow {
  1397. display: inline-block;
  1398. font-size: var(--font-size-tiny);
  1399. font-weight: 700;
  1400. color: var(--wc-color);
  1401. padding: .15em .6em;
  1402. border-radius: var(--radius-full);
  1403. background: color-mix(in srgb, var(--wc-color) 10%, white);
  1404. margin-bottom: var(--space-sm);
  1405. }
  1406. .wuxing-card h4 {
  1407. font-size: 1rem;
  1408. font-weight: 700;
  1409. margin-bottom: var(--space-xs);
  1410. color: var(--color-text-primary);
  1411. }
  1412. .wuxing-card p {
  1413. font-size: var(--font-size-tiny);
  1414. color: var(--color-text-secondary);
  1415. line-height: 1.6;
  1416. }
  1417. /* ----------------------------------------------------------
  1418. 19. Dimension Energy Tips
  1419. ---------------------------------------------------------- */
  1420. .dim-energy {
  1421. margin-top: var(--space-md);
  1422. padding-top: var(--space-md);
  1423. border-top: 1px dashed var(--color-border-light);
  1424. }
  1425. .dim-energy h4 {
  1426. font-size: var(--font-size-small);
  1427. font-weight: 700;
  1428. color: var(--dim-color);
  1429. margin-bottom: var(--space-sm);
  1430. }
  1431. .dim-energy ul {
  1432. display: flex;
  1433. flex-direction: column;
  1434. gap: var(--space-xs);
  1435. }
  1436. .dim-energy ul li {
  1437. font-size: var(--font-size-tiny);
  1438. color: var(--color-text-secondary);
  1439. padding: .25em 0;
  1440. display: flex;
  1441. align-items: center;
  1442. gap: var(--space-xs);
  1443. }
  1444. .dim-energy ul li::before {
  1445. content: '✦';
  1446. color: var(--dim-color);
  1447. font-size: 10px;
  1448. flex-shrink: 0;
  1449. }
  1450. /* Dim element badge */
  1451. .dim-element {
  1452. display: inline-block;
  1453. font-size: 10px;
  1454. font-weight: 600;
  1455. color: #fff;
  1456. padding: .15em .6em;
  1457. border-radius: var(--radius-full);
  1458. margin-left: var(--space-xs);
  1459. vertical-align: middle;
  1460. letter-spacing: .04em;
  1461. }
  1462. /* Responsive: Wuxing diagram — handled by aspect-ratio and Canvas redraw */
  1463. @media (max-width: 600px) {
  1464. .wuxing-diagram {
  1465. max-width: 360px;
  1466. }
  1467. }
  1468. @media (max-width: 1024px) {
  1469. .we-grid {
  1470. grid-template-columns: repeat(3, 1fr);
  1471. }
  1472. }
  1473. @media (max-width: 600px) {
  1474. .we-grid {
  1475. grid-template-columns: repeat(2, 1fr);
  1476. }
  1477. }
  1478. @media (max-width: 480px) {
  1479. .we-grid {
  1480. grid-template-columns: 1fr;
  1481. }
  1482. }