@charset "utf-8";
/* CSS Document for Mobile Single Episode Page (Ji) */

/* ===== Base/Reset ===== */
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
input,
textarea,
p,
blockquote,
th,
td {
    margin: 0;
    padding: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

fieldset,
img {
    border: 0;
}

address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
    font-style: normal;
    font-weight: normal;
}

ol,
ul {
    list-style: none;
}

caption,
th {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: normal;
}

q:before,
q:after {
    content: '';
}

abbr,
acronym {
    border: 0;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover,
a:active {
    color: #1490ce;
}

.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

.clearfix {
    display: block;
}

.clear {
    clear: both;
}

body {
    background-color: #f7f8fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: #333;
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: transparent;
}

#top {
    background-color: #fff;
    padding-bottom: 20px;
}

/* ===== Navbar ===== */
.navbar-wrap {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-wrap .column {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 44px;
    line-height: 44px;
}

.navbar-wrap .column .block {
    flex: 1;
    text-align: center;
    font-size: 15px;
    color: #666;
    position: relative;
    cursor: pointer;
    letter-spacing: 1px;
}

.navbar-wrap .column .block.active {
    color: #1490ce;
    font-weight: bold;
    font-size: 16px;
}

.navbar-wrap .column .block.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #08dce6, #008cff);
    border-radius: 2px;
}

/* ===== Modern Card ===== */
.modern-card {
    margin: 8px 8px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.modern-card+.modern-card {
    margin-top: 0;
    margin-bottom: 10px;
}

/* ===== Episode Selector Header (Gradient) ===== */
.modern-episode-selector {
    border-radius: 8px;
    overflow: hidden;
}

.modern-selector-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* Purple/Blue Gradient from Swan */
    padding: 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* border-radius: 8px 8px 0 0;  Removed 0 0 if it's the only child usually */
}

.episode-info {
    display: flex;
    flex-direction: column;
}

.current-episode {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.series-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-top: 4px;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.toggle-btn:hover,
.toggle-btn:active {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ===== Story Content ===== */
.story-content {
    /* Padding handled by modern-card */
}

.containerc {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* ===== Pagination (Fenye) ===== */
.fenye {
    padding: 15px 8px;
    text-align: left;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fenye a {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    color: #666;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 14px;
}

.fenye a.active,
.fenye b {
    background: #1490ce;
    color: #fff;
    border-color: #1490ce;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: normal;
}

/* ===== Quick Episodes (Grid) ===== */
.bar-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    color: #333;
    border-left: 4px solid #1490ce;
    padding-left: 10px;
}

.quick-episodes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-episode {
    width: calc(20% - 6.4px);
    /* 5 columns with 8px gap approx */
    height: 40px;
    line-height: 40px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    color: #666;
    box-sizing: border-box;
    display: block;
}

/* ===== Footer ===== */
#bottom {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 12px;
    background: #fff;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

#bottom a {
    color: #666;
    margin: 0 5px;
}

.goTop {
    height: 40px;
    width: 40px;
    position: fixed;
    bottom: 50px;
    right: 15px;
    border-radius: 50%;
    z-index: 999;
}