/* css.css - 百家居 样式表 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; background-color: #fafafa; color: #444; line-height: 1.8; }
a { text-decoration: none; color: #444; transition: all 0.3s ease; }
a:hover { color: #d35400; } /* 暖橘色/原木色点缀 */
ul, li { list-style: none; }
.container { width: 1200px; margin: 0 auto; overflow: hidden; }

/* Header */
.header { background-color: #fff; border-bottom: 1px solid #eaeaea; }
.top-bar { height: 90px; display: flex; align-items: center; justify-content: space-between; }
.logo h1 { font-size: 34px; color: #d35400; font-weight: normal; letter-spacing: 2px; }
.logo h1 a { color: #d35400; }
.search { display: flex; }
.search input { padding: 10px 15px; width: 260px; border: 1px solid #ddd; border-right: none; outline: none; border-radius: 4px 0 0 4px; font-size: 14px; }
.search button { padding: 10px 25px; background: #d35400; color: #fff; border: none; cursor: pointer; border-radius: 0 4px 4px 0; font-size: 15px; }
.nav { background-color: #fdfdfd; border-top: 1px solid #f9f9f9; }
.nav ul { display: flex; justify-content: center; }
.nav li a { display: block; padding: 16px 35px; font-size: 16px; font-weight: 500; }
.nav li a:hover, .nav li a.active { color: #d35400; background-color: #f4f4f4; }

/* Layout */
.main { display: flex; justify-content: space-between; margin: 30px auto; }
.left-content { width: 840px; }
.right-sidebar { width: 330px; }

/* Section Title */
.section-title { margin-bottom: 20px; display: flex; align-items: center; }
.section-title h2 { font-size: 22px; font-weight: normal; color: #333; position: relative; padding-left: 15px; }
.section-title h2::before { content: ''; position: absolute; left: 0; top: 5px; width: 4px; height: 20px; background-color: #d35400; border-radius: 2px; }

/* Home Grid (家居灵感) */
.home-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.grid-item { width: calc(50% - 10px); background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: transform 0.3s; margin-bottom: 20px; }
.grid-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.grid-item .pic { display: block; width: 100%; height: 260px; overflow: hidden; }
.grid-item .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.grid-item:hover .pic img { transform: scale(1.05); }
.grid-item .text { padding: 20px; }
.grid-item .text h3 { font-size: 18px; margin-bottom: 10px; font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-item .text p { color: #888; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* List Items (列表页样式) */
.article-list .item { display: flex; background: #fff; padding: 20px; margin-bottom: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); transition: all 0.3s; }
.article-list .item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.06); }
.article-list .item .pic { width: 240px; height: 150px; border-radius: 4px; overflow: hidden; margin-right: 25px; flex-shrink: 0; }
.article-list .item .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-list .item:hover .pic img { transform: scale(1.05); }
.article-list .item .info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.article-list .item h3 { font-size: 20px; font-weight: normal; margin-bottom: 12px; }
.article-list .item p { color: #777; font-size: 14px; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-list .item .meta { color: #aaa; font-size: 13px; }
.article-list .item .meta span { margin-right: 20px; }

/* Sidebar Widget */
.widget { background: #fff; padding: 25px; border-radius: 8px; margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.hot-list li { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed #eee; display: flex; align-items: flex-start; }
.hot-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.hot-list li .num { font-size: 18px; font-style: italic; color: #ccc; margin-right: 15px; font-family: Georgia, serif; line-height: 1; }
.hot-list li:nth-child(1) .num { color: #d35400; font-size: 22px; }
.hot-list li:nth-child(2) .num { color: #e67e22; font-size: 20px; }
.hot-list li:nth-child(3) .num { color: #f39c12; font-size: 20px; }
.hot-list li a { flex: 1; font-size: 15px; line-height: 1.5; }

/* Breadcrumb & Pagination */
.breadcrumb { padding: 15px 20px; background: #fff; border-radius: 8px; margin-bottom: 20px; color: #888; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.breadcrumb a { color: #666; }
.pagination { text-align: center; margin: 40px 0; }
.pagination li { display: inline-block; margin: 0 4px; }
.pagination a, .pagination span { display: inline-block; padding: 8px 16px; background: #fff; border: 1px solid #eaeaea; border-radius: 4px; color: #666; }
.pagination .thisclass, .pagination a:hover { background: #d35400; color: #fff; border-color: #d35400; }

/* Article Content */
.article-detail { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.article-detail h1 { font-size: 28px; text-align: center; font-weight: normal; margin-bottom: 20px; color: #222; }
.article-meta { text-align: center; color: #999; font-size: 13px; padding-bottom: 25px; border-bottom: 1px solid #f0f0f0; margin-bottom: 30px; }
.article-meta span { margin: 0 12px; }
.article-body { font-size: 16px; color: #444; line-height: 2.2; text-align: justify; }
.article-body p { margin-bottom: 20px; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 25px auto; }
.article-nav { margin-top: 50px; padding-top: 20px; border-top: 1px solid #f0f0f0; font-size: 15px; color: #666; }
.article-nav p { margin-bottom: 10px; }

/* Footer */
.footer { background: #333; color: #aaa; text-align: center; padding: 50px 0; margin-top: 40px; }
.footer p { margin-bottom: 12px; font-size: 14px; }
.footer a { color: #aaa; }
.footer a:hover { color: #fff; }