ceramic-details.page.scss 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /* 主体内容容器 */
  2. .ceramic-container {
  3. text-align: center;
  4. padding: 20px;
  5. font-family: "FangSong", serif; /* 使用仿宋体 */
  6. border-radius: 16px; /* 圆角效果 */
  7. background: url('/assets/images/ceramics-background.png') no-repeat center/cover;
  8. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 更柔和的阴影 */
  9. margin: 20px auto;
  10. }
  11. /* 图片样式 */
  12. .ceramic-img {
  13. max-width: 100%;
  14. height: auto;
  15. border-radius: 10px;
  16. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  17. margin-bottom: 10px;
  18. transition: transform 0.8s ease-in-out; /* 动效 */
  19. }
  20. /* 图片 hover 动效 */
  21. .ceramic-img:hover {
  22. transform: scale(1.05); /* 鼠标悬停时图片放大 */
  23. }
  24. /* 文字描述 */
  25. .description {
  26. text-align: center;
  27. padding: 10px;
  28. }
  29. /* 标题样式 */
  30. .description h2 {
  31. font-size: 2rem;
  32. font-weight: bold;
  33. color: #333;
  34. margin-bottom: 10px;
  35. }
  36. /* 描述文本 */
  37. .description p {
  38. font-size: 1.1rem;
  39. font-weight: bold; /* 加粗 */
  40. color: #666;
  41. line-height: 1.6;
  42. margin-top: 10px;
  43. text-align: left; /* 左对齐 */
  44. }
  45. /* Header 样式 */
  46. .header-title {
  47. font-family: "FangSong", serif; /* 使用仿宋体 */
  48. font-weight: bold; /* 加粗 */
  49. text-align: center; /* 居中 */
  50. }
  51. /* 关闭按钮 */
  52. .close-button {
  53. --color:gray;
  54. transition: background-color 0.3s ease;
  55. }
  56. .close-button:hover {
  57. background-color: #ff2a20; /* 鼠标悬停时背景颜色 */
  58. }
  59. /* 定义模态框样式 */
  60. .custom-modal {
  61. position: fixed;
  62. bottom: 0;
  63. left: 0;
  64. width: 100%;
  65. height: 100%;
  66. background: white;
  67. border-radius: 20px 20px 0 0;
  68. box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.2);
  69. z-index: 1000;
  70. overflow-y: auto;
  71. }
  72. /* 模态框从底部滑入的动画 */
  73. @keyframes slide-up {
  74. from {
  75. transform: translateY(100%);
  76. }
  77. to {
  78. transform: translateY(0);
  79. }
  80. }