/* ===== 小说排行榜网 - 自定义补全样式 =====
   补全编译 CSS 中缺失的 tsj- 组件样式
   （原始 Vue scoped 样式未打进编译包） */

/* ---------- 基础 ---------- */
body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: PingFang SC, Hiragino Sans GB, Microsoft YaHei, STHeiti, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    background-color: #f5f5f5;
}
* { box-sizing: border-box; }
a { color: #42bd56; text-decoration: none; }
a:hover { color: #2d9348; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }

/* ---------- 布局 ---------- */
.bg-gray { background-color: #f5f5f5; }
.bg-white { background-color: #fff; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.max-w-page { max-width: 1000px; margin: 0 auto; }
.px-1 { padding-left: 4px; padding-right: 4px; }
.m-auto { margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-2 { margin-top: 8px; margin-bottom: 8px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mr-2 { margin-right: 8px; }
.p-0 { padding: 0; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.pt-1 { padding-top: 4px; }
.pb-1 { padding-bottom: 4px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leading-relaxed { line-height: 1.8; }
.rounded { border-radius: 4px; }
.rounded-sm { border-radius: 2px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.lg\:text-xs { font-size: 12px; }
.text-color-medium { color: #888; }
.text-color-high { color: #333; }
.text-color-low { color: #aaa; }
.font-normal { font-weight: 400; }
.list-none { list-style: none; }
.justify-start { justify-content: flex-start; }
.items-center { align-items: center; }

/* ---------- 顶部导航栏 ---------- */
.tsj-top-app-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}
.tsj-top-app-bar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
}
.tsj-top-app-bar__section { display: flex; align-items: center; }
.tsj-top-app-bar__section--align-start { margin-left: 24px; gap: 4px; }
.tsj-top-app-bar__section__title {
    font-size: 20px;
    font-weight: 700;
    color: #42bd56;
    letter-spacing: 1px;
}
.tsj-top-app-bar__section__title:visited,
.tsj-top-app-bar__section__title:active { color: #42bd56; }
.tsj-top-app-bar__row__nav { gap: 4px; }
.tsj-top-app-bar__row__nav__item {
    display: inline-block;
    padding: 6px 16px;
    font-size: 15px;
    color: #555;
    border-radius: 20px;
    transition: all 0.2s;
}
.tsj-top-app-bar__row__nav__item:hover {
    color: #42bd56;
    background: #f0faf2;
}

/* ---------- 两栏布局 ---------- */
.tsj-two-column-layout--default { background: #f5f5f5; }
.tsj-two-column-layout__content { background: #f5f5f5; }
.tsj-two-column-layout__main {
    flex: 1;
    max-width: 750px;
    margin: 0 auto;
    padding: 16px;
}
.tsj-two-column-layout__aside {
    width: 250px;
    padding: 16px 0;
}
@media (max-width: 768px) {
    .tsj-two-column-layout__content { flex-direction: column; }
    .tsj-two-column-layout__main { max-width: 100%; padding: 10px; }
    .tsj-two-column-layout__aside { width: 100%; padding: 0 10px; }
    .sm\:hidden { display: none !important; }
}
@media (min-width: 769px) {
    .tsj-two-column-layout__content { flex-direction: row; }
}

/* ---------- 榜单页面 ---------- */
.tsj-page__rank { width: 100%; }
.tsj-page__rank__intro {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.tsj-page__rank__intro__title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}
.tsj-page__rank__book-list { width: 100%; }

/* ---------- 分类筛选按钮（ant-radio 风格） ---------- */
.ant-radio-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 8px;
}
.ant-radio-button-wrapper {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    color: #666;
    background: #fff;
    border: 1px solid #d9d9d9;
    cursor: pointer;
    transition: all 0.2s;
    margin: 2px;
    border-radius: 4px;
}
.ant-radio-button-wrapper:hover {
    color: #42bd56;
    border-color: #42bd56;
}
.ant-radio-button-wrapper-checked {
    color: #fff;
    background: #42bd56;
    border-color: #42bd56;
}

/* ---------- 小说卡片 ---------- */
.tsj-rank-book-item { margin-bottom: 12px; }
.tsj-book-item {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.tsj-book-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.tsj-book-item__above { margin-bottom: 10px; }
.tsj-rank-book-item__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.tsj-rank-book-item__title:hover { color: #42bd56; }
.tsj-book-item__info { gap: 12px; }
.tsj-book-item__info__left { flex-shrink: 0; }
.tsj-book-item__info__right { flex: 1; min-width: 0; }
.tsj-book-item__info__right__book-subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}
.tsj-book-item__info__right__book-subtitle a { color: #42bd56; }
.tsj-book-item__info__right__extra { margin-top: 4px; }
.tsj-book-item__below {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    line-height: 1.6;
}

/* ---------- 小说封面 ---------- */
.tsj-book-cover {
    width: 4.2rem;
    height: 6.048rem;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.tsj-book-cover__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- 标签 ---------- */
.tsj-book-tags { display: flex !important; flex-wrap: wrap; gap: 6px; margin-top: 6px; height: auto !important; overflow: visible !important; }
.tsj-book-tag {
    display: inline-block;
    border: none !important;
    padding: 0 !important;
    margin: 0 4px 4px 0 !important;
    color: #42bd56 !important;
}
.tsj-book-tag a {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    color: #42bd56;
    background: #f0faf2;
    border: 1px solid #d4f0db;
    border-radius: 12px;
    transition: all 0.2s;
}
.tsj-book-tag a:hover {
    color: #fff;
    background: #42bd56;
    border-color: #42bd56;
}

/* ---------- 评分 ---------- */
.tsj-book-rate { font-size: 13px; color: #aaa; }

/* ---------- 侧边栏 ---------- */
.tsj-right-ad { width: 100%; }
.related-book-lists {
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.related-book-lists h2 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}
.related-book-lists li { margin-bottom: 6px; }
.related-book-lists a { font-size: 13px; }

/* ---------- 页脚 ---------- */
.tsj-footer {
    background: #393D49;
    color: #bbb;
    text-align: center;
    padding: 24px 16px;
    margin-top: 20px;
}
.tsj-footer a { color: #bbb; margin: 0 2px; }
.tsj-footer a:hover { color: #fff; }
.tsj-footer p { margin: 0 0 8px 0; font-size: 13px; }

/* ---------- 评论区 ---------- */
.comment-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ---------- 响应式微调 ---------- */
@media (max-width: 768px) {
    .tsj-top-app-bar__row { height: 50px; padding: 0 12px; }
    .tsj-top-app-bar__section__title { font-size: 17px; }
    .tsj-top-app-bar__row__nav__item { padding: 4px 12px; font-size: 14px; }
    .tsj-page__rank__intro { padding: 14px; }
    .tsj-page__rank__intro__title { font-size: 18px; }
    .tsj-book-item { padding: 12px; }
    .tsj-book-cover { width: 3.5rem; height: 5rem; }
}
