12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- /* 主体内容容器 */
- .ceramic-container {
- text-align: center;
- padding: 20px;
- font-family: "FangSong", serif; /* 使用仿宋体 */
- border-radius: 16px; /* 圆角效果 */
- background: url('/assets/images/ceramics-background.png') no-repeat center/cover;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 更柔和的阴影 */
- margin: 20px auto;
- }
- /* 图片样式 */
- .ceramic-img {
- max-width: 100%;
- height: auto;
- border-radius: 10px;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
- margin-bottom: 10px;
- transition: transform 0.8s ease-in-out; /* 动效 */
- }
- /* 图片 hover 动效 */
- .ceramic-img:hover {
- transform: scale(1.05); /* 鼠标悬停时图片放大 */
- }
- /* 文字描述 */
- .description {
- text-align: center;
- padding: 10px;
- }
- /* 标题样式 */
- .description h2 {
- font-size: 2rem;
- font-weight: bold;
- color: #333;
- margin-bottom: 10px;
- }
- /* 描述文本 */
- .description p {
- font-size: 1.1rem;
- font-weight: bold; /* 加粗 */
- color: #666;
- line-height: 1.6;
- margin-top: 10px;
- text-align: left; /* 左对齐 */
- }
- /* Header 样式 */
- .header-title {
- font-family: "FangSong", serif; /* 使用仿宋体 */
- font-weight: bold; /* 加粗 */
- text-align: center; /* 居中 */
- }
- /* 关闭按钮 */
- .close-button {
- --color:gray;
- transition: background-color 0.3s ease;
- }
- .close-button:hover {
- background-color: #ff2a20; /* 鼠标悬停时背景颜色 */
- }
- /* 定义模态框样式 */
- .custom-modal {
- position: fixed;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: white;
- border-radius: 20px 20px 0 0;
- box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.2);
- z-index: 1000;
- overflow-y: auto;
- }
- /* 模态框从底部滑入的动画 */
- @keyframes slide-up {
- from {
- transform: translateY(100%);
- }
- to {
- transform: translateY(0);
- }
- }
|