service.scss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. /* =========================
  2. Service Pages – Shared Styles
  3. ========================= */
  4. /* Design tokens */
  5. $brand: #ea5413;
  6. $brand-dark: #c43e00;
  7. $brand-light: #fff3ed;
  8. $gray-border: #e5e7eb;
  9. $text-dark: #0b1120;
  10. $text-secondary: #555;
  11. :root {
  12. --brand: #{$brand};
  13. --brand-dark: #{$brand-dark};
  14. --brand-light: #{$brand-light};
  15. --gray-border: #{$gray-border};
  16. --text-dark: #{$text-dark};
  17. --text-secondary: #{$text-secondary};
  18. }
  19. /* Base */
  20. body {
  21. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  22. color: $text-dark;
  23. background-color: #fff;
  24. }
  25. a {
  26. color: $brand;
  27. text-decoration: none;
  28. &:hover {
  29. color: $brand-dark;
  30. }
  31. }
  32. /* Utilities */
  33. .text-primary {
  34. color: $brand !important;
  35. }
  36. .shadow-soft {
  37. box-shadow: 0 8px 30px rgba($brand, 0.15);
  38. }
  39. .kicker {
  40. letter-spacing: .12em;
  41. text-transform: uppercase;
  42. font-weight: 700;
  43. color: $brand-dark;
  44. }
  45. .hero {
  46. background:
  47. radial-gradient(1200px 520px at 15% -10%, rgba($brand, 0.18), transparent),
  48. radial-gradient(800px 420px at 100% 0%, rgba($brand, 0.1), transparent),
  49. linear-gradient(180deg, #fffdfc, #fff7f3);
  50. border-bottom: 1px solid $gray-border;
  51. }
  52. .line {
  53. border-bottom: 2px solid $brand-light;
  54. padding-bottom: 5rem;
  55. margin-bottom: 5rem;
  56. }
  57. .link-btn {
  58. display: inline-flex;
  59. align-items: center;
  60. gap: .5rem;
  61. background: $brand;
  62. color: #fff;
  63. padding: .9rem 1.2rem;
  64. border-radius: .8rem;
  65. text-decoration: none;
  66. transition: all .2s ease-in-out;
  67. font-weight: 600;
  68. box-shadow: 0 3px 8px rgba($brand, 0.2);
  69. &:hover {
  70. background: $brand-dark;
  71. color: #fff;
  72. transform: translateY(-1px);
  73. box-shadow: 0 6px 14px rgba($brand-dark, 0.25);
  74. }
  75. }
  76. .outline-btn {
  77. display: inline-flex;
  78. align-items: center;
  79. gap: .5rem;
  80. border: 2px solid $brand;
  81. color: $brand;
  82. padding: .8rem 1.2rem;
  83. border-radius: .8rem;
  84. font-weight: 600;
  85. background: transparent;
  86. text-decoration: none;
  87. transition: all .2s ease-in-out;
  88. &:hover {
  89. background: $brand;
  90. color: #fff;
  91. transform: translateY(-1px);
  92. }
  93. }
  94. .badge-soft {
  95. background: rgba($brand, 0.1);
  96. color: $brand;
  97. border: 1px solid rgba($brand, 0.2);
  98. font-weight: 600;
  99. }
  100. .feature-card {
  101. border: 1px solid $gray-border;
  102. border-radius: 16px;
  103. padding: 20px;
  104. background: #fff;
  105. height: 100%;
  106. transition: all .25s ease;
  107. overflow: hidden;
  108. /* 防止內容超出邊框 */
  109. &:hover {
  110. border-color: $brand;
  111. box-shadow: 0 6px 20px rgba($brand, 0.15);
  112. }
  113. h5 {
  114. background: $brand-light;
  115. color: $brand-dark;
  116. text-align: center;
  117. padding: 0.75rem;
  118. border-radius: 10px;
  119. font-weight: 700;
  120. font-size: 1.1rem;
  121. margin-bottom: 1rem;
  122. line-height: 1.5;
  123. i {
  124. color: $brand;
  125. }
  126. }
  127. img.demo-img {
  128. max-width: 100%;
  129. height: auto;
  130. object-fit: contain;
  131. display: block;
  132. border-radius: 12px;
  133. }
  134. @media (min-width: 992px) {
  135. img.demo-img {
  136. max-width: 45%;
  137. }
  138. }
  139. }
  140. .media-card {
  141. img,
  142. video {
  143. border-radius: 14px;
  144. width: 100%;
  145. height: auto;
  146. }
  147. }
  148. .accordion-button {
  149. color: $brand-dark;
  150. background-color: #fff;
  151. font-weight: 600;
  152. &:not(.collapsed) {
  153. color: $brand;
  154. background-color: $brand-light;
  155. box-shadow: inset 0 -1px 0 rgba($brand, 0.1);
  156. &::after {
  157. /* 若要跟隨品牌色動態變更,可改成以 SCSS 產圖或使用 mask + background-color 技法。
  158. 這裡先沿用原本 data-uri(#ea5413)。*/
  159. background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ea5413'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  160. }
  161. }
  162. &:focus {
  163. box-shadow: 0 0 0 .2rem rgba($brand, 0.25);
  164. }
  165. }
  166. .ratio {
  167. iframe {
  168. border: 1px solid $gray-border;
  169. border-radius: 12px;
  170. }
  171. }
  172. table {
  173. width: 100%;
  174. border-collapse: separate;
  175. border-spacing: 0;
  176. th,
  177. td {
  178. border: 1px solid $gray-border;
  179. padding: 1rem;
  180. vertical-align: top;
  181. }
  182. thead {
  183. th {
  184. background: $brand-light;
  185. color: $text-dark;
  186. font-weight: 700;
  187. text-align: center;
  188. border-bottom: none;
  189. }
  190. }
  191. tbody {
  192. td {
  193. p {
  194. margin-bottom: .5rem;
  195. }
  196. }
  197. ul {
  198. padding-left: 1.1rem;
  199. margin-bottom: 0;
  200. }
  201. }
  202. }
  203. .case-block {
  204. position: relative;
  205. padding-left: 0.25rem;
  206. @media (min-width: 992px) {
  207. padding-left: .75rem;
  208. &::before {
  209. content: "";
  210. position: absolute;
  211. left: -2px;
  212. top: 8px;
  213. bottom: 8px;
  214. width: 4px;
  215. background: linear-gradient(180deg, $brand, $brand-dark);
  216. border-radius: 4px;
  217. opacity: .15;
  218. }
  219. }
  220. .media-card {
  221. border-radius: 14px;
  222. }
  223. .media-card img {
  224. display: block;
  225. width: 100%;
  226. height: auto;
  227. border-radius: 12px;
  228. }
  229. .outline-btn {
  230. margin-top: .25rem;
  231. }
  232. }
  233. .case-meta {
  234. .badge {
  235. background: $brand-light !important;
  236. color: $brand-dark !important;
  237. border: 1px solid rgba($brand, .25) !important;
  238. font-weight: 600;
  239. }
  240. }
  241. .title {
  242. border-bottom: 2px solid $brand-light;
  243. }
  244. .cta-band {
  245. background: linear-gradient(135deg, $brand, $brand-dark);
  246. color: #fff;
  247. border-radius: 20px;
  248. box-shadow: 0 8px 25px rgba($brand, 0.25);
  249. }