/* 
 * 翰飞远直播平台 - 复古风格CSS
 * 简洁复古设计
 */

/* 重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'SimSun', serif, 'Microsoft YaHei', sans-serif;
  color: #333;
  background-color: #f8f4e9;
  background-image: 
    linear-gradient(rgba(248, 244, 233, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 244, 233, 0.8) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #7a4e26;
  transition: color 0.3s ease;
}

a:hover {
  color: #c17f35;
}

img {
  max-width: 100%;
  height: auto;
}

/* 容器与布局 */
.vintage-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'KaiTi', 'STKaiti', serif;
  color: #5a3921;
  margin-bottom: 15px;
  font-weight: normal;
}

h1 {
  font-size: 2.2em;
  text-align: center;
  position: relative;
  margin: 30px 0;
  color: #5a3921;
  padding-bottom: 10px;
}

h1:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #c17f35;
  margin: 15px auto;
  position: relative;
}

h1:before {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  background: #d9ceb2;
  margin: 0 auto 15px;
  position: relative;
}

h2 {
  font-size: 1.8em;
  border-bottom: 1px solid #d9ceb2;
  padding-bottom: 8px;
  margin: 25px 0 15px;
}

h3 {
  font-size: 1.5em;
  margin: 20px 0 10px;
}

/* 段落样式 */
p {
  margin-bottom: 15px;
  color: #555;
  text-align: justify;
}

/* 表单元素 */
input, textarea, select, button {
  font-family: 'SimSun', serif;
  padding: 8px 12px;
  border: 1px solid #d9ceb2;
  border-radius: 0;
  background-color: #faf6e9;
  color: #555;
}

button, .btn {
  display: inline-block;
  background-color: #ae7c3e;
  color: #fff;
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'KaiTi', 'STKaiti', serif;
}

button:hover, .btn:hover {
  background-color: #8c6434;
}

/* 顶部导航 */
.vintage-header {
  background-color: #5a3921;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vintage-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vintage-logo {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.vintage-logo img {
  max-height: 30px;
  margin-right: 10px;
}

.vintage-logo-text {
  color: #f8f4e9;
  font-size: 1.5em;
  font-family: 'KaiTi', 'STKaiti', serif;
}

.vintage-nav {
  background-color: transparent;
  padding: 0;
}

.vintage-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vintage-nav li {
  margin: 0;
  position: relative;
}

.vintage-nav a {
  display: block;
  color: #f8f4e9;
  padding: 12px 15px;
  font-size: 18px;
  position: relative;
  font-family: 'KaiTi', 'STKaiti', serif;
}

.vintage-nav a:hover {
  background-color: rgba(255,255,255,0.1);
}

.vintage-nav li.active a {
  background-color: #c17f35;
}

/* 横幅区域 */
.vintage-banner {
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  margin: 20px auto 30px;
  max-width: 1100px;
}

.vintage-banner:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(122, 78, 38, 0.1);
  pointer-events: none;
}

.vintage-banner img {
  display: block;
  width: 100%;
}

/* 主内容区 */
.vintage-main {
  display: flex;
  margin: 30px 0;
}

.vintage-content {
  flex: 3;
  padding: 20px;
  background: #fff;
  border: 1px solid #d9ceb2;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin-right: 20px;
}

.vintage-sidebar {
  flex: 1;
}

/* 侧边栏 */
.vintage-widget {
  background: #fff;
  border: 1px solid #d9ceb2;
  margin-bottom: 20px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.vintage-widget h3 {
  margin-top: 0;
  font-size: 1.3em;
  border-bottom: 2px solid #d9ceb2;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.vintage-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vintage-widget li {
  padding: 8px 0;
  border-bottom: 1px dashed #d9ceb2;
}

.vintage-widget li:last-child {
  border-bottom: none;
}

/* 卡片样式 */
.vintage-card {
  background: #fff;
  border: 1px solid #d9ceb2;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.vintage-card:hover {
  transform: translateY(-5px);
}

.vintage-card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #5a3921;
  font-family: 'KaiTi', 'STKaiti', serif;
}

/* 主播展示 */
.vintage-streamers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.vintage-streamer-card {
  background: #fff;
  border: 1px solid #d9ceb2;
  padding: 15px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.vintage-streamer-card:hover {
  transform: translateY(-5px);
}

.vintage-streamer-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 5px solid #f8f4e9;
}

.vintage-streamer-name {
  font-size: 1.3em;
  margin-bottom: 5px;
  color: #5a3921;
  font-family: 'KaiTi', 'STKaiti', serif;
}

.vintage-streamer-desc {
  color: #777;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.vintage-streamer-btn {
  display: inline-block;
  background-color: #ae7c3e;
  color: #fff;
  padding: 6px 15px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.vintage-streamer-btn:hover {
  background-color: #8c6434;
  color: #fff;
}

/* 登录注册表单 */
.vintage-auth-form {
  max-width: 500px;
  margin: 30px auto;
  background: #fff;
  padding: 25px;
  border: 1px solid #d9ceb2;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.vintage-form-group {
  margin-bottom: 20px;
}

.vintage-form-group label {
  display: block;
  margin-bottom: 5px;
  color: #5a3921;
  font-family: 'KaiTi', 'STKaiti', serif;
}

.vintage-form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #d9ceb2;
  background-color: #faf6e9;
}

.vintage-btn-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
}

/* 页脚 */
.vintage-footer {
  background-color: #5a3921;
  color: #f8f4e9;
  padding: 30px 0;
  margin-top: 40px;
  text-align: center;
}

.vintage-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.vintage-footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.vintage-footer-info {
  margin-bottom: 20px;
  text-align: center;
  flex: 2;
}

.vintage-footer-info p {
  margin: 5px 0;
  color: #d9ceb2;
}

.vintage-footer-links {
  margin: 15px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.vintage-footer-links a {
  color: #d9ceb2;
  margin: 0 10px;
  padding: 5px 10px;
  display: inline-block;
}

.vintage-footer-links a:hover {
  color: #fff;
}

.vintage-footer-qrcode {
  flex: 1;
  text-align: right;
}

.vintage-footer-qrcode p {
  color: #d9ceb2;
  margin-top: 5px;
  text-align: center;
}

.vintage-copyright {
  padding-top: 15px;
  color: #d9ceb2;
  font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .vintage-header-flex {
    flex-direction: column;
  }
  
  .vintage-footer-flex {
    flex-direction: column;
  }
  
  .vintage-footer-info,
  .vintage-footer-qrcode {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .vintage-main {
    flex-direction: column;
  }
  
  .vintage-content {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .vintage-streamers {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .vintage-nav ul {
    flex-direction: column;
  }
  
  .vintage-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .vintage-streamers {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  h1 {
    font-size: 1.8em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  .vintage-footer-links a {
    margin: 5px;
    display: inline-block;
  }
}

/* 装饰元素 */
.vintage-decoration {
  position: relative;
  border: 1px solid #d9ceb2;
  padding: 25px;
  background-color: #fff;
  margin-bottom: 30px;
}

.vintage-decoration:before,
.vintage-decoration:after,
.vintage-decoration > :first-child:before,
.vintage-decoration > :first-child:after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: #c17f35;
  border-style: solid;
}

.vintage-decoration:before {
  top: 5px;
  left: 5px;
  border-width: 1px 0 0 1px;
}

.vintage-decoration:after {
  top: 5px;
  right: 5px;
  border-width: 1px 1px 0 0;
}

.vintage-decoration > :first-child:before {
  bottom: 5px;
  left: 5px;
  border-width: 0 0 1px 1px;
}

.vintage-decoration > :first-child:after {
  bottom: 5px;
  right: 5px;
  border-width: 0 1px 1px 0;
}

/* 特殊图标和装饰 */
.vintage-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 5px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #c17f35;
  border-radius: 50%;
}

.vintage-icon-live {
  position: relative;
}

.vintage-icon-live:after {
  content: "LIVE";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 8px;
  font-weight: bold;
}

.vintage-icon-user {
  position: relative;
}

.vintage-icon-user:after {
  content: "";
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.vintage-icon-user:before {
  content: "";
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 5px 5px 0 0;
}

/* 直播间列表 */
.vintage-live-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.vintage-live-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9ceb2;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.vintage-live-card:hover {
  transform: translateY(-5px);
}

.vintage-live-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 比例 */
  overflow: hidden;
}

.vintage-live-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vintage-live-card:hover .vintage-live-thumbnail img {
  transform: scale(1.05);
}

.vintage-live-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #c17f35;
  color: #fff;
  padding: 3px 8px;
  font-size: 0.8em;
  border-radius: 3px;
}

.vintage-live-info {
  padding: 15px;
}

.vintage-live-title {
  font-size: 1.1em;
  margin-bottom: 5px;
  color: #5a3921;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vintage-live-streamer {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.vintage-live-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 8px;
}

.vintage-live-name {
  color: #777;
  font-size: 0.9em;
}

/* 政策页面样式 */
.vintage-policy {
  padding: 20px;
  background: #fff;
  border: 1px solid #d9ceb2;
  margin-bottom: 30px;
  line-height: 1.8;
}

.vintage-policy h3 {
  border-bottom: 1px solid #d9ceb2;
  padding-bottom: 8px;
  margin: 25px 0 15px;
}

.vintage-policy p {
  margin-bottom: 15px;
}

.vintage-policy ul, 
.vintage-policy ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.vintage-policy li {
  margin-bottom: 5px;
}

/* 公告与提醒 */
.vintage-notice {
  background-color: #f8f4e9;
  border-left: 4px solid #c17f35;
  padding: 15px;
  margin-bottom: 20px;
}

.vintage-notice-title {
  color: #5a3921;
  font-weight: bold;
  margin-bottom: 5px;
}

.vintage-notice-content {
  color: #777;
} 