@charset "utf-8";
/* ==========================================================================
   layout.css — 页面骨架：背景层、顶栏、头部、版心、页脚
   版心 1200px 居中；背景层为 100% 宽的绝对定位装饰层
   ========================================================================== */

/* --- 页面与背景层 -------------------------------------------------------- */
.kpWrap {
  position: relative;
  /* 对应原站 .classicsWrap{width:100%;min-width:1000px} */
  min-width: 1000px;
}

/* 顶层通栏背景：默认 580px 高的主题插画（高度与图片随皮肤变化） */
.page-bg-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 980px;
  height: var(--skin-top-height, 580px);
  overflow: hidden;
  z-index: 0;
  background: var(--skin-bg-top) top center no-repeat var(--skin-top-color);
}

/* 底部衬底：原站为空白层，仅占位撑开页面高度 */
.page-bg-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  min-width: 980px;
  height: 400px;
  overflow: hidden;
  z-index: 0;
}

#wrap {
  position: relative;
  min-width: 980px;
  background: var(--skin-bg-color);
}

/* --- 顶栏 ---------------------------------------------------------------- */
.topbar {
  position: relative;
  z-index: 20;
  height: 26px;
  line-height: 26px;
  background: #fafafa;
  border-bottom: 1px solid #e0e0e0;
}

.topbar .top-bd {
  position: relative;
  z-index: 9999;
  width: 1200px;
  margin: 0 auto;
}

.topbar .wel {
  color: #686868;
  line-height: 26px;
}

.topbar .wel ul li {
  display: inline;
  float: left;
  margin-right: 10px;
  color: #b4b4b4;
  list-style: none;
}

.topbar .wel ul li a { color: #686868; }
.topbar .wel ul li a:hover { color: #f00; }

.topbar .sets li {
  display: inline;
  float: left;
  list-style: none;
}

.topbar .sets a { color: #868585; }
.topbar .sets a:hover { color: #f00; }

/* 用户登录 */
.topbar .user-entry {
  width: 48px;
  height: 26px;
  padding-left: 10px;
}

/* 三色快捷换肤 */
.topbar .setColor {
  margin: 7px 0 0 19px;
  height: 14px;
}

.topbar .setColor a {
  float: left;
  display: inline;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  overflow: hidden;
  text-indent: -999em;
  cursor: pointer;
  background: url(../img/spirit.png) no-repeat;
}

.topbar .setColor .blue  { background-position: -1px  -568px; }
.topbar .setColor .green { background-position: -20px -568px; }
.topbar .setColor .pink  { background-position: -39px -568px; }

/* 换肤按钮 */
.topbar .themeChange {
  height: 26px;
  background: #f1f1f1;
  border: 1px solid #e0e0e0;
  border-width: 0 1px;
  cursor: pointer;
}

.topbar .themeChange a {
  display: block;
  width: 70px;
  height: 13px;
  line-height: 13px;
  padding: 7px 0 6px 8px;
  text-align: center;
  /* 与原站一致：只声明 Tahoma，CJK 走浏览器默认回退 */
  font-family: Tahoma;
  background: url(../img/spirit.png) 2px -277px no-repeat #f1f1f1;
}

/* 展开态：箭头翻转（对应原站 .themeChangeDown a） */
.topbar .themeChange.themeChangeDown a { background-position: 2px -314px; }

/* --- 换肤面板容器 -------------------------------------------------------- */
/* 对应原站 #theme：收起时高度 0，展开到 210px，整块把下方内容下推 */
.theme {
  height: 0;
  overflow: hidden;
  background: url(../img/theme-bg.gif);
  /* 用 inset 阴影代替 border：不影响 210px 的布局高度 */
  box-shadow: inset 0 -1px 0 #e6e6e6;
  -webkit-transition: height .3s ease-out;
  transition: height .3s ease-out;
}

/* 展开态由 class 驱动，不依赖脚本写内联样式 —— 状态可判定、便于降级 */
.theme.is-open {
  height: 210px;
}

/* 系统开启「减少动态效果」时直接跳到终态 */
@media (prefers-reduced-motion: reduce) {
  .theme,
  .theme .themeSlider ul,
  .themeBot ul {
    -webkit-transition: none;
    transition: none;
  }

  .theme .themeSlider ul {
    -webkit-animation: none;
    animation: none;
  }
}

/* --- 换肤面板 ------------------------------------------------------------ */
/* 结构对齐原站 upload3/theme.html；尺寸与色值取自 index.css 的 .themeWrap 系列 */
.themeWrap {
  width: 1000px;
  height: 210px;
  margin: 0 auto;
}

/* 分类条：热门皮肤 / 护眼绿色 / 女生专用 / 明星皮肤 / 卡通动漫 / 单色皮肤 */
.themeTop {
  margin-top: 18px;
  margin-left: 60px;
}

.themeTop li {
  float: left;
  display: inline;
  margin-right: 24px;
  list-style: none;
}

.themeTop li a {
  text-decoration: none;
}

.themeTop li a.cur {
  color: #1a72c1;
}

/* 滑块区：左右箭头绝对定位在两侧，中间 890px 窗口，一屏 6 个 */
.themeMid {
  position: relative;
  clear: both;
  margin-top: 15px;
  border-bottom: 1px solid #d9d9d9;
  zoom: 1;
}

.theme .themeSlider {
  position: relative;
  width: 890px;
  height: 115px;
  margin: 0 auto;
  overflow: hidden;
}

.theme .themeSlider ul {
  position: absolute;
  left: 0;
  width: 6000px;
  /* 翻页滑动，对应原站 Animate 的 300ms */
  -webkit-transition: left .3s ease-out;
  transition: left .3s ease-out;
}

.theme .themeSlider li {
  position: relative;
  float: left;
  display: inline;
  width: 140px;
  height: 100px;
  margin-right: 10px;
  list-style: none;
  cursor: pointer;
}

.theme .themeSlider .span {
  display: block;
  padding: 5px;
}

/* 选中态：原站给缩略图套一圈 1px 绿框并把内边距收成 4px */
.theme .curTheme .span {
  height: 90px;
  padding: 4px;
  background: #fff;
  border: 1px solid #68b500;
}

.theme .themeSlider img {
  float: left;
  cursor: pointer;
}

/* 悬停时浮出皮肤名 */
.theme .themeSlider .themeMask {
  position: absolute;
  bottom: 5px;
  left: 5px;
  display: none;
  width: 130px;
  height: 19px;
  overflow: hidden;
  font-size: 12px;
  line-height: 19px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  background: rgba(0, 0, 0, .5);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#80000000, endColorstr=#80000000);
}

.theme .curTheme .themeMask,
.theme .themeLiHover .themeMask {
  display: block;
}

/* 左右翻页箭头，取自 iconall.png 的 -335/-365px -471px */
.theme .themeLeft,
.theme .themeRight {
  position: absolute;
  top: 9px;
  width: 30px;
  height: 80px;
  cursor: pointer;
  background: url(../img/iconall.png) -335px -471px no-repeat;
}

.theme .themeLeft { left: 0; }
.theme .themeRight { right: 0; background-position: -365px -471px; }
.theme a.themeLeft:hover { background-position: -425px -471px; }
.theme a.themeRight:hover { background-position: -395px -471px; }

/* 到首/末页时抖动一下作为反馈（原站 Shake 动画的等价实现）。
   原站没有置灰样式，这里也不置灰 —— 否则首屏左箭头太淡会让人以为不可点。 */
@keyframes themeShakeLeft {
  0%, 100% { -webkit-transform: translateX(0); transform: translateX(0); }
  30% { -webkit-transform: translateX(-14px); transform: translateX(-14px); }
  70% { -webkit-transform: translateX(7px); transform: translateX(7px); }
}

@keyframes themeShakeRight {
  0%, 100% { -webkit-transform: translateX(0); transform: translateX(0); }
  30% { -webkit-transform: translateX(14px); transform: translateX(14px); }
  70% { -webkit-transform: translateX(-7px); transform: translateX(-7px); }
}

.theme .themeSlider ul.is-shake-left {
  -webkit-animation: themeShakeLeft .45s ease-out;
  animation: themeShakeLeft .45s ease-out;
}

.theme .themeSlider ul.is-shake-right {
  -webkit-animation: themeShakeRight .45s ease-out;
  animation: themeShakeRight .45s ease-out;
}

/* 底部：保存 / 取消 / 恢复默认 + 右侧分页 */
.themeBot {
  position: relative;
  text-align: center;
}

.theme .themeBot {
  clear: both;
  margin-top: 7px;
}

.themeBot .themeSave,
.themeBot .themeCan {
  display: inline-block;
  width: 58px;
  height: 23px;
  margin: 0 2px;
  line-height: 23px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: #63aae9;
  border: 1px solid #63aae9;
}

.themeBot .themeCan {
  color: #666;
  background: #f2f2f2;
  border-color: #dcdcdc;
}

.themeBot .themeSave:hover,
.themeBot .themeCan:hover { text-decoration: none; }

.themeBot .themeDel {
  position: relative;
  display: inline-block;
  height: 23px;
  padding-left: 14px;
  line-height: 23px;
  color: #e12222;
  text-decoration: none;
}

.themeBot .themeDel i {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: url(../img/iconall.png) -336px -437px no-repeat;
}

.themeBot .themePagger {
  position: absolute;
  top: 0;
  right: 0;
  height: 25px;
  line-height: 25px;
  color: #666;
  zoom: 1;
}

.themeBot .pre,
.themeBot .after,
.themeBot .itemWrap {
  display: inline-block;
  height: 25px;
  font-family: Tahoma;
  line-height: 24px;
  vertical-align: middle;
}

.themeBot .itemWrap {
  position: relative;
  display: inline-block;
  width: 15px;
  overflow: hidden;
}

.themeBot ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  text-align: right;
  -webkit-transition: top .3s ease-out;
  transition: top .3s ease-out;
}

.themeBot ul li {
  display: block;
  height: 24px;
  color: #e12222;
  list-style: none;
}

/* --- 头部 ---------------------------------------------------------------- */
.header {
  position: relative;
  z-index: 2;
  width: 1200px;
  height: 80px;
  margin: 0 auto;
}

.header-bd {
  position: relative;
  /* 内容层需高于 .veil(1)/.rule(2)，对应原站 .header .cf{z-index:996} */
  z-index: 3;
  height: 80px;
}

/* 左侧 LOGO（用背景图，文字负缩进隐藏） */
.header .logo {
  float: left;
  display: inline;
  width: 200px;
  height: 80px;
  overflow: hidden;
  text-indent: -1000em;
  cursor: pointer;
  background: url(../img/logo.png) no-repeat 0 center;
}

/* 右侧推广位 */
.header .promo {
  float: right;
  width: 160px;
  height: 60px;
  margin-top: 10px;
}

.header .promo img {
  display: block;
  width: 160px;
  height: 60px;
}

/* 头部中段：日历 + 天气 + 邮箱 */
.header .meta {
  position: relative;
  z-index: 996;
  font-family: Tahoma;
}

/* 半透明白纱与底线（原站 headerBg / headerbottombr） */
.header .veil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 81px;
  background: #fcfcfc;
  opacity: .2;
  z-index: 1;
  pointer-events: none;
}

.header .rule {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  opacity: .2;
  z-index: 2;
  pointer-events: none;
}

/* --- 版心 ---------------------------------------------------------------- */
.container {
  position: relative;
  z-index: 2;
  width: 1200px;
  margin: 0 auto;
}

.content {
  margin-top: 11px;
  width: 1200px;
}

.main {
  float: left;
  display: inline;
  width: 1200px;
  font-size: 14px;
}

/* --- 页脚 ---------------------------------------------------------------- */
.footer {
  float: left;
  width: 1200px;
  padding: 10px 0 27px;
  text-align: center;
}

.footer .link {
  float: left;
  display: inline;
}

.footer .link a { color: #3d3d3d; }

.footer .copyright {
  float: right;
  display: inline;
  color: #666;
}

.footer .copyright a { color: #666; }
.footer .copyright a:hover { color: #f00; }
