File size: 4,923 Bytes
74d6c39 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 | /* General Styles */
body {
font-family: 'Roboto', sans-serif;
background-color: #111111;
color: #eee;
margin: 0;
padding: 0;
}
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Header */
.header {
background-color: #055470;
padding: 20px 0;
animation: fadeIn 2s ease-in-out;
position: relative;
}
.header-content {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 80px;
}
.logo {
font-size: 1.8em;
font-weight: 700;
color: #fff;
text-transform: uppercase;
}
.nav-links {
list-style: none;
display: flex;
gap: 20px;
margin: 0;
padding: 0;
}
.nav-links li a {
font-size: 1.2em;
color: #f4eded;
text-decoration: none;
font-weight: 400;
transition: color 0.3s;
}
.nav-links li a:hover {
color: #240606;
}
/* Intro Section */
.intro {
background-image: url('images/1.jpg');
background-size: cover;
color: #fff;
padding: 0; /* 将 padding 设置为 0,以便内容覆盖整个背景 */
text-align: center;
animation: fadeIn 2s ease-in-out;
position: relative;
height: 400px; /* 可以根据需要调整这个高度 */
padding: 40px;
}
.intro-content {
background: rgba(0, 0, 0, 0.8);
padding: 20px; /* 调整内边距,以让文字看起来合适 */
animation: slideIn 2s ease-in-out;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
box-sizing: border-box;
}
.intro h2 {
font-size: 2.5em;
margin-bottom: 20px;
}
/* instruction Section */
.instruction {
background-color:#055470;
color: #f7f4f4;
text-align: left;
animation: fadeIn 2s ease-in-out;
}
.inst-content {
padding: 40px;
border-radius: 10px;
animation: slideIn 2s ease-in-out;
}
.instruction h2 {
font-size: 3.2em;
margin-bottom: 20px;
}
.steps {
text-align: left;
padding-left: 20px;
}
.steps li {
margin-bottom: 10px;
}
/* Upload Section */
.upload-section {
background-color: #222;
color: #eee;
padding: 60px 20px;
text-align: center;
border-radius: 10px;
margin: 20px 0;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
animation: fadeIn 2s ease-in-out;
}
.upload-content h2 {
font-size: 2.2em;
margin-bottom: 20px;
}
form label {
display: block;
margin-bottom: 10px;
font-weight: 700;
}
form input[type="file"] {
margin-bottom: 20px;
padding: 10px;
border-radius: 5px;
border: none;
background-color: #444;
color: #eee;
}
.upload-btn {
background-color: #00e5ff;
color: #000;
border: none;
padding: 15px 30px;
font-size: 1em;
font-weight: 700;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.upload-btn:hover {
background-color: #00b8cc;
}
.loading-message {
font-style: italic;
color: #00e5ff;
}
/* Result Section */
.result-section {
background-color: #333;
padding: 20px;
margin-top: 20px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
animation: fadeIn 2s ease-in-out;
}
.result-section h2 {
font-size: 2.2em;
color: #00e5ff;
margin-bottom: 30px;
text-align: center;
}
.result-section ol {
list-style-type: none; /* 隐藏默认的编号 */
padding-left: 0; /* 去除左侧缩进 */
}
.result-section li {
margin-bottom: 10px;
}
/* Footer */
.footer {
background-color: #000;
color: #aaa;
text-align: center;
padding: 20px 0;
margin-top: 40px;
animation: fadeIn 2s ease-in-out;
}
.footer p {
margin: 0;
font-size: 0.9em;
}
/* Animations */
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes slideIn {
0% { transform: translateY(20px); opacity: 0; }
100% { transform: translateY(0); opacity: 1; }
}
@media (max-width: 768px) {
.header-content {
flex-direction: column;
align-items: center;
padding: 10px 20px;
}
.nav-links {
flex-direction: column;
gap: 10px;
margin-top: 10px;
}
.nav-links li a {
font-size: 1em;
}
}
.recipe-container {
display: flex;
align-items: flex-start;
gap: 20px; /* Space between image and text */
margin-top: 20px;
}
.recipe-image {
flex: 1; /* Takes up equal space or adjust as needed */
max-width: 50%; /* Ensures the image section doesn't grow too large */
}
.recipe-text {
flex: 2; /* More space for text */
text-align: left; /* Left-align the recipe text */
}
.recipe-text p {
margin: 0;
}
img#recipe-image {
border: 1px solid #ddd;
border-radius: 8px;
}
img.recipe-image-demo {
border: 1px solid #ddd;
border-radius: 8px;
}
|