/* 首页主样式 - 现代大气爱马仕橙主题联动 */

html, body {
  height: 100%;
  width: 100%;
  background: var(--bg-light);
  color: var(--text-primary);
  font-family: "Roboto", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: auto;
}

* {
  box-sizing: border-box;
}

a {
  transition: all 0.35s;
  color: var(--primary-color);
  text-decoration: none;
}
a:hover, a:focus {
  color: var(--accent-color);
}

body {
  background: var(--bg-light);
  position: relative;
  min-height: 100vh;
  padding-bottom: 70px; /* 确保底部导航栏不遮挡内容 */
}

/* 顶部功能区 */
.top-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 12px 0 12px;
}
.feature-box {
  flex: 1 1 45%;
  min-width: 44%;
  height: 90px;
  border-radius: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 17px;
  font-weight: bold;
  box-sizing: border-box;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.feature-box:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-lg);
}
.feature-box .icon {
  font-size: 36px;
  margin-right: 14px;
}
.feature-novel {
  background: linear-gradient(90deg, #ffb86c, var(--primary-color));
}
.feature-esport {
  background: linear-gradient(90deg, #a18cd1, #fbc2eb);
}
.feature-movie {
  background: linear-gradient(90deg, #ff6a88, #ff99ac);
}
.feature-tv {
  background: linear-gradient(90deg, #43e97b, #38f9d7);
}

/* 广告横幅 */
.ad-banner {
  margin: 22px 12px 0 12px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(90deg, #ffb86c 0%, var(--primary-color) 100%);
  position: relative;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.ad-banner img {
  width: 100%;
  display: block;
  border-radius: 22px;
}

/* 分类Tab */
.category-tabs {
  display: flex;
  margin: 28px 0 0 0;
  padding: 0 12px;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-white);
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-sm);
}
.category-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0 10px 0;
  font-size: 17px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  font-weight: 500;
  transition: color 0.2s;
}
.category-tab.active {
  color: var(--primary-color);
  font-weight: bold;
}
.category-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -2px;
  width: 36px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* 内容列表与卡片 */
.content-list {
  margin: 0 12px;
  display: none;
  padding-bottom: 80px;  /* 在底部添加足够空间以防止导航栏遮挡 */
}
.content-list.active {
  display: block;
}
.content-card {
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  margin-top: 22px;
  padding: 16px;
  position: relative;
  transition: box-shadow 0.2s;
}
.content-card:active {
  box-shadow: var(--shadow-lg);
}
.content-card .cover {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  margin-right: 18px;
  box-shadow: 0 2px 8px rgba(255,127,50,0.08);
  background: #fff6ee;
}
.content-card .info {
  flex: 1;
}
.content-card .title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.content-card .desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.content-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.content-card .tag {
  font-size: 13px;
  color: #fff;
  border-radius: 10px;
  padding: 3px 12px;
  background: var(--primary-gradient);
  font-weight: 500;
  letter-spacing: 1px;
  box-shadow: 0 1px 4px rgba(255,127,50,0.08);
}
.content-card .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 68px;
}
.content-card .price {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
}
.content-card .promote-btn {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 6px 22px;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(255,127,50,0.10);
  transition: background 0.2s;
}
.content-card .promote-btn:active {
  background: linear-gradient(90deg, #ffb86c, #ff6600);
}

.no-content {
  text-align: center;
  padding: 36px 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  display: flex;
  padding: 10px 0 6px 0;
  border-top: 1.5px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(255,127,50,0.05);
  z-index: 100;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bottom-nav-icon {
  font-size: 22px;
  margin-bottom: 3px;
}
.bottom-nav-text {
  font-size: 13px;
}
.bottom-nav .active {
  color: var(--primary-color);
}

/* 响应式优化 */
@media (max-width: 480px) {
  .feature-box {
    font-size: 15px;
    height: 70px;
    padding: 0 10px;
  }
  .ad-banner {
    height: 70px;
    border-radius: 14px;
  }
  .ad-banner img {
    border-radius: 14px;
  }
  .content-card .cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }
  .content-card {
    padding: 10px;
    border-radius: 10px;
  }
}

/* 其它全局基础样式（合并自index.css） */
h1, h2, h3, h4, h5, h6 {
  font-weight: 200;
  letter-spacing: 1px;
}
p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}
hr {
  max-width: 100px;
  margin: 25px auto 0;
  border-width: 1px;
  border-color: rgba(34, 34, 34, 0.1);
}
hr.light {
  border-color: white;
}

/* 兼容老页面主容器 */
#mainbody {
  position: relative;
  width: 100%;
  min-height: auto;
  overflow-y: hidden;
  background: var(--bg-light);
  color: var(--text-primary);
  height: calc(100vh - 61px);
}

.footer {
  background-color: #222222;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}
.footer p {
  font-size: 14px;
  margin: 0;
} 