Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -125,7 +125,40 @@ h2::after {
|
|
| 125 |
}
|
| 126 |
p, li { font-size: 1.1rem; }
|
| 127 |
|
| 128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
.table-container { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
|
| 130 |
.interp-item { border-radius: 12px; }
|
| 131 |
.constraints-levels { gap: 1rem; }
|
|
@@ -134,8 +167,6 @@ p, li { font-size: 1.1rem; }
|
|
| 134 |
.case-study h2 { color: #fff; }
|
| 135 |
.step { background-color: #495057; }
|
| 136 |
.app-card-header { border-top-left-radius: 12px; border-top-right-radius: 12px; }
|
| 137 |
-
|
| 138 |
-
/* 地熱探勘 (優化) */
|
| 139 |
.special-topic-section { background-color: #f7feff; border-left: 5px solid var(--secondary-color); }
|
| 140 |
.topic-grid {
|
| 141 |
display: grid;
|
|
@@ -153,7 +184,6 @@ p, li { font-size: 1.1rem; }
|
|
| 153 |
.topic-item h4 { font-size: 1.2rem; color: var(--secondary-color); font-style: italic; }
|
| 154 |
.summary-text { text-align: center; font-size: 1.2rem; font-weight: 500; }
|
| 155 |
|
| 156 |
-
/* --- Back to Top Button --- */
|
| 157 |
.back-to-top {
|
| 158 |
position: fixed;
|
| 159 |
bottom: 20px;
|
|
@@ -177,7 +207,6 @@ p, li { font-size: 1.1rem; }
|
|
| 177 |
.back-to-top:hover { background-color: var(--accent-color); }
|
| 178 |
.back-to-top svg { width: 24px; height: 24px; }
|
| 179 |
|
| 180 |
-
/* --- Footer --- */
|
| 181 |
footer {
|
| 182 |
text-align: center;
|
| 183 |
padding: 2rem;
|
|
@@ -188,9 +217,6 @@ footer {
|
|
| 188 |
|
| 189 |
/* 沿用舊版確保相容性 */
|
| 190 |
.quote-box{background-color:#e0f7fa;border-left:5px solid #00796b;margin:20px 0;padding:15px 20px;border-radius:5px;font-style:italic;}
|
| 191 |
-
.figure-container img{max-width:100%;height:auto;display:block;margin:15px auto;border:1px solid #ccc;border-radius:8px;transition:transform .3s ease,box-shadow .3s ease;}
|
| 192 |
-
.figure-container img:hover{transform:scale(1.03);box-shadow:0 5px 20px rgba(0,0,0,.15);}
|
| 193 |
-
.figure-container figcaption{margin-top:10px;font-size:.9rem;color:#555;line-height:1.5;text-align:left;padding:10px;background-color:#f8f9fa;border-radius:4px;}
|
| 194 |
table{width:100%;border-collapse:collapse;margin-top:20px;}
|
| 195 |
th,td{padding:15px;text-align:left;border:1px solid #dee2e6;}
|
| 196 |
thead{background-color:#00796b;color:#fff;}
|
|
|
|
| 125 |
}
|
| 126 |
p, li { font-size: 1.1rem; }
|
| 127 |
|
| 128 |
+
|
| 129 |
+
/* --- 圖片容器樣式 (本次修正重點) --- */
|
| 130 |
+
.figure-container {
|
| 131 |
+
text-align: center;
|
| 132 |
+
margin: 20px 0;
|
| 133 |
+
padding: 0;
|
| 134 |
+
}
|
| 135 |
+
.figure-container img {
|
| 136 |
+
width: 100%; /* 強制圖片寬度等於容器寬度 */
|
| 137 |
+
max-width: 100%; /* 確保最大寬度不超過容器 */
|
| 138 |
+
height: auto;
|
| 139 |
+
display: block;
|
| 140 |
+
margin: 15px auto;
|
| 141 |
+
border: 1px solid var(--border-color);
|
| 142 |
+
border-radius: 8px;
|
| 143 |
+
transition: transform .3s ease,box-shadow .3s ease;
|
| 144 |
+
}
|
| 145 |
+
.figure-container img:hover {
|
| 146 |
+
transform: scale(1.03);
|
| 147 |
+
box-shadow: var(--shadow-lg);
|
| 148 |
+
}
|
| 149 |
+
.figure-container figcaption {
|
| 150 |
+
margin-top: 10px;
|
| 151 |
+
font-size: .9rem;
|
| 152 |
+
color: var(--text-secondary);
|
| 153 |
+
line-height: 1.5;
|
| 154 |
+
text-align: left;
|
| 155 |
+
padding: 10px;
|
| 156 |
+
background-color: var(--bg-light);
|
| 157 |
+
border-radius: 4px;
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
/* --- 其他樣式 (維持不變) --- */
|
| 162 |
.table-container { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
|
| 163 |
.interp-item { border-radius: 12px; }
|
| 164 |
.constraints-levels { gap: 1rem; }
|
|
|
|
| 167 |
.case-study h2 { color: #fff; }
|
| 168 |
.step { background-color: #495057; }
|
| 169 |
.app-card-header { border-top-left-radius: 12px; border-top-right-radius: 12px; }
|
|
|
|
|
|
|
| 170 |
.special-topic-section { background-color: #f7feff; border-left: 5px solid var(--secondary-color); }
|
| 171 |
.topic-grid {
|
| 172 |
display: grid;
|
|
|
|
| 184 |
.topic-item h4 { font-size: 1.2rem; color: var(--secondary-color); font-style: italic; }
|
| 185 |
.summary-text { text-align: center; font-size: 1.2rem; font-weight: 500; }
|
| 186 |
|
|
|
|
| 187 |
.back-to-top {
|
| 188 |
position: fixed;
|
| 189 |
bottom: 20px;
|
|
|
|
| 207 |
.back-to-top:hover { background-color: var(--accent-color); }
|
| 208 |
.back-to-top svg { width: 24px; height: 24px; }
|
| 209 |
|
|
|
|
| 210 |
footer {
|
| 211 |
text-align: center;
|
| 212 |
padding: 2rem;
|
|
|
|
| 217 |
|
| 218 |
/* 沿用舊版確保相容性 */
|
| 219 |
.quote-box{background-color:#e0f7fa;border-left:5px solid #00796b;margin:20px 0;padding:15px 20px;border-radius:5px;font-style:italic;}
|
|
|
|
|
|
|
|
|
|
| 220 |
table{width:100%;border-collapse:collapse;margin-top:20px;}
|
| 221 |
th,td{padding:15px;text-align:left;border:1px solid #dee2e6;}
|
| 222 |
thead{background-color:#00796b;color:#fff;}
|