/* 滦阳画院 - 前台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: transparent url(/assets/img/bg.gif) repeat scroll 0 0;
  font: 14px/1.8 "Microsoft YaHei", SimSun, Arial, sans-serif;
  color: #3f3f3f;
}
a { color: #4a7a00; text-decoration: none; }
a:hover { color: #d2691e; text-decoration: underline; }
img { border: 0; max-width: 100%; }

/* 顶部条 + 头部 */
.topbar { width: 900px; max-width: 100%; margin: 0 auto; }
.topbar img { width: 100%; height: 31px; display: block; }
.header {
  width: 900px; max-width: 100%; margin: 0 auto; position: relative;
  background: url(/assets/img/header-bg.jpg) 0 0 no-repeat; background-size: 100% 100%;
}
.header-img { width: 100%; display: block; }
.nav {
  display: flex; justify-content: center; gap: 4px;
  padding: 6px 0; background: rgba(254, 253, 235, .92);
  border-top: 1px solid #d8d8b8; border-bottom: 2px solid #709700;
}
.nav a {
  padding: 4px 18px; font-size: 15px; font-weight: bold; color: #557a00;
  border-radius: 3px;
}
.nav a:hover, .nav a.on { background: #709700; color: #fff; text-decoration: none; }

/* 主体 */
.main {
  width: 900px; max-width: 100%; margin: 0 auto; background: #fff;
  padding: 10px 12px 20px; min-height: 400px;
}
.home-grid { display: flex; gap: 12px; }
.sidebar { width: 210px; flex: 0 0 210px; }
.home-main { flex: 1; min-width: 0; }

/* 栏目条 */
.sec-bar {
  height: 36px; border-bottom: 1px solid #000; margin-bottom: 8px;
  background: #fefdeb url(/assets/img/sec-top.jpg) 0 0 no-repeat;
  display: flex; align-items: center; justify-content: space-between;
}
.sec-title {
  padding-left: 28px; color: #709700; font: bold 18px/35px "Microsoft YaHei", SimSun, sans-serif;
}
.sec-more { font: 12px/33px SimSun; color: #3f3f3f; margin-right: 8px; }
.sec { margin-bottom: 16px; }

/* 侧栏盒子 */
.side-box { margin-bottom: 14px; background: #fff; }
.side-box-blue { border: 1px solid #2266aa; }
.side-bar {
  height: 28px; line-height: 28px; padding: 0 10px; color: #fff; font-weight: bold;
  background: url(/assets/img/side-top.png) 0 0 repeat-x; background-size: auto 100%;
  display: flex; justify-content: space-between;
}
.side-more { color: #fff; font-size: 12px; font-weight: normal; }
.side-body { padding: 10px; }
.photo-side { list-style: none; }
.photo-side li { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.photo-side img { width: 80px; height: 80px; object-fit: cover; border: 1px solid #ddd; }
.photo-side .t { font-weight: bold; }
.photo-side .a { font-size: 12px; color: #888; }
.contact-side { font-size: 13px; line-height: 2; color: #505050; }

/* 简介 */
.intro-body { padding: 4px 6px; font-size: 15px; }
.intro-body p { text-indent: 2em; margin-bottom: 6px; }

/* 作品滚动 */
.marquee { overflow: hidden; position: relative; padding: 4px 0; }
.marquee-inner { display: flex; gap: 10px; will-change: transform; }
.work-card {
  flex: 0 0 160px; display: block; text-align: center;
}
.work-card img { width: 160px; height: 160px; object-fit: cover; border: 1px solid #e0e0c8; }
.work-card span { display: block; font-size: 13px; margin-top: 4px; color: #505050; }

/* 新闻列表 */
.two-col { display: flex; gap: 14px; }
.two-col .sec { flex: 1; min-width: 0; }
.news-list { list-style: none; padding: 4px 6px; }
.news-list li {
  padding: 3px 0; border-bottom: 1px dotted #d8d8b8;
  display: flex; align-items: baseline; gap: 8px;
}
.news-list .d {
  flex: 0 0 auto; color: #999; font-size: 12px;
  font-family: Arial; min-width: 42px;
}
.news-list a {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #3f3f3f;
}
.news-list.big li { flex-wrap: wrap; padding: 8px 0; }
.news-list.big .sum {
  flex-basis: 100%; color: #999; font-size: 12px; padding-left: 50px;
}

/* 作品网格 */
.work-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 8px 4px;
}
.work-item { display: block; text-align: center; border: 1px solid #eee; padding: 8px; background: #fffdf5; }
.work-item:hover { border-color: #709700; text-decoration: none; }
.work-item .pic img { width: 100%; height: 150px; object-fit: cover; }
.work-item .t { font-weight: bold; margin-top: 6px; color: #3f3f3f; }
.work-item .a { font-size: 12px; color: #888; }
.work-item .p { color: #d2691e; font-size: 13px; }

/* 文章页 */
.crumb { padding: 6px 2px 10px; color: #999; font-size: 13px; border-bottom: 1px solid #e8e8d0; margin-bottom: 14px; }
.article h1 { text-align: center; font-size: 24px; color: #333; margin: 10px 0 6px; }
.article .meta { text-align: center; color: #999; font-size: 12px; border-bottom: 1px dashed #ccc; padding-bottom: 10px; margin-bottom: 16px; }
.article-body { font-size: 15px; line-height: 2; padding: 4px 6px; overflow-wrap: break-word; }
.article-body img { max-width: 100%; height: auto; display: block; margin: 8px auto; }
.article-body p, .article-body div { margin-bottom: 4px; }
.page-body { min-height: 200px; }
.prevnext { border-top: 1px solid #e8e8d0; margin-top: 18px; padding: 10px 4px; font-size: 13px; }
.prevnext div { padding: 2px 0; }

/* 作品详情 */
.work-detail { display: flex; gap: 20px; padding: 10px 4px; }
.work-pic { flex: 0 0 420px; max-width: 55%; }
.work-pic img { width: 100%; border: 1px solid #e0e0c8; }
.work-info { flex: 1; }
.work-info h1 { font-size: 22px; margin-bottom: 10px; color: #333; }
.work-info table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.work-info th, .work-info td { border: 1px solid #e8e8d0; padding: 6px 10px; text-align: left; font-size: 14px; }
.work-info th { width: 70px; background: #fefdeb; color: #709700; }
.work-info .price { color: #d2691e; font-weight: bold; }
.order-btn {
  display: inline-block; background: #709700; color: #fff; padding: 8px 26px;
  border-radius: 3px; font-size: 15px;
}
.order-btn:hover { background: #557a00; text-decoration: none; }

/* 选项卡 / 分页 */
.tabs { display: flex; gap: 8px; margin: 4px 0 12px; }
.tabs a {
  padding: 4px 16px; border: 1px solid #c8c8a0; background: #fefdeb; color: #557a00; border-radius: 3px;
}
.tabs a.on { background: #709700; color: #fff; border-color: #709700; }
.pager { display: flex; gap: 14px; justify-content: center; padding: 16px 0 4px; color: #999; }
.pager a { border: 1px solid #c8c8a0; padding: 2px 14px; border-radius: 3px; background: #fefdeb; }

/* 表单 */
.fb-form { max-width: 560px; margin: 10px auto; }
.fb-form label { display: block; margin-bottom: 12px; font-weight: bold; color: #505050; }
.fb-form label b { color: #d2691e; }
.fb-form input, .fb-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px;
  border: 1px solid #c8c8a0; border-radius: 3px; font: 14px/1.6 "Microsoft YaHei", sans-serif;
  background: #fffdf5;
}
.fb-form input:focus, .fb-form textarea:focus { outline: none; border-color: #709700; }
.fb-form button {
  background: #709700; color: #fff; border: 0; padding: 10px 40px; font-size: 16px;
  border-radius: 3px; cursor: pointer;
}
.fb-form button:hover { background: #557a00; }
.fb-tip { text-align: center; color: #999; font-size: 13px; margin-top: 10px; }
.form-msg { max-width: 560px; margin: 10px auto; padding: 10px 14px; border-radius: 3px; }
.form-msg.ok { background: #eef7e0; border: 1px solid #9c6; color: #4a7a00; }
.form-msg.err { background: #fdeeee; border: 1px solid #e99; color: #c33; }

/* 友情链接 */
.link-list { list-style: none; padding: 10px 4px; }
.link-list li { padding: 8px 4px; border-bottom: 1px dotted #d8d8b8; }
.link-list a { font-size: 15px; }

.empty { color: #aaa; padding: 18px 6px; text-align: center; }

/* 页脚 */
.footer { width: 900px; max-width: 100%; margin: 0 auto 20px; background: #fff; text-align: center; padding-bottom: 10px; }
.footer-strip { width: 100%; height: 23px; display: block; }
.footer-menu { padding: 10px 0 4px; font-size: 13px; color: #888; }
.footer-menu a { color: #557a00; padding: 0 6px; }
.copyright { color: #654320; font-size: 12px; font-family: Arial, sans-serif; padding: 4px 0 8px; }

/* 响应式 */
@media (max-width: 920px) {
  .home-grid { flex-direction: column; }
  .sidebar { width: 100%; flex: none; }
  .two-col { flex-direction: column; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-detail { flex-direction: column; }
  .work-pic { flex: none; max-width: 100%; }
  .nav a { padding: 4px 8px; font-size: 14px; }
}
