﻿@charset "utf-8";

/* 清除浮动通用类 - 伪元素方式 */
.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
  clear: both;
}

/* 清除浮动通用类 - 基础方式 */
.clear {
  clear: both;
  height: 1px;
  margin-top: -1px;
}

/* 页面容器：移除固定960px，适配100%宽度 */
.wrapper {
  width: 100%;
  margin: 0 auto;
}

/* 轮播容器 */
.v2 {
  margin: 0px auto;
}

/* 轮播滑动区域：移除固定700px/220px，适配100%宽度 */
.v2-slide {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* 轮播图片容器：移除固定尺寸，适配父容器 */
.v2-pic {
  width: 100%;
  height: 100%;
}

/* 修复ul高度，适配父容器 */
.v2-pic ul {
  height: 100%;
}

/* 轮播图片项：移除固定700px，由JS/PHP动态控制 */
.v2-pic li {
  float: left;
  position: relative;
  overflow: hidden;
  height: 100%; /* 高度铺满容器，避免错位 */
}

/* 轮播图片描述文字：优化定位，适配不同高度 */
.v2-pic li span {
  display: inline-block;
  padding: 0 20px;
  width: auto;
  height: 26px;
  line-height: 24px;
  font-size: 14px;
  font-family: inherit;
  letter-spacing: 1px;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = #80000000, endColorstr = #80000000);
  border-radius: 0 3px 3px 0;
  -moz-border-radius: 0 3px 3px 0;
  -webkit-border-radius: 0 3px 3px 0;
  position: absolute;
  /* 改用百分比定位，适配不同容器高度 */
  top: calc(100% - 50px);
  left: 0;
}

/* 轮播文字链接样式 */
.v2-pic li span a,
.v2-pic li span a:hover {
  color: #fff;
  text-decoration: none;
}

/* 轮播分页指示器容器：优化定位，适配不同高度 */
.v2-pictab {
  padding: 0;
  height: 12px;
  position: absolute;
  right: 10px;
  /* 改用百分比定位，避免固定像素错位 */
  top: calc(100% - 25px);
}

/* 轮播分页指示器项：保留原有样式，修复text-indent */
.v2-pictab li {
  float: left;
  width: 12px;
  height: 12px;
  margin-left: 5px;
  text-indent: -9999px;
  cursor: pointer;
  overflow: hidden;
  background: url(../images/v2-pictab.png) no-repeat 0 -12px;
  _background-image: url(../images/v2-pictab_i6.png);
  /* 重置li的height/float，避免继承轮播项样式 */
  height: 12px !important;
  float: left !important;
}

/* 轮播分页指示器激活状态 */
.v2-pictab li.on {
  background: url(../images/v2-pictab.png) no-repeat 0 0;
  _background-image: url(../images/v2-pictab_i6.png);
  overflow: hidden;
}