Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -69,118 +69,93 @@ h4 {
|
|
| 69 |
}
|
| 70 |
|
| 71 |
/* 圖片容器樣式 */
|
| 72 |
-
.figure-container {
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
padding: 0;
|
| 76 |
-
}
|
| 77 |
-
|
| 78 |
-
.figure-container img {
|
| 79 |
-
max-width: 100%;
|
| 80 |
-
height: auto;
|
| 81 |
-
display: block;
|
| 82 |
-
margin: 15px auto;
|
| 83 |
-
border: 1px solid #ccc;
|
| 84 |
-
border-radius: 4px;
|
| 85 |
-
}
|
| 86 |
-
|
| 87 |
-
.figure-container figcaption {
|
| 88 |
-
margin-top: 10px;
|
| 89 |
-
font-size: 0.9rem;
|
| 90 |
-
color: #555;
|
| 91 |
-
line-height: 1.5;
|
| 92 |
-
text-align: left;
|
| 93 |
-
padding: 10px;
|
| 94 |
-
background-color: #f8f9fa;
|
| 95 |
-
border-radius: 4px;
|
| 96 |
-
}
|
| 97 |
|
| 98 |
/* 表格樣式 */
|
| 99 |
.table-container { overflow-x: auto; }
|
| 100 |
-
table {
|
| 101 |
-
|
| 102 |
-
border-collapse: collapse;
|
| 103 |
-
margin-top: 20px;
|
| 104 |
-
}
|
| 105 |
-
th, td {
|
| 106 |
-
padding: 12px 15px;
|
| 107 |
-
text-align: left;
|
| 108 |
-
border: 1px solid #ddd;
|
| 109 |
-
}
|
| 110 |
thead { background-color: #00796b; color: #fff; }
|
| 111 |
tbody tr:nth-of-type(even) { background-color: #f8f9fa; }
|
| 112 |
-
td.category {
|
| 113 |
-
background-color: #e0f7fa;
|
| 114 |
-
font-weight: bold;
|
| 115 |
-
color: #004d40;
|
| 116 |
-
vertical-align: middle;
|
| 117 |
-
}
|
| 118 |
td i { color: #555; font-size: 0.9em; }
|
| 119 |
|
| 120 |
/* 解譯方法 */
|
| 121 |
-
.interpretation-methods {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
display: grid;
|
| 123 |
-
grid-template-columns: 1fr;
|
| 124 |
-
gap:
|
| 125 |
margin-top: 20px;
|
| 126 |
}
|
| 127 |
-
@media (min-width: 768px) { .interpretation-methods { grid-template-columns: 1fr 1fr; } }
|
| 128 |
-
.interp-item {
|
| 129 |
-
padding: 20px;
|
| 130 |
-
border-radius: 8px;
|
| 131 |
-
background-color: #f8f9fa;
|
| 132 |
-
border: 1px solid #e9ecef;
|
| 133 |
-
}
|
| 134 |
-
.interp-item h3 { text-align: left; margin-top: 0; }
|
| 135 |
|
| 136 |
-
|
| 137 |
-
|
|
|
|
|
|
|
|
|
|
| 138 |
display: flex;
|
| 139 |
flex-direction: column;
|
| 140 |
-
|
| 141 |
-
margin-top: 20px;
|
| 142 |
}
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
}
|
| 148 |
-
.level-item:nth-of-type(1) { border-color: #ae2012; background-color: #fff1f0; } /* 紅色系 */
|
| 149 |
-
.level-item:nth-of-type(2) { border-color: #ee9b00; background-color: #fff9eb; } /* 黃色系 */
|
| 150 |
-
.level-item:nth-of-type(3) { border-color: #005f73; background-color: #e0f7fa; } /* 藍色系 */
|
| 151 |
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
border-radius: 8px;
|
| 157 |
-
border:
|
| 158 |
}
|
| 159 |
-
|
| 160 |
-
.
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
margin-top: 20px;
|
| 165 |
}
|
| 166 |
-
|
| 167 |
-
.
|
| 168 |
-
background-color: #343a40;
|
| 169 |
padding: 20px;
|
| 170 |
-
|
| 171 |
}
|
| 172 |
-
.step h3 { color: #94d2bd; }
|
| 173 |
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
display: grid;
|
| 177 |
-
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
| 178 |
-
gap: 20px;
|
| 179 |
}
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
}
|
| 185 |
|
| 186 |
/* 頁腳 */
|
|
|
|
| 69 |
}
|
| 70 |
|
| 71 |
/* 圖片容器樣式 */
|
| 72 |
+
.figure-container { text-align: center; margin: 20px 0; padding: 0; }
|
| 73 |
+
.figure-container img { max-width: 100%; height: auto; display: block; margin: 15px auto; border: 1px solid #ccc; border-radius: 4px; }
|
| 74 |
+
.figure-container figcaption { margin-top: 10px; font-size: 0.9rem; color: #555; line-height: 1.5; text-align: left; padding: 10px; background-color: #f8f9fa; border-radius: 4px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
/* 表格樣式 */
|
| 77 |
.table-container { overflow-x: auto; }
|
| 78 |
+
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
|
| 79 |
+
th, td { padding: 12px 15px; text-align: left; border: 1px solid #ddd; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
thead { background-color: #00796b; color: #fff; }
|
| 81 |
tbody tr:nth-of-type(even) { background-color: #f8f9fa; }
|
| 82 |
+
td.category { background-color: #e0f7fa; font-weight: bold; color: #004d40; vertical-align: middle; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
td i { color: #555; font-size: 0.9em; }
|
| 84 |
|
| 85 |
/* 解譯方法 */
|
| 86 |
+
.interpretation-methods { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 20px; }
|
| 87 |
+
@media (min-width: 768px) { .interpretation-methods { grid-template-columns: 1fr 1fr; } }
|
| 88 |
+
.interp-item { padding: 20px; border-radius: 8px; background-color: #f8f9fa; border: 1px solid #e9ecef; }
|
| 89 |
+
.interp-item h3 { text-align: left; margin-top: 0; }
|
| 90 |
+
|
| 91 |
+
/* 約束層級 */
|
| 92 |
+
.constraints-levels { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
|
| 93 |
+
.level-item { padding: 15px; border-left: 5px solid; border-radius: 5px; }
|
| 94 |
+
.level-item:nth-of-type(1) { border-color: #ae2012; background-color: #fff1f0; }
|
| 95 |
+
.level-item:nth-of-type(2) { border-color: #ee9b00; background-color: #fff9eb; }
|
| 96 |
+
.level-item:nth-of-type(3) { border-color: #005f73; background-color: #e0f7fa; }
|
| 97 |
+
|
| 98 |
+
/* 綜合範例 */
|
| 99 |
+
.case-study { background-color: #495057; color: #f8f9fa; border-radius: 8px; border: 3px solid #94d2bd; }
|
| 100 |
+
.case-study h2 { color: #e9ecef; }
|
| 101 |
+
.case-study-steps { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 20px; }
|
| 102 |
+
@media (min-width: 768px) { .case-study-steps { grid-template-columns: 1fr 1fr; } }
|
| 103 |
+
.step { background-color: #343a40; padding: 20px; border-radius: 5px; }
|
| 104 |
+
.step h3 { color: #94d2bd; }
|
| 105 |
+
|
| 106 |
+
/* --- 新增樣式: 擴充後的工程應用 --- */
|
| 107 |
+
.app-grid-expanded {
|
| 108 |
display: grid;
|
| 109 |
+
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* 調整最小寬度以容納更多內容 */
|
| 110 |
+
gap: 25px; /* 增加間距 */
|
| 111 |
margin-top: 20px;
|
| 112 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
+
.app-card {
|
| 115 |
+
background: #fff;
|
| 116 |
+
border: 1px solid #e9ecef;
|
| 117 |
+
border-radius: 8px;
|
| 118 |
+
box-shadow: 0 2px 5px rgba(0,0,0,0.08);
|
| 119 |
display: flex;
|
| 120 |
flex-direction: column;
|
| 121 |
+
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
|
|
|
| 122 |
}
|
| 123 |
+
|
| 124 |
+
.app-card:hover {
|
| 125 |
+
transform: translateY(-5px);
|
| 126 |
+
box-shadow: 0 4px 15px rgba(0,0,0,0.12);
|
| 127 |
}
|
|
|
|
|
|
|
|
|
|
| 128 |
|
| 129 |
+
.app-card-header {
|
| 130 |
+
background-color: #00796b;
|
| 131 |
+
color: white;
|
| 132 |
+
padding: 15px;
|
| 133 |
+
border-top-left-radius: 8px;
|
| 134 |
+
border-top-right-radius: 8px;
|
| 135 |
}
|
| 136 |
+
|
| 137 |
+
.app-card-header h3 {
|
| 138 |
+
margin: 0;
|
| 139 |
+
color: white;
|
| 140 |
+
font-size: 1.4rem;
|
|
|
|
| 141 |
}
|
| 142 |
+
|
| 143 |
+
.app-card-body {
|
|
|
|
| 144 |
padding: 20px;
|
| 145 |
+
flex-grow: 1;
|
| 146 |
}
|
|
|
|
| 147 |
|
| 148 |
+
.app-card-body p {
|
| 149 |
+
margin: 0 0 10px 0;
|
|
|
|
|
|
|
|
|
|
| 150 |
}
|
| 151 |
+
|
| 152 |
+
.app-card-body ul {
|
| 153 |
+
margin-top: 15px;
|
| 154 |
+
padding-left: 20px;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
.app-card-body li {
|
| 158 |
+
margin-bottom: 8px;
|
| 159 |
}
|
| 160 |
|
| 161 |
/* 頁腳 */
|