修复种子详情下载
Change-Id: I5673279933d639e1bf425fcaea3eabd447625bfc
diff --git a/src/pages/SeedList/SeedDetail/SeedDetail.css b/src/pages/SeedList/SeedDetail/SeedDetail.css
index 594cb8e..9e1a10e 100644
--- a/src/pages/SeedList/SeedDetail/SeedDetail.css
+++ b/src/pages/SeedList/SeedDetail/SeedDetail.css
@@ -1,29 +1,35 @@
.seed-detail-page {
background: #333;
+ min-height: 100vh;
+ padding-bottom: 40px;
font-family: 'Helvetica Neue', sans-serif;
color: #333;
}
.seed-detail {
- background-color: #e9ded2;
+ background-color: #fff9f3;
border-radius: 16px;
max-width: 960px;
- margin: 0 auto;
- margin-top: 40px;
- padding: 24px 32px;
+ margin: 40px auto 0;
+ padding: 32px;
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.seed-detail h1 {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 16px;
- color: #4A3B34;
+ font-size: 28px;
+ font-weight: 700;
+ margin-bottom: 24px;
+ color: #3d2e2a;
+ border-left: 4px solid #ba929a;
+ padding-left: 12px;
}
.seed-header-container {
display: flex;
justify-content: space-between;
align-items: flex-start;
+ gap: 32px;
+ flex-wrap: wrap;
}
.seed-info {
@@ -33,89 +39,86 @@
.seed-basic-info p,
.seed-media-info p {
font-size: 16px;
+ line-height: 1.6;
margin: 6px 0;
+ color: #4a3b34;
}
-.cover-image {
- width: 200px;
+/* .cover-image {
+ width: 240px;
height: auto;
- margin-left: 20px;
- border-radius: 8px;
+ border-radius: 12px;
+ object-fit: cover;
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
+} */
+ .cover-image {
+ max-width: 100%;
+ width: 240px;
+ max-height: 320px;
+ height: auto;
+ border-radius: 12px;
+ object-fit: contain; /* 从 cover 改为 contain */
+ background-color: #f6eae3; /* 给 contain 留白背景 */
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
-.comment-options {
- margin-top: 8px;
- display: flex;
- justify-content: flex-end; /* 将 space-between 改为 flex-end */
-}
.action-buttons {
- justify-content: flex-end; /*靠右对齐*/
+ margin-top: 24px;
display: flex;
- gap: 10px;
- margin-bottom: 20px;
+ justify-content: flex-end;
+ gap: 12px;
+}
+
+.btn, .btn-outline {
+ padding: 10px 18px;
+ font-size: 15px;
+ border-radius: 8px;
+ font-weight: 500;
+ cursor: pointer;
+ transition: all 0.2s ease-in-out;
}
.btn {
- justify-content: flex-end; /*靠右对齐*/
- padding: 6px 14px;
- background-color: #BA929A;
- color: #fff;
+ background-color: #ba929a;
+ color: white;
border: none;
- border-radius: 6px;
- font-size: 14px;
- cursor: pointer;
}
.btn:hover {
- background-color: #5F4437;
+ background-color: #5f4437;
}
-.comments-section {
- margin-top: 20px;
+.btn-outline {
+ background-color: transparent;
+ color: #5f4437;
+ border: 2px solid #5f4437;
}
-.comments-section h3 {
- margin-bottom: 10px;
- font-size: 20px;
- color: #4A3B34;
-}
-
-.comments-list {
- border-top: 1px solid #ccc;
- padding-top: 10px;
-}
-
-.comment {
- border-bottom: 1px solid #ccc;
- padding: 10px 0;
-}
-
-.comment-user {
- font-weight: bold;
- margin-bottom: 5px;
-}
-
-.comment-content {
- margin: 0;
-}
-
-.add-comment-form {
- margin-top: 10px;
-}
-
-.add-comment-form textarea {
- width: 100%;
- padding: 10px;
- resize: vertical;
- min-height: 80px;
- border: 1px solid #bbb;
- border-radius: 6px;
- margin-bottom: 10px;
+.btn-outline:hover {
+ background-color: #f6eae3;
}
.error-text {
- color: #f00;
+ color: #e74c3c;
+ font-size: 18px;
text-align: center;
+ margin-top: 60px;
}
-
\ No newline at end of file
+
+@media (max-width: 768px) {
+ .seed-header-container {
+ flex-direction: column;
+ align-items: center;
+ }
+
+ .cover-image {
+ width: 100%;
+ max-width: 320px;
+ margin-top: 20px;
+ }
+
+ .action-buttons {
+ justify-content: center;
+ }
+}