* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100px;
    max-width: 750px;
    margin: 0 auto;
    background-color: #f5f5f5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.28rem;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.header {
    padding: 0.2rem 0.3rem;
    text-align: center;
}

.header h1 {
    margin: 0;
}

.header .logo {
    font-size: 0.4rem;
    font-weight: bold;
    color: #ee5a9a;
    text-decoration: none;
}

.header .logo img {
    max-height: 0.6rem;
    vertical-align: middle;
}

.header_zw {
    height: 0.2rem;
    background: linear-gradient(to right, #ff6b6b, #ee5a9a, #c458d3);
}

.nav {
    padding: 0.2rem 0;
    text-align: center;
    background: #1e3a8a;
}

.nav .nav {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

.nav a {
    font-size: 0.22rem;
    color: #fff;
    padding: 0.1rem 0.2rem;
}

.nav a:hover {
    color: #e8f8f0;
}

.gray10 {
    height: 0.1rem;
    background-color: #f5f5f5;
}

.swiper-container {
    width: 100%;
    height: 3rem;
    position: relative;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.swiper-slide {
    flex: 0 0 100%;
    position: relative;
}

.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.2rem 0.3rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.28rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swiper-pagination {
    position: absolute;
    bottom: 0.1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.1rem;
}

.swiper-pagination span {
    width: 0.15rem;
    height: 0.15rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.swiper-pagination span.active {
    background: #fff;
}

.hm_head {
    font-size: 0.3rem;
    font-weight: bold;
    color: #333;
    padding: 0.2rem 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.hm_head .head-icon {
    color: #ee5a9a;
    font-size: 0.35rem;
}

.hm_head img {
    width: 0.35rem;
    height: 0.35rem;
}

.hm_zd {
    padding: 0 0.3rem;
    background: #fff;
}

.zd_item {
    display: block;
    padding: 0.2rem 0.1rem;
    border-bottom: 1px solid #f0f0f0;
}

.zd_item:last-child {
    border-bottom: none;
}

.zd_item .name {
    display: block;
    font-size: 0.28rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clear {
    clear: both;
}

.hm_bj {
    padding: 0 0.3rem;
    background: #fff;
    overflow: hidden;
}

.ne_item {
    display: flex;
    padding: 0.2rem 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 0.25rem;
    align-items: flex-start;
}

.ne_item:last-child {
    border-bottom: none;
}

.item-cover {
    width: 1.6rem;
    height: 2.2rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0.05rem;
    background-color: #f5f5f5;
}

.item-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
    max-height: none !important;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 2.2rem;
}

.item-title {
    font-size: 0.3rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 0.12rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-desc {
    font-size: 0.24rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 0.15rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    font-size: 0.22rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.item-author {
    color: #666;
}

.item-date {
    color: #999;
    font-size: 0.22rem;
}

.item-meta span.separator {
    margin: 0 0.1rem;
}

.hm_jp {
    padding: 0 0.3rem;
    background: #fff;
}

.pagination {
    padding: 0.3rem;
    text-align: center;
    background: #fff;
}

.pagination a {
    display: inline-block;
    padding: 0.15rem 0.3rem;
    margin: 0 0.1rem;
    font-size: 0.26rem;
    color: #333;
    background: #f5f5f5;
    border-radius: 0.05rem;
}

.pagination a:hover,
.pagination a.current {
    background: #ee5a9a;
    color: #fff;
}

.footer {
    padding: 0.5rem 0;
    text-align: center;
    background: #333;
}

.footer p {
    font-size: 0.24rem;
    color: #fff;
}

.single-page {
    padding: 0 0.3rem;
    background: #fff;
}

/* 面包屑 */
.breadcrumb {
    padding: 0.2rem 0;
    font-size: 0.24rem;
    color: #999;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb a {
    color: #ee5a9a;
}

/* 小说头部 */
.novel-header {
    padding: 0.3rem 0;
}

.novel-header-inner {
    display: flex;
    gap: 0.3rem;
}

/* 封面图（左侧） */
.novel-cover {
    flex-shrink: 0;
    width: 2.8rem;
}

.novel-cover img {
    width: 100%;
    border-radius: 0.1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 信息（右侧） */
.novel-info {
    flex: 1;
}

.novel-title {
    font-size: 0.32rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.15rem;
    line-height: 1.4;
}

/* 元信息 */
.novel-meta {
    margin-bottom: 0.1rem;
}

.novel-meta .meta-row {
    padding: 0.06rem 0;
    font-size: 0.26rem;
    line-height: 1.5;
}

.novel-meta .meta-label {
    color: #999;
}

.novel-meta .meta-value {
    color: #333;
}

.novel-meta .meta-value a {
    color: #ee5a9a;
}

/* 按钮 */
.novel-buttons {
    display: flex;
    gap: 0.2rem;
    padding: 0.2rem 0;
}

.novel-buttons a {
    flex: 1;
    display: block;
    text-align: center;
    padding: 0.2rem 0;
    border-radius: 0.08rem;
    font-size: 0.28rem;
    font-weight: bold;
}

.btn-read {
    background: #ff6b6b;
    color: #fff !important;
}

.btn-full {
    background: #ee5a9a;
    color: #fff !important;
}

/* 通用区块 */
.novel-section {
    padding: 0.3rem 0;
}

.section-title {
    font-size: 0.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.2rem;
    padding-bottom: 0.1rem;
    border-bottom: 2px solid #ee5a9a;
}

/* 目录 */
.chapter-list {
    padding: 0.1rem 0;
}

.chapter-item {
    display: block;
    padding: 0.15rem 0;
    font-size: 0.26rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.chapter-item:last-child {
    border-bottom: none;
}

/* 内容简介 */
.novel-intro p {
    font-size: 0.26rem;
    color: #666;
    line-height: 1.8;
}

/* 精彩节选 */
.novel-excerpt p {
    font-size: 0.26rem;
    color: #555;
    line-height: 1.8;
}

.novel-excerpt img {
    max-width: 100%;
    margin: 0.1rem 0;
}

/* 上下一章 */
.single-nav {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.2rem;
}

.single-nav a {
    font-size: 0.24rem;
    color: #ee5a9a;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-nav a:hover {
    text-decoration: underline;
}

@media (max-width: 750px) {
    html {
        font-size: calc(100vw / 7.5);
        max-width: 100%;
        background-color: #fff;
    }
}

@media (min-width: 99999px) {
    html {
        font-size: 16px;
        max-width: 1200px;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        min-height: 100vh;
    }
    
    body {
        font-size: 16px;
        background-color: #fff;
    }
    
    .header, .nav, .hm_zd, .hm_bj, .hm_jp, .pagination, .single-page {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .nav a {
        font-size: 14px;
    }
    
    .hm_head {
        font-size: 18px;
    }
    
    .zd_item .name, .ne_item .inf dt .nm {
        font-size: 16px;
    }
    
    .ne_item .inf dd {
        font-size: 14px;
    }
    
    .ne_item .inf .zz {
        font-size: 12px;
    }
    
    .pagination a {
        font-size: 14px;
    }
    
    .footer p {
        font-size: 14px;
    }
    
    .ne_item {
        padding: 25px 0;
        gap: 25px;
    }
    
    .item-cover {
        width: 130px;
        height: 180px;
    }
    
    .item-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .item-desc {
        font-size: 15px;
        margin-bottom: 12px;
        line-height: 1.8;
    }
    
    .item-meta {
        font-size: 14px;
        gap: 10px;
    }
}