/*
Theme Name: Simple Theme
Theme URI: https://example.com/simple-theme
Author: Your Name
Author URI: https://example.com
Description: A minimal WordPress theme
Version: 1.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simple-theme
*/
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #fefefe;
            color: #333;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        a {
            text-decoration: none;
            color: #4a6ee0;
            transition: color 0.2s ease;
        }
        
        a:hover {
            color: #2a4bc0;
        }
        
        /* 通用容器 */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* 头部导航 */
        header {
            background-color: #fff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
        }
        
        .logo {
            font-size: 1.4rem;
            font-weight: 600;
            color: #2c3e50;
            display: flex;
            align-items: center;
        }
        
        .logo-icon {
            display: inline-block;
            width: 22px;
            height: 22px;
            background-color: #d32f2f;
            border-radius: 4px;
            margin-right: 8px;
            position: relative;
        }
        
        .logo-icon:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 12px;
            height: 12px;
            background-color: #ffeb3b;
            border-radius: 50%;
        }
        
        /* 搜索框 */
        .search-container {
            flex: 1;
            max-width: 400px;
            margin: 0 20px;
            position: relative;
        }
        
        .search-box {
            position: relative;
            width: 100%;
        }
        
        .search-input {
            width: 100%;
            padding: 8px 15px 8px 40px;
            border-radius: 20px;
            border: 1px solid #e0e0e0;
            background-color: #f8f9fa;
            font-size: 0.9rem;
            color: #333;
            transition: all 0.3s;
        }
        
        .search-input:focus {
            outline: none;
            border-color: #d32f2f;
            background-color: #fff;
            box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1);
        }
        
        .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            font-size: 1rem;
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #5a6c7d;
            cursor: pointer;
            padding: 5px;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav li {
            margin-left: 18px;
        }
        
        nav a {
            color: #5a6c7d;
            font-weight: 500;
            font-size: 0.95rem;
            padding: 5px 0;
            position: relative;
        }
        
        nav a:hover, nav a.active {
            color: #d32f2f;
        }
        
        nav a.active:after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #d32f2f;
        }
        
        /* 主要内容区 */
        main {
            min-height: calc(100vh - 120px);
            padding: 25px 0 40px;
        }
        
        /* 页脚 */
        footer {
            background-color: #fff;
            color: #666;
            padding: 25px 0;
            text-align: center;
            border-top: 1px solid #f0f0f0;
            font-size: 0.9rem;
        }
        
        .footer-content {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .copyright {
            margin-top: 10px;
            font-size: 0.85rem;
            color: #999;
        }
        
        /* 首页样式 */
        .hero {
            background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
            color: white;
            padding: 45px 0;
            text-align: center;
            margin-bottom: 35px;
            border-radius: 8px;
        }
        
        .hero h1 {
            font-size: 2rem;
            margin-bottom: 15px;
            color: white;
            font-weight: 600;
        }
        
        .hero p {
            font-size: 1.05rem;
            max-width: 700px;
            margin: 0 auto 25px;
            color: rgba(255, 255, 255, 0.9);
            padding: 0 15px;
        }
        
        .btn {
            display: inline-block;
            background-color: #fff;
            color: #d32f2f;
            padding: 10px 26px;
            border-radius: 6px;
            font-weight: 500;
            transition: all 0.2s ease;
            border: none;
            cursor: pointer;
            font-size: 0.95rem;
        }
        
        .btn:hover {
            background-color: #f5f5f5;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }
        
        .btn-red {
            background-color: #d32f2f;
            color: white;
        }
        
        .btn-red:hover {
            background-color: #b71c1c;
        }
        
        .featured-books {
            margin-top: 35px;
        }
        
        .section-title {
            font-size: 1.4rem;
            margin-bottom: 20px;
            color: #2c3e50;
            font-weight: 600;
            display: flex;
            align-items: center;
        }
        
        .section-title:before {
            content: '';
            display: inline-block;
            width: 4px;
            height: 18px;
            background-color: #d32f2f;
            margin-right: 10px;
            border-radius: 2px;
        }
        
        .book-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 20px;
        }
        
        .book-card {
            background-color: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
            transition: all 0.3s ease;
            border: 1px solid #f0f0f0;
        }
        
        .book-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            border-color: #ffcdd2;
        }
        
        .book-cover {
            position: relative;
            width: 100%;
            padding-top: 133.33%; /* 3:4 比例 */
            overflow: hidden;
            background-color: #f5f7fa;
        }
        
        .book-cover img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .book-info {
            padding: 14px;
        }
        
        .book-title {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 6px;
            color: #2c3e50;
            line-height: 1.4;
            height: 2.8em;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        
        .book-author {
            color: #777;
            font-size: 0.85rem;
            margin-bottom: 8px;
        }
        
        .book-desc {
            font-size: 0.8rem;
            color: #666;
            line-height: 1.5;
            height: 4.5em;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
        }
        
        /* 搜索结果页样式 */
        .search-page {
            padding-bottom: 20px;
        }
        
        .search-results-header {
            background-color: #fff;
            border-radius: 8px;
            padding: 20px 25px;
            margin-bottom: 25px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
            border: 1px solid #f0f0f0;
        }
        
        .search-results-header h1 {
            font-size: 1.5rem;
            color: #2c3e50;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .search-keyword {
            color: #d32f2f;
            font-weight: 600;
        }
        
        .search-results-count {
            color: #777;
            font-size: 0.95rem;
        }
        
        .search-tabs {
            display: flex;
            margin-bottom: 25px;
            border-bottom: 1px solid #f0f0f0;
            overflow-x: auto;
            white-space: nowrap;
        }
        
        .search-tab {
            padding: 12px 20px;
            font-size: 0.95rem;
            font-weight: 500;
            color: #666;
            border: none;
            background: none;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }
        
        .search-tab:hover {
            color: #d32f2f;
        }
        
        .search-tab.active {
            color: #d32f2f;
            border-bottom: 2px solid #d32f2f;
        }
        
        .search-results-list {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
            border: 1px solid #f0f0f0;
            overflow: hidden;
        }
        
        .search-result-item {
            display: flex;
            padding: 20px;
            border-bottom: 1px solid #f5f5f5;
            align-items: flex-start;
            transition: background-color 0.2s;
        }
        
        .search-result-item:hover {
            background-color: #f9fbfe;
        }
        
        .search-result-item:last-child {
            border-bottom: none;
        }
        
        .search-result-cover {
            flex: 0 0 80px;
            margin-right: 20px;
        }
        
        .search-result-cover img {
            width: 80px;
            height: 106px;
            object-fit: cover;
            border-radius: 4px;
        }
        
        .search-result-info {
            flex: 1;
        }
        
        .search-result-title {
            font-size: 1.1rem;
            color: #2c3e50;
            margin-bottom: 8px;
            font-weight: 600;
        }
        
        .search-result-title a {
            color: #2c3e50;
        }
        
        .search-result-title a:hover {
            color: #d32f2f;
        }
        
        .search-result-meta {
            color: #777;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }
        
        .search-result-desc {
            color: #666;
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 10px;
        }
        
        .search-result-highlight {
            background-color: #ffebee;
            color: #d32f2f;
            padding: 2px 4px;
            border-radius: 3px;
        }
        
        .search-result-stats {
            display: flex;
            gap: 15px;
            font-size: 0.85rem;
            color: #888;
        }
        
        .search-result-stats span {
            display: flex;
            align-items: center;
        }
        
        .search-result-stats svg {
            width: 14px;
            height: 14px;
            margin-right: 4px;
            opacity: 0.7;
        }
        
        .no-results {
            text-align: center;
            padding: 60px 20px;
            color: #777;
        }
        
        .no-results-icon {
            font-size: 3rem;
            margin-bottom: 20px;
            color: #ddd;
        }
        
        .no-results h3 {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: #555;
        }
        
        .no-results p {
            max-width: 500px;
            margin: 0 auto;
        }
        
        /* 小说目录页样式 */
        .book-header {
            display: flex;
            background-color: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
            margin-bottom: 35px;
            border: 1px solid #f0f0f0;
        }
        
        .book-cover-large {
            flex: 0 0 220px;
            position: relative;
            width: 220px;
            height: 293px; /* 3:4 比例 */
            background-color: #f5f7fa;
        }
        
        .book-cover-large img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .book-meta {
            flex: 1;
            padding: 25px;
        }
        
        .book-meta h1 {
            font-size: 1.7rem;
            color: #2c3e50;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .book-meta .author {
            font-size: 0.95rem;
            color: #777;
            margin-bottom: 15px;
        }
        
        .book-meta .description {
            color: #555;
            line-height: 1.7;
            margin-bottom: 20px;
            font-size: 0.95rem;
        }
        
        .book-stats {
            color: #888;
            font-size: 0.85rem;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #f0f0f0;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }
        
        .book-stats span {
            display: flex;
            align-items: center;
        }
        
        .stats-icon {
            width: 15px;
            height: 15px;
            margin-right: 5px;
            opacity: 0.7;
        }
        
        .chapter-container {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
            border: 1px solid #f0f0f0;
            overflow: hidden;
        }
        
        .chapter-list {
            padding: 0;
        }
        
        .chapter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 25px;
            background-color: #f8fafd;
            border-bottom: 1px solid #eaeef5;
        }
        
        .chapter-header h2 {
            font-size: 1.15rem;
            color: #2c3e50;
            font-weight: 600;
        }
        
        .chapter-count {
            color: #777;
            font-size: 0.9rem;
        }
        
        .volume-list {
            padding: 0;
        }
        
        .volume-item {
            border-bottom: 1px solid #f5f5f5;
        }
        
        .volume-item:last-child {
            border-bottom: none;
        }
        
        .volume-title {
            padding: 15px 25px;
            background-color: #fcfdff;
            border-bottom: 1px solid #f0f5ff;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background-color 0.2s;
        }
        
        .volume-title:hover {
            background-color: #f6f9ff;
        }
        
        .volume-name {
            font-size: 1.05rem;
            font-weight: 600;
            color: #2c3e50;
        }
        
        .volume-chapter-count {
            color: #777;
            font-size: 0.85rem;
            background-color: #f0f5ff;
            padding: 3px 8px;
            border-radius: 12px;
        }
        
        .volume-arrow {
            width: 15px;
            height: 15px;
            transition: transform 0.3s;
        }
        
        .volume-arrow.expanded {
            transform: rotate(90deg);
        }
        
        .chapters-in-volume {
            padding: 0 25px;
            display: none;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }
        
        .chapters-in-volume.expanded {
            display: block;
            max-height: 500000px;
        }
        
        .chapter-item {
            padding: 12px 0;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .chapter-item:last-child {
            border-bottom: none;
        }
        
        .chapter-item a {
            display: flex;
            align-items: center;
            font-size: 0.95rem;
            color: #444;
            transition: color 0.2s;
        }
        
        .chapter-item a:hover {
            color: #d32f2f;
        }
        
        .chapter-number {
            display: inline-block;
            width: 22px;
            color: #777;
            font-size: 0.85rem;
            margin-right: 8px;
            text-align: right;
        }
        
        .chapter-name {
            flex: 1;
        }
        
        .chapter-update {
            font-size: 0.8rem;
            color: #999;
            margin-right: 8px;
        }
        
        .read-btn {
            display: inline-block;
            margin-left: 5px;
            padding: 4px 10px;
            background-color: #ffebee;
            color: #d32f2f;
            border-radius: 4px;
            font-size: 0.8rem;
            transition: all 0.2s;
        }
        
        .chapter-item a:hover .read-btn {
            background-color: #d32f2f;
            color: white;
        }
        
        /* 小说阅读页样式 - 优化 */
        .reading-header {
            background-color: #fff;
            padding: 18px 25px;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
            margin-bottom: 25px;
            border: 1px solid #f0f0f0;
        }
        
        .chapter-title {
            font-size: 1.5rem;
            color: #2c3e50;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .book-info-small {
            color: #777;
            font-size: 0.9rem;
        }
        
        .chapter-content {
            background-color: #fff;
            padding: 35px;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
            line-height: 1.8;
            font-size: 1.05rem;
            color: #444;
            border: 1px solid #f0f0f0;
            margin-bottom: 25px;
        }
        
        .chapter-content p {
            margin-bottom: 1.8em;
            text-indent: 2em;
        }
        
        .chapter-nav-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #fff;
            padding: 20px 25px;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
            border: 1px solid #f0f0f0;
        }
        
        .chapter-nav-group {
            display: flex;
            gap: 12px;
        }
        
        .chapter-nav-btn {
            padding: 10px 20px;
            background-color: #f8fafd;
            border-radius: 6px;
            font-weight: 500;
            border: 1px solid #eaeef5;
            font-size: 0.9rem;
            color: #444;
            transition: all 0.2s;
            cursor: pointer;
        }
        
        .chapter-nav-btn:hover {
            background-color: #ffebee;
            border-color: #ffcdd2;
            color: #d32f2f;
        }
        
        .chapter-nav-btn.red {
            background-color: #ffebee;
            color: #d32f2f;
            border-color: #ffcdd2;
        }
        
        .chapter-nav-btn.red:hover {
            background-color: #d32f2f;
            color: white;
        }
        
        .chapter-progress {
            font-size: 0.9rem;
            color: #777;
            text-align: center;
            margin-top: 10px;
        }
        
        /* 作者页样式 */
        .author-header {
            background-color: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
            margin-bottom: 35px;
            border: 1px solid #f0f0f0;
        }
        
        .author-profile {
            display: flex;
            padding: 25px;
        }
        
        .author-avatar {
            flex: 0 0 110px;
            margin-right: 25px;
        }
        
        .author-avatar img {
            width: 100%;
            border-radius: 50%;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border: 4px solid #fff;
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-info h1 {
            font-size: 1.7rem;
            color: #2c3e50;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .author-title {
            color: #777;
            font-size: 0.95rem;
            margin-bottom: 15px;
        }
        
        .author-bio {
            color: #555;
            line-height: 1.7;
            margin-bottom: 20px;
            font-size: 0.95rem;
        }
        
        .author-details p {
            margin-bottom: 8px;
            color: #555;
            font-size: 0.95rem;
        }
        
        .author-books {
            margin-top: 35px;
        }
        
        /* 所有作者页面样式 */
        .authors-page {
            padding-bottom: 20px;
        }
        
        .authors-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .author-card {
            background-color: #fff;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
            border: 1px solid #f0f0f0;
            transition: all 0.3s ease;
            display: flex;
        }
        
        .author-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            border-color: #ffcdd2;
        }
        
        .author-card-avatar {
            flex: 0 0 70px;
            margin-right: 15px;
        }
        
        .author-card-avatar img {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #fff;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        }
        
        .author-card-info {
            flex: 1;
        }
        
        .author-card-info h3 {
            font-size: 1.1rem;
            color: #2c3e50;
            margin-bottom: 5px;
            font-weight: 600;
        }
        
        .author-card-title {
            color: #777;
            font-size: 0.85rem;
            margin-bottom: 8px;
        }
        
        .author-card-bio {
            color: #666;
            font-size: 0.85rem;
            line-height: 1.5;
            margin-bottom: 10px;
            height: 4.5em;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
        }
        
        .author-card-stats {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }
        
        .author-card-stats span {
            font-size: 0.8rem;
            color: #777;
            display: flex;
            align-items: center;
        }
        
        .author-card-stats svg {
            width: 14px;
            height: 14px;
            margin-right: 4px;
            opacity: 0.7;
        }
        
        /* 排行榜页面样式 */
        .rankings-page {
            padding-bottom: 20px;
        }
        
        .rankings-tabs {
            display: flex;
            margin-bottom: 25px;
            border-bottom: 1px solid #f0f0f0;
            overflow-x: auto;
            white-space: nowrap;
        }
        
        .ranking-tab {
            padding: 12px 20px;
            font-size: 0.95rem;
            font-weight: 500;
            color: #666;
            border: none;
            background: none;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }
        
        .ranking-tab:hover {
            color: #d32f2f;
        }
        
        .ranking-tab.active {
            color: #d32f2f;
            border-bottom: 2px solid #d32f2f;
        }
        
        .ranking-list {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
            border: 1px solid #f0f0f0;
            overflow: hidden;
        }
        
        .ranking-item {
            display: flex;
            padding: 15px;
            border-bottom: 1px solid #f5f5f5;
            align-items: center;
            transition: background-color 0.2s;
        }
        
        .ranking-item:hover {
            background-color: #f9fbfe;
        }
        
        .ranking-item:last-child {
            border-bottom: none;
        }
        
        .ranking-rank {
            flex: 0 0 40px;
            text-align: center;
            font-size: 1.1rem;
            font-weight: 600;
            color: #d32f2f;
        }
        
        .ranking-rank.top3 {
            color: #ff6b35;
        }
        
        .ranking-cover {
            flex: 0 0 50px;
            margin-right: 15px;
        }
        
        .ranking-cover img {
            width: 50px;
            height: 66px;
            object-fit: cover;
            border-radius: 4px;
        }
        
        .ranking-info {
            flex: 1;
        }
        
        .ranking-info h3 {
            font-size: 1rem;
            color: #2c3e50;
            margin-bottom: 5px;
            font-weight: 600;
        }
        
        .ranking-author {
            color: #777;
            font-size: 0.85rem;
            margin-bottom: 8px;
        }
        
        .ranking-desc {
            color: #666;
            font-size: 0.85rem;
            line-height: 1.4;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        
        .ranking-stats {
            flex: 0 0 120px;
            text-align: right;
            font-size: 0.9rem;
            color: #777;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }
        
        .ranking-value {
            font-size: 1.1rem;
            font-weight: 600;
            color: #d32f2f;
            margin-bottom: 3px;
        }
        
        .ranking-label {
            font-size: 0.8rem;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .book-header {
                flex-direction: column;
            }
            
            .book-cover-large {
                flex: 0 0 auto;
                width: 100%;
                height: auto;
                padding-top: 133.33%; /* 保持3:4比例 */
            }
            
            .book-cover-large img {
                position: absolute;
                top: 0;
                left: 0;
            }
            
            .author-profile {
                flex-direction: column;
                text-align: center;
            }
            
            .author-avatar {
                margin-right: 0;
                margin-bottom: 20px;
            }
            
            .author-avatar img {
                max-width: 110px;
            }
            
            .authors-list {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            
            .ranking-item {
                padding: 12px;
            }
            
            .ranking-stats {
                flex: 0 0 100px;
            }
        }
        
        @media (max-width: 768px) {
            .header-container {
                padding: 12px;
                flex-wrap: wrap;
            }
            
            .logo {
                order: 1;
            }
            
            .search-container {
                order: 3;
                max-width: 100%;
                margin: 15px 0 0 0;
            }
            
            .mobile-menu-btn {
                order: 2;
                display: block;
            }
            
            nav {
                order: 4;
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: #fff;
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
                border-top: 1px solid #f0f0f0;
                z-index: 99;
            }
            
            nav.active {
                display: block;
            }
            
            nav ul {
                flex-direction: column;
                padding: 10px 0;
            }
            
            nav li {
                margin: 0;
            }
            
            nav a {
                display: block;
                padding: 12px 20px;
                border-bottom: 1px solid #f5f5f5;
            }
            
            nav a.active:after {
                display: none;
            }
            
            nav a.active {
                background-color: #f8fafd;
                border-left: 3px solid #d32f2f;
            }
            
            .hero {
                padding: 35px 20px;
                margin-bottom: 30px;
            }
            
            .hero h1 {
                font-size: 1.7rem;
            }
            
            .hero p {
                font-size: 0.95rem;
            }
            
            .btn {
                padding: 9px 22px;
                font-size: 0.9rem;
            }
            
            .section-title {
                font-size: 1.3rem;
                margin-bottom: 18px;
            }
            
            .book-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 15px;
            }
            
            .chapter-content {
                padding: 25px;
                font-size: 1rem;
            }
            
            .book-meta {
                padding: 20px;
            }
            
            .chapter-header {
                padding: 15px 20px;
            }
            
            .volume-title {
                padding: 12px 20px;
            }
            
            .chapters-in-volume {
                padding: 0 20px;
            }
            
            .authors-list {
                grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
                gap: 15px;
            }
            
            .author-card {
                padding: 15px;
            }
            
            .author-card-avatar {
                flex: 0 0 60px;
                margin-right: 12px;
            }
            
            .author-card-avatar img {
                width: 60px;
                height: 60px;
            }
            
            .ranking-tab {
                padding: 10px 15px;
                font-size: 0.9rem;
            }
            
            .ranking-item {
                flex-wrap: wrap;
            }
            
            .ranking-rank {
                flex: 0 0 35px;
                font-size: 1rem;
            }
            
            .ranking-cover {
                flex: 0 0 45px;
                margin-right: 12px;
            }
            
            .ranking-cover img {
                width: 45px;
                height: 60px;
            }
            
            .ranking-stats {
                flex: 0 0 100%;
                text-align: left;
                margin-top: 8px;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
            }
            
            .ranking-value {
                margin-bottom: 0;
                margin-right: 5px;
            }
            
            .ranking-label {
                font-size: 0.85rem;
            }
            
            .reading-header {
                padding: 15px 20px;
            }
            
            .chapter-nav-bottom {
                flex-direction: column;
                gap: 15px;
                padding: 15px;
            }
            
            .chapter-nav-group {
                width: 100%;
                justify-content: space-between;
            }
            
            .chapter-nav-btn {
                flex: 1;
                text-align: center;
                padding: 10px 15px;
            }
            
            .search-result-item {
                padding: 15px;
                flex-direction: column;
            }
            
            .search-result-cover {
                margin-right: 0;
                margin-bottom: 15px;
            }
            
            .search-result-cover img {
                width: 100%;
                height: auto;
                max-height: 200px;
                object-fit: cover;
            }
            
            .search-tabs {
                margin-bottom: 20px;
            }
            
            .search-tab {
                padding: 10px 15px;
                font-size: 0.9rem;
            }
        }
        
        @media (max-width: 480px) {
            .hero {
                padding: 30px 15px;
                margin-bottom: 25px;
            }
            
            .hero h1 {
                font-size: 1.5rem;
            }
            
            .hero p {
                font-size: 0.9rem;
            }
            
            .book-grid {
                grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
                gap: 12px;
            }
            
            .chapter-content {
                padding: 20px;
            }
            
            .author-profile {
                padding: 20px;
            }
            
            .book-stats {
                flex-direction: column;
                gap: 8px;
            }
            
            .author-card {
                flex-direction: column;
                text-align: center;
            }
            
            .author-card-avatar {
                margin-right: 0;
                margin-bottom: 12px;
            }
            
            .author-card-stats {
                justify-content: center;
            }
            
            .ranking-tabs {
                margin-bottom: 20px;
            }
            
            .ranking-tab {
                padding: 8px 12px;
                font-size: 0.85rem;
            }
            
            .chapter-nav-group {
                flex-direction: column;
                gap: 10px;
            }
            
            .chapter-nav-btn {
                padding: 12px 15px;
            }
            
            .search-results-header {
                padding: 15px;
            }
            
            .search-results-header h1 {
                font-size: 1.3rem;
            }
            
            .search-tabs {
                margin-bottom: 15px;
            }
            
            .search-tab {
                padding: 8px 12px;
                font-size: 0.85rem;
            }
        }