/* 全局样式 */ ion-app { background: url('/assets/images/background-image6.jpg') no-repeat center center fixed; /* 添加背景图片 */ background-size: cover; /* 背景图片覆盖整个内容区域 */ background-position: center; /* 背景图片居中 */ height: 100vh; /* 确保背景覆盖整个视口高度 */ margin: 0; /* 移除默认的外边距 */ padding: 0; /* 移除默认的内边距 */ } ion-content { --background: transparent; /* 设置为透明,以便背景从 ion-app 继承 */ padding: 16px; overflow: auto; /* 确保内容可以滚动 */ } :host { --page-padding: 16px; --primary-color: #003366; /* 深蓝色 */ --secondary-color: #336633; /* 墨绿色 */ --background-color: #f5f5f5; --text-color: #333333; --highlight-color: #ffcc00; /* 高亮颜色 */ } .input-field { width: 100%; } .reader-group-button { width: 100%; margin-bottom: 10px; } .textarea-field { width: 100%; min-height: 150px; /* 设置最小高度 */ } .generate-button { margin-top: 20px; } .copy-button { margin-top: 10px; } ion-button { --background: #007bff; --color: #101010; --border-radius: 8px; --padding-top: 12px; --padding-bottom: 12px; --padding-start: 16px; --padding-end: 16px; margin-top: 16px; } ion-button:hover { --background: #0056b3; } ion-textarea { --background: #ffffff; --color: #343a40; --border-color: #ced4da; --border-radius: 8px; --padding-top: 12px; --padding-bottom: 12px; --padding-start: 16px; --padding-end: 16px; border: 1px solid #ced4da; border-radius: 8px; --min-height: 100px; } ion-textarea:focus { --border-color: #80bdff; --box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } ion-input { --background: #ffffff; --color: #343a40; --border-color: #ced4da; --border-radius: 8px; --padding-top: 12px; --padding-bottom: 12px; --padding-start: 16px; --padding-end: 16px; border: 1px solid #ced4da; border-radius: 8px; } ion-input:focus { --border-color: #80bdff; --box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } /* 设置生成的小说书名文本框的高度 */ .response-textarea { --min-height: 800px; /* 将最小高度增加到 800px */ border-color: #80bdff; /* 可选:设置不同的边框颜色以区分 */ background-color: #f8f9fa; /* 可选:设置不同的背景颜色以区分 */ }