:root {
    --primary: #ff4757;
    --dark: #2f3542;
    --light: #f1f2f6;
    --paper: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Georgia, serif; }

body { background-color: #f4f4f4; color: #333; }

/* === 主页样式 === */
.navbar { background: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.logo { font-weight: 900; font-size: 20px; color: var(--dark); font-family: sans-serif; }
.logo span { color: var(--primary); }
.nav-menu span { margin-left: 10px; font-size: 12px; color: #777; font-family: sans-serif; display: none; }
@media(min-width: 400px) { .nav-menu span { display: inline-block; } }

.container { max-width: 600px; margin: 0 auto; background: #fff; min-height: 100vh; }
.home-layout { padding: 20px; }

.hero-banner { background: linear-gradient(135deg, #2f3542, #57606f); color: white; padding: 30px 20px; border-radius: 12px; margin-bottom: 30px; text-align: center; }
.badge { background: var(--primary); padding: 3px 8px; border-radius: 4px; font-size: 10px; text-transform: uppercase; font-family: sans-serif; }
.hero-banner h1 { margin: 10px 0; font-family: sans-serif; }
.read-btn { display: inline-block; background: white; color: var(--dark); padding: 10px 25px; border-radius: 20px; text-decoration: none; font-weight: bold; margin-top: 15px; font-family: sans-serif; }

.book-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 15px; }
.book-item { display: flex; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.book-cover { width: 60px; height: 80px; background: #ddd; border-radius: 4px; }
.book-info h4 { margin-bottom: 5px; font-size: 16px; font-family: sans-serif; }
.book-info p { font-size: 12px; color: #666; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* === 推广子页 (Read) 样式 === */
/* 第一屏全屏海报 */
.promo-screen {
    width: 100%;
    height: 100vh; /* 强制占满一屏 */
    background: #000;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.poster-container {
    width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
}

.full-poster {
    width: 100%; height: 100%;
    object-fit: cover; /* 保证图片填满，可能裁剪边缘，但视觉最好 */
    /* 如果不想裁剪，改成 object-fit: contain; 并设置背景色 */
}

.tap-guide {
    position: absolute; bottom: 80px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7); color: white;
    padding: 10px 20px; border-radius: 30px;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    animation: bounce 2s infinite; pointer-events: none;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }

/* 真正的阅读区域 */
.reader-container { max-width: 600px; margin: 0 auto; background: #fffbf0; /* 羊皮纸色 */ }
.reader-nav { position: sticky; top: 0; background: #fff; padding: 10px 15px; display: flex; justify-content: space-between; border-bottom: 1px solid #ddd; font-family: sans-serif; font-size: 14px; color: #666; z-index: 10;}

.novel-text { padding: 25px 20px 60px; }
.novel-text h1 { font-size: 24px; margin-bottom: 5px; color: #2c3e50; }
.meta { font-family: sans-serif; font-size: 12px; color: #999; margin-bottom: 25px; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; }

.story-content p { font-size: 18px; line-height: 1.8; margin-bottom: 20px; color: #2d3436; text-align: justify; }

.native-ad { background: #e3f2fd; padding: 15px; border-radius: 8px; margin: 30px 0; text-align: center; cursor: pointer; border: 1px dashed #2196f3; font-family: sans-serif; }
.native-ad span { color: #2196f3; font-weight: bold; text-decoration: underline; }

.next-chapter-box { margin-top: 30px; text-align: center; }
.next-btn { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; font-size: 18px; font-weight: bold; border-radius: 8px; cursor: pointer; }

/* SEO 文本 */
.seo-content { margin-top: 40px; padding-top: 20px; border-top: 2px solid #f1f2f6; }
.long-text p { font-size: 12px; color: #999; margin-bottom: 10px; line-height: 1.5; }
.footer { text-align: center; padding: 30px; font-size: 11px; color: #aaa; background: #f9f9f9; font-family: sans-serif; }