body { background-color: #d7e3c4; color: #333; font-family: Arial, sans-serif; margin: 0; } .header { background-image: url('https://s3.ap-southeast-1.amazonaws.com/www.whysos.com/bg005.png'); background-size: cover; background-position: center; background-repeat: no-repeat; height: 180px; display: flex; align-items: center; justify-content: center; text-align: center; } h1, h2, h3, h4, h5, h6 { font-family: Arial, sans-serif; } .container { padding: 0px; max-width: 1200px; margin: 0 auto; } .body_container{ margin-top: 20px; display: flex; justify-content: space-between; } .content_container { flex: 3; line-height: 1.5; /*background-color: #fff;*/ padding: 10px; /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/ border-radius: 8px; } .content_container h1, .content_container h2, .content_container h3 { color: #222; margin-top: 0; } .content_container h1 { font-size: 2.5em; margin-bottom: 10px; } .content_container h2 { font-size: 2em; margin-bottom: 10px; } .content_container h3 { font-size: 1.5em; margin-bottom: 10px; } .content_container p { margin: 0 0 20px; font-size: 1em; color: #555; line-height: 1.8; } .content_container ul, .content_container ol { margin: 0 0 20px 20px; padding: 0; list-style-position: inside; } .content_container li { margin-bottom: 10px; } .content_container img { max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 20px; } .content_container code { background-color: #f4f4f4; border-radius: 4px; padding: 2px 4px; font-size: 0.9em; color: #d63384; } .content_container pre { background-color: #f4f4f4; border-radius: 4px; padding: 10px; overflow-x: auto; margin-bottom: 20px; white-space: pre-wrap; font-size: 0.9em; } .content_container blockquote { border-left: 4px solid #007bff; padding-left: 16px; margin: 0 0 20px; font-style: italic; color: #555; } .content_container .caption { font-size: 0.9em; color: #888; text-align: center; margin-top: 5px; } .header{ max-width: 1200px; } footer { margin-top: 20px; /*background-color: #2c3e50; !* 深蓝色背景 *!*/ color: #858d94; /* 浅灰色文字 */ text-align: center; padding: 15px 10px; font-size: 14px; position: relative; bottom: 0; max-width: 1200px; } footer a { color: #909896; /* 浅绿色链接 */ text-decoration: none; margin: 0 5px; } footer a:hover { text-decoration: underline; } footer .container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; } footer .container .left, footer .container .right { display: flex; flex-direction: column; align-items: flex-start; } /*菜单*/ nav { background-color: #ead04d; overflow: hidden; border-radius: 1px; } nav ul { list-style-type: none; margin: 0; padding: 0; display: flex; } nav ul li { flex: 1; } nav ul li a { display: block; color: #173dd3; text-align: center; padding: 14px; text-decoration: none; /*font-size: 18px;*/ font-weight: 380; } nav ul li a:hover { background-color: #77f8f6; box-shadow: 0 0 5px rgba(19, 121, 229, 0.5); /* 聚焦时的阴影 */ outline: none; color: #b4b4b4; } select#language-selector{ /*float: inside;*/ } /*文章列表*/ .article { margin-bottom: 20px; padding-bottom: 40px; border-bottom: 1px solid #ddd; font-size: 14px } .article h2 { margin: 0; font-size: 24px; color: #333; } .article h2 a { text-decoration: none; color: #333; transition: color 0.3s; } .article h2 a:hover { color: #858d94; } .article .date { color: #999; font-size: 14px; margin: 5px 0; } .article .summary { color: #666; font-size: 14px; margin: 10px 0; } .article .read-more { display: inline-flex; align-items: center; padding: 5px 10px; color: #444;; text-decoration: none; border-radius: 4px; transition: background-color 0.3s; border: 1px solid #ddd; float: right; } .article .read-more:hover { background-color: #e3e6e8; /* 鼠标悬停时变为更深的灰色 */ } .article .read-more svg { margin-left: 8px; fill: #858d94; width: 16px; height: 16px; } .sidebar { flex: 1; /*background-color: #fff;*/ padding: 20px; margin-left: 20px; /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/ border-radius: 8px; } .sidebar h3 { margin-top: 0; } .sidebar .section { margin-bottom: 20px; } .sidebar .section ul { list-style: none; /* 移除默认的列表样式 */ padding: 0; margin: 0; } .sidebar .section li { margin-bottom: 0px; /* 为每个列表项添加底部外边距 */ } .sidebar .section a { color: #858d94; text-decoration: none; display: block; /* 使链接区域更大 */ padding: 3px; border-radius: 4px; transition: background-color 0.3s, color 0.3s; } .sidebar .section a:hover { background-color: #e9ecef; /* 悬停时背景色 */ color: #25272a; /* 悬停时文字颜色 */ } .sidebar .advertisements { text-align: center; } .sidebar .advertisements img { max-width: 100%; border-radius: 8px; } /* Responsive Styles */ @media (max-width: 768px) { .container { flex-direction: column; } .sidebar { display: none; /* Hide sidebar on small screens */ } } .pagination { display: flex; list-style: none; padding: 0; margin: 15px; font-size: 14px; } .pagination a { text-decoration: none; color: #333; padding: 5px 10px; border: 1px solid #ddd; margin: 1px 1px; display: flex; border-radius: 4px; align-items: center; transition: background-color 0.3s, color 0.3s; } .pagination a:hover { background-color: #b8c1c9; color: #fff; } .pagination .active { background-color: #858d94; color: white; pointer-events: none; } .pagination .prev, .pagination .next { font-weight: normal; } .a-color { color: #8080e7; text-decoration: none; /* 去掉下划线 */ } .a-color:hover { color: #adb2b6; /* 鼠标悬停时颜色变深,增加互动性 */ } .button-primary { background: linear-gradient(135deg, #FF6B6B, #FF8C94); /* 渐变珊瑚红按钮 */ color: #000000; border: none; padding: 8px 15px; /* 适当增加填充,以确保最佳高度 */ border-radius: 5px; cursor: pointer; transition: background 0.3s ease; font-size: 16px; /* 确保按钮文字大小适中 */ display: inline-block; /* 使链接像按钮一样 */ text-align: center; text-decoration: none; /* 移除下划线 */ } .button-primary:hover { background: linear-gradient(135deg, #FF8C94, #FF6B6B); } .button-secondary { background-color: #FFB703; /* 亮橙色按钮 */ color: #000000; border: none; padding: 8px 15px; /* 适当增加填充,以确保最佳高度 */ border-radius: 5px; cursor: pointer; transition: background 0.3s ease; font-size: 16px; /* 确保按钮文字大小适中 */ display: inline-block; /* 使链接像按钮一样 */ text-align: center; text-decoration: none; /* 移除下划线 */ } .button-secondary:hover { background-color: #FFA31A; } ul.archive-list { list-style-type: none; padding: 0; line-height: 1; } ul.archive-list li { margin: 0px 0; padding: 10px; } ul.archive-list li a { text-decoration: none; color: #858d94; font-size: 1em; transition: color 0.3s ease; } ul.archive-list li a:hover { color: #010a0a; } .breadcrumb { margin-top: 15px; } .breadcrumb ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; } .breadcrumb li { display: flex; align-items: center; } .breadcrumb li a { color: rgb(10, 10, 10); text-decoration: none; /*padding: 5px;*/ margin-right: 5px; border-radius: 3px; transition: background-color 0.3s; } .breadcrumb li a:hover { color: rgb(173, 178, 182); } .breadcrumb li + li::before { content: ">"; padding: 0 5px; color: #999; margin-bottom: 3px; } .widget input[type="text"] { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; box-sizing: border-box; } input[type="text"]:focus { border-color: #A8DADC; /* 聚焦时的浅蓝色边框 */ box-shadow: 0 0 8px rgba(168, 218, 220, 0.5); /* 聚焦时的阴影效果 */ outline: none; } .sp{ color: #999; font-size: 0.9em; } /* Comment Section Styles */ .comment_section { margin-top: 20px; display: flex; align-items: flex-start; padding: 15px; /*background-color: #f9f9f9;*/ border-radius: 8px; margin-bottom: 15px; /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/ } .comment_section h2 { font-size: 1.5em; margin-bottom: 20px; color: #333; } .comment_section .form-group { gap: 10px; margin-bottom: 10px; } .comment_section input[type="text"], .comment_section input[type="email"] { padding: 0px; height: 30px; border: 0px solid #ccc; border-radius: 4px; width: 32.875%; } .comment_section textarea { width: 100%; padding: 0px; border: 0px solid #ccc; border-radius: 4px; font-size: 1em; height: 50px; resize: vertical; } .comment_section input[type="email"]:focus, .comment_section textarea:focus, .comment_section input[type="text"]:focus { border-color: #A8DADC; /* 聚焦时的浅蓝色边框 */ box-shadow: 0 0 8px rgba(168, 218, 220, 0.5); /* 聚焦时的阴影效果 */ outline: none; } .comment_section button { /*background-color: #ffffff;*/ color: #000005; border: 1px solid #ddd; padding: 5px 13px; font-size: 0.8em; border-radius: 4px; cursor: pointer; transition: background 0.3s ease; } .comment_section button:hover { background-color: #e3e6e8; } .comment_section img { width: 50px; height: 50px; border-radius: 50%; margin-right: 15px; } .comment_content { flex: 1; } .comment_header { display: flex; align-items: center; margin-bottom: 10px; } .vnick { font-weight: bold; color: #333; margin-right: 10px; } .localized-time { color: #999; font-size: 0.9em; margin-right: 10px; } .reply { color: #007bff; cursor: pointer; font-size: 0.9em; } .reply:hover { text-decoration: underline; } .opinion { font-size: 14px; color: #555; line-height: 1.5; }