page-compare.css 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. .compare-page {
  2. background: #fff;
  3. color: #111827;
  4. }
  5. .compare-hero {
  6. padding: 78px 0 28px;
  7. }
  8. .compare-shell {
  9. max-width: 1300px;
  10. margin: 0 auto;
  11. padding: 0 16px;
  12. }
  13. .compare-hero-banner {
  14. position: relative;
  15. width: 100%;
  16. min-height: 380px;
  17. overflow: hidden;
  18. border-radius: 0;
  19. background: transparent;
  20. }
  21. .compare-hero-banner::after {
  22. content: "";
  23. position: absolute;
  24. inset: 0;
  25. background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.16) 42%, rgba(255,255,255,.18) 100%);
  26. }
  27. .compare-hero-image {
  28. display: block;
  29. width: 100%;
  30. height: 380px;
  31. object-fit: cover;
  32. }
  33. .compare-hero-minimal {
  34. position: absolute;
  35. top: 0;
  36. left: 0;
  37. right: 0;
  38. z-index: 1;
  39. padding: 28px 32px 0;
  40. }
  41. .compare-hero-copy {
  42. max-width: 760px;
  43. margin: 0 auto;
  44. text-align: center;
  45. }
  46. .compare-hero-overline {
  47. display: inline-block;
  48. margin-bottom: 12px;
  49. font-size: 16px;
  50. line-height: 1.4;
  51. font-weight: 500;
  52. letter-spacing: 0;
  53. color: #111827;
  54. }
  55. .compare-hero h1 {
  56. margin: 0;
  57. font-size: clamp(24px, 3.2vw, 38px);
  58. line-height: 1.2;
  59. font-weight: 600;
  60. letter-spacing: -.02em;
  61. color: #111827;
  62. }
  63. .compare-main {
  64. padding: 10px 0 72px;
  65. }
  66. .compare-toolbar {
  67. display: grid;
  68. grid-template-columns: repeat(3, minmax(0, 1fr));
  69. gap: 12px;
  70. width: 89%;
  71. margin-left: auto;
  72. padding: 0 0 28px;
  73. }
  74. .compare-dropdown {
  75. position: relative;
  76. }
  77. .compare-dropdown-toggle {
  78. width: 100%;
  79. min-height: 56px;
  80. border: 1px solid rgba(17,24,39,.10);
  81. border-radius: 12px;
  82. background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  83. box-shadow: 0 8px 20px rgba(17,24,39,.04);
  84. padding: 12px 42px 12px 14px;
  85. display: flex;
  86. align-items: center;
  87. justify-content: space-between;
  88. text-align: left;
  89. transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  90. }
  91. .compare-dropdown-toggle:hover {
  92. border-color: rgba(17,24,39,.18);
  93. box-shadow: 0 16px 36px rgba(17,24,39,.08);
  94. }
  95. .compare-dropdown.is-open .compare-dropdown-toggle {
  96. border-color: #f5c400;
  97. box-shadow: 0 0 0 3px rgba(245,196,0,.22), 0 16px 36px rgba(17,24,39,.08);
  98. }
  99. .compare-dropdown.is-busy .compare-dropdown-toggle {
  100. opacity: .72;
  101. cursor: wait;
  102. }
  103. .compare-dropdown.is-busy .compare-dropdown-menu {
  104. pointer-events: none;
  105. }
  106. .compare-dropdown-text {
  107. display: flex;
  108. flex-direction: column;
  109. gap: 3px;
  110. min-width: 0;
  111. }
  112. .compare-dropdown-text strong {
  113. display: block;
  114. font-size: 15px;
  115. line-height: 1.25;
  116. font-weight: 600;
  117. color: #111827;
  118. white-space: nowrap;
  119. overflow: hidden;
  120. text-overflow: ellipsis;
  121. }
  122. .compare-dropdown-text small {
  123. display: block;
  124. font-size: 12px;
  125. line-height: 1.3;
  126. color: #6b7280;
  127. }
  128. .compare-dropdown-icon {
  129. position: absolute;
  130. right: 20px;
  131. top: 50%;
  132. width: 10px;
  133. height: 10px;
  134. border-right: 1.5px solid #111827;
  135. border-bottom: 1.5px solid #111827;
  136. transform: translateY(-70%) rotate(45deg);
  137. transition: transform .2s ease;
  138. }
  139. .compare-dropdown.is-open .compare-dropdown-icon {
  140. transform: translateY(-10%) rotate(-135deg);
  141. }
  142. .compare-dropdown-menu {
  143. position: absolute;
  144. top: calc(100% + 10px);
  145. left: 0;
  146. right: 0;
  147. z-index: 30;
  148. display: none;
  149. padding: 8px;
  150. border-radius: 18px;
  151. background: #fff;
  152. border: 1px solid rgba(17,24,39,.10);
  153. box-shadow: 0 24px 48px rgba(17,24,39,.14);
  154. }
  155. .compare-dropdown.is-open .compare-dropdown-menu {
  156. display: block;
  157. }
  158. .compare-dropdown-item {
  159. width: 100%;
  160. border: 0;
  161. border-radius: 12px;
  162. background: transparent;
  163. text-align: left;
  164. padding: 12px 14px;
  165. display: flex;
  166. flex-direction: column;
  167. gap: 4px;
  168. transition: background-color .18s ease, color .18s ease;
  169. }
  170. .compare-dropdown-item:hover {
  171. background: rgba(17,24,39,.04);
  172. }
  173. .compare-dropdown-item.is-active {
  174. background: rgba(245,196,0,.14);
  175. }
  176. .compare-dropdown-item-title {
  177. font-size: 15px;
  178. line-height: 1.4;
  179. font-weight: 600;
  180. color: #111827;
  181. }
  182. .compare-dropdown-item-subtitle {
  183. font-size: 12px;
  184. line-height: 1.4;
  185. color: #6b7280;
  186. }
  187. .compare-products {
  188. display: grid;
  189. grid-template-columns: repeat(3, minmax(0, 1fr));
  190. gap: 0;
  191. align-items: start;
  192. width: 89%;
  193. margin-left: auto;
  194. padding: 8px 0 12px;
  195. }
  196. .compare-product-card {
  197. text-align: center;
  198. display: flex;
  199. flex-direction: column;
  200. min-height: 100%;
  201. }
  202. .compare-product-media {
  203. height: 260px;
  204. display: flex;
  205. align-items: center;
  206. justify-content: center;
  207. margin-bottom: 20px;
  208. }
  209. .compare-product-media img {
  210. max-width: 100%;
  211. max-height: 100%;
  212. object-fit: contain;
  213. }
  214. .compare-product-title {
  215. margin: 0;
  216. font-size: 24px;
  217. line-height: 1.18;
  218. font-weight: 700;
  219. letter-spacing: -.02em;
  220. color: #111827;
  221. }
  222. .compare-product-subtitle {
  223. margin: 8px 0 0;
  224. min-height: 22px;
  225. font-size: 14px;
  226. color: #6b7280;
  227. }
  228. .compare-product-actions {
  229. margin-top: 18px;
  230. display: flex;
  231. flex-direction: column;
  232. align-items: center;
  233. gap: 10px;
  234. }
  235. .compare-buy-btn {
  236. display: inline-flex;
  237. align-items: center;
  238. justify-content: center;
  239. min-width: 124px;
  240. height: 42px;
  241. padding: 0 24px;
  242. border-radius: 999px;
  243. background: #ffd400;
  244. color: #111827;
  245. font-size: 15px;
  246. font-weight: 700;
  247. text-decoration: none;
  248. transition: transform .2s ease, box-shadow .2s ease;
  249. }
  250. .compare-buy-btn:hover {
  251. color: #111827;
  252. transform: translateY(-1px);
  253. box-shadow: 0 10px 24px rgba(255,212,0,.34);
  254. }
  255. .compare-more-link {
  256. color: #2563eb;
  257. font-size: 14px;
  258. font-weight: 600;
  259. text-decoration: none;
  260. }
  261. .compare-table-wrap {
  262. padding-top: 28px;
  263. }
  264. .compare-group-title {
  265. margin: 0;
  266. padding: 28px 0 18px;
  267. font-size: 28px;
  268. font-weight: 500;
  269. line-height: 40px;
  270. letter-spacing: -.02em;
  271. color: #111827;
  272. }
  273. .compare-table-scroll {
  274. width: 100%;
  275. }
  276. .compare-spec-table {
  277. width: 100%;
  278. border-collapse: collapse;
  279. table-layout: fixed;
  280. }
  281. .compare-spec-table col:first-child {
  282. width: 11%;
  283. }
  284. .compare-spec-table col:not(:first-child) {
  285. width: 29.6667%;
  286. }
  287. .compare-spec-table tr {
  288. border-top: 1px solid rgba(17,24,39,.08);
  289. }
  290. .compare-spec-table th,
  291. .compare-spec-table td {
  292. padding: 22px 12px;
  293. vertical-align: top;
  294. }
  295. .compare-spec-table th {
  296. font-size: 15px;
  297. line-height: 1.7;
  298. font-weight: 700;
  299. color: #111827;
  300. text-align: left;
  301. }
  302. .compare-spec-table td {
  303. font-size: 15px;
  304. line-height: 1.9;
  305. color: #6b7280;
  306. text-align: center;
  307. white-space: pre-line;
  308. }
  309. .compare-empty {
  310. padding: 22px 0 0;
  311. color: #9ca3af;
  312. font-size: 15px;
  313. }
  314. @media (max-width: 1199.98px) {
  315. .compare-toolbar,
  316. .compare-products {
  317. grid-template-columns: 1fr;
  318. gap: 18px;
  319. width: 100%;
  320. margin-left: 0;
  321. }
  322. .compare-dropdown-menu {
  323. position: static;
  324. margin-top: 10px;
  325. }
  326. .compare-table-scroll {
  327. overflow-x: auto;
  328. }
  329. .compare-spec-table {
  330. min-width: 860px;
  331. }
  332. }
  333. @media (max-width: 767.98px) {
  334. .compare-hero {
  335. padding-top: 108px;
  336. }
  337. .compare-hero-banner {
  338. min-height: 300px;
  339. }
  340. .compare-hero-image {
  341. height: 300px;
  342. }
  343. .compare-hero-minimal {
  344. padding: 20px 20px 0;
  345. }
  346. .compare-hero-overline {
  347. margin-bottom: 10px;
  348. font-size: 14px;
  349. line-height: 1.4;
  350. }
  351. .compare-hero h1 {
  352. font-size: 24px;
  353. line-height: 1.24;
  354. }
  355. .compare-dropdown-toggle {
  356. min-height: 64px;
  357. padding: 14px 46px 14px 16px;
  358. border-radius: 14px;
  359. }
  360. .compare-dropdown-text strong {
  361. font-size: 16px;
  362. }
  363. .compare-product-media {
  364. height: 200px;
  365. }
  366. .compare-product-title {
  367. font-size: 22px;
  368. line-height: 1.2;
  369. }
  370. .compare-group-title {
  371. font-size: 28px;
  372. line-height: 40px;
  373. }
  374. }