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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    loading: lazy;
}

.portal-carousel-item img,
.portal-book-cover img,
.portal-type-cover img,
.portal-info-cover img,
.portal-author-avatar img,
.portal-author-book img,
.portal-rank-cover img {
    loading: lazy;
}

body,
.portal-carousel-item,
.portal-book-item,
.portal-rank-item,
.portal-type-item,
.portal-info-btn,
.btn-chapter,
.portal-type-btn-info,
.portal-type-btn-read,
a {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.portal-carousel-item,
.portal-book-item,
.portal-rank-item,
.portal-type-item,
.portal-info-btn,
.btn-chapter,
.portal-type-btn-info,
.portal-type-btn-read {
    will-change: transform;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 50%, #e4e8ec 100%);
    color: #333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(240, 147, 251, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: floatBackground 15s ease-in-out infinite;
}

@keyframes floatBackground {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

a:hover {
    color: #667eea;
}

.portal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    flex-wrap: wrap;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 15px 20px;
}

.portal-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.portal-breadcrumb a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
}

.portal-breadcrumb span {
    color: #999;
}

.portal-breadcrumb span:last-child {
    color: #333;
    font-weight: 600;
}

.clearfix::after {
    content: '';
    display: block;
    clear: both;
}

.wm-container {
    width: 1200px;
    margin: 0 auto;
}

.portal-top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.portal-top-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.portal-top-bar .wm-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.portal-top-bar-left span {
    margin-right: 20px;
    font-weight: 500;
}

.portal-top-bar-right a {
    color: #fff;
    margin-left: 20px;
    position: relative;
}

.portal-top-bar-right a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.portal-top-bar-right a:hover::after {
    width: 100%;
}

.portal-header {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15), 0 4px 16px rgba(0,0,0,0.08);
    padding: 30px 0;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.portal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.portal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 33%, #f093fb 66%, #667eea 100%);
    animation: borderShine 4s linear infinite;
    background-size: 200% 100%;
}

@keyframes borderShine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.portal-header .wm-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.portal-logo-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-logo-text {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    transition: all 0.3s ease;
    animation: textGlow 3s ease-in-out infinite;
    position: relative;
}

@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(118, 75, 162, 0.5));
    }
}

.portal-logo-decoration {
    font-size: 28px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2) rotate(15deg);
    }
}

.portal-logo a:hover .portal-logo-text {
    transform: scale(1.08);
    letter-spacing: 2px;
}

.portal-logo-subtitle {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.9;
}

.portal-logo img {
    max-height: 50px;
    margin-right: 10px;
}

.portal-search {
    display: flex;
    width: 500px;
    position: relative;
}

.portal-search::before {
    content: '🔍';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-size: 16px;
}

.portal-search input {
    flex: 1;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 30px 0 0 30px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.portal-search input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.portal-search button {
    padding: 14px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portal-search button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.portal-search button:hover::before {
    left: 100%;
}

.portal-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.portal-hot-words {
    margin-top: 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-hot-words span {
    font-weight: 600;
    color: #666;
}

.portal-hot-words a {
    color: #888;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.portal-hot-words a:hover {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-1px);
}

.portal-search-box {
    flex: 1;
    margin: 0 30px;
}

.portal-login-buttons {
    display: flex;
    gap: 12px;
}

.portal-login-btn,
.portal-register-btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portal-login-btn {
    background: #f0f0f0;
    color: #333;
}

.portal-login-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.portal-register-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.portal-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.portal-nav {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    margin-top: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25), 0 4px 12px rgba(15, 52, 96, 0.3);
    position: relative;
}

.portal-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(240, 147, 251, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.portal-nav ul {
    display: flex;
    list-style: none;
}

.portal-nav li {
    position: relative;
}

.portal-nav a {
    display: block;
    padding: 18px 28px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.portal-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.portal-nav a:hover::before,
.portal-nav li.active a::before {
    width: 100%;
}

.portal-nav a:hover,
.portal-nav li.active a {
    background: rgba(102, 126, 234, 0.2);
}

.portal-nav li:first-child a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portal-nav li:first-child a::before {
    display: none;
}

.portal-main {
    padding: 25px 0 40px;
}

.portal-hero {
    display: flex;
    gap: 24px;
    margin-bottom: 35px;
    align-items: stretch;
    position: relative;
}

.portal-category-left,
.portal-category-right {
    width: 220px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
}

.portal-category-left::before,
.portal-category-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.portal-category-left:hover,
.portal-category-right:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.25), 0 8px 25px rgba(0,0,0,0.12);
}

.portal-category-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 18px 15px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.portal-category-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: slideShine 3s infinite;
}

@keyframes slideShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.portal-category-list {
    padding: 15px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.portal-category-list a {
    display: block;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
    background: #f8f9fc;
    border: 1px solid transparent;
}

.portal-category-list a::before {
    content: '📖';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.portal-category-list a::after {
    content: '→';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
    opacity: 0;
    transition: all 0.3s ease;
    color: #667eea;
    font-weight: bold;
}

.portal-category-list a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(240, 147, 251, 0.12) 100%);
    padding-left: 40px;
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.portal-category-list a:hover::before {
    opacity: 1;
    left: 14px;
}

.portal-category-list a:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.portal-category-list a:last-child {
    border-bottom: none;
}

.portal-carousel {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2), 0 6px 20px rgba(0,0,0,0.12);
    position: relative;
    min-height: 320px;
    display: flex;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.8);
}

.portal-carousel:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3), 0 12px 35px rgba(0,0,0,0.18);
}

.portal-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
}

.portal-carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: block !important;
}

.portal-carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.portal-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block !important;
}

.portal-carousel-item:hover img {
    transform: scale(1.05);
}

.portal-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.9));
    padding: 40px 25px 25px;
    color: #fff;
}

.portal-carousel-caption h3 {
    font-size: 26px;
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    position: relative;
    display: inline-block;
}

.portal-carousel-caption h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #f093fb);
    border-radius: 2px;
}

.portal-carousel-caption p {
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.6;
    margin-top: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.portal-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 65px;
    background: rgba(0,0,0,0.25);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.portal-carousel-nav:hover {
    background: rgba(102, 126, 234, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.portal-carousel-prev {
    left: 15px;
}

.portal-carousel-next {
    right: 15px;
}

.portal-carousel-dots {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.portal-carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.portal-carousel-dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.15);
}

.portal-carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.portal-section {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 18px;
    margin-bottom: 35px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15), 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.95);
    position: relative;
}

.portal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 0%, rgba(102, 126, 234, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 90% 100%, rgba(240, 147, 251, 0.05) 0%, transparent 45%);
    pointer-events: none;
}

.portal-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 60px rgba(102, 126, 234, 0.25), 0 10px 30px rgba(0,0,0,0.15);
}

.portal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #667eea;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    position: relative;
}

.portal-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
}

.portal-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #2c3e50;
    position: relative;
    padding-left: 50px;
    display: flex;
    align-items: center;
}

.portal-section-title::before {
    content: '📚';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    animation: bookFloat 2s ease-in-out infinite;
}

@keyframes bookFloat {
    0%, 100% {
        transform: translateY(-50%) rotate(-5deg);
    }
    50% {
        transform: translateY(-50%) rotate(5deg);
    }
}

.portal-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.portal-section-more {
    color: #667eea;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.portal-section-more:hover {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.portal-section-body {
    padding: 25px;
}

.portal-book-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.portal-book-item {
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.portal-book-item:nth-child(1) { animation-delay: 0.1s; }
.portal-book-item:nth-child(2) { animation-delay: 0.2s; }
.portal-book-item:nth-child(3) { animation-delay: 0.3s; }
.portal-book-item:nth-child(4) { animation-delay: 0.4s; }
.portal-book-item:nth-child(5) { animation-delay: 0.5s; }
.portal-book-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-book-item:hover {
    transform: translateY(-12px) scale(1.02);
}

.portal-book-cover {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.portal-book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(240, 147, 251, 0.15));
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.portal-book-cover::after {
    content: '🔥 Đọc ngay';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5), 0 0 30px rgba(240, 147, 251, 0.3);
}

.portal-book-item:hover .portal-book-cover::before {
    opacity: 1;
}

.portal-book-item:hover .portal-book-cover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portal-book-item:hover .portal-book-cover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4), 0 8px 20px rgba(0,0,0,0.15);
}

.portal-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portal-book-item:hover .portal-book-cover img {
    transform: scale(1.12);
}

.portal-book-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.portal-book-item:hover .portal-book-title {
    color: #667eea;
}

.portal-book-author {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.portal-two-col {
    display: flex;
    gap: 25px;
}

.portal-col-main {
    flex: 1;
}

.portal-col-side {
    width: 320px;
}

.portal-rank-item {
    display: flex;
    align-items: center;
    padding: 18px 12px;
    border-bottom: 1px solid rgba(240, 240, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    margin: 5px 0;
    position: relative;
    overflow: hidden;
}

.portal-rank-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.portal-rank-item:hover::before {
    transform: scaleY(1);
}

.portal-rank-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(240, 147, 251, 0.08) 100%);
    transform: translateX(8px) scale(1.01);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

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

.portal-rank-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #666;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.portal-rank-item:nth-child(1) .portal-rank-num {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 50%, #ff9500 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.2);
    animation: goldPulse 2s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.7), 0 0 40px rgba(255, 215, 0, 0.4);
    }
}

.portal-rank-item:nth-child(2) .portal-rank-num {
    background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 50%, #a8a8a8 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(192, 192, 192, 0.5), 0 0 25px rgba(192, 192, 192, 0.2);
}

.portal-rank-item:nth-child(3) .portal-rank-num {
    background: linear-gradient(135deg, #e6a23c 0%, #cd7f32 50%, #b8860b 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(205, 127, 50, 0.5), 0 0 25px rgba(205, 127, 50, 0.2);
}

.portal-rank-info {
    flex: 1;
}

.portal-rank-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-rank-author {
    font-size: 12px;
    color: #999;
}

.portal-rank-hits {
    font-size: 12px;
    color: #e74c3c;
}

.portal-update-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-update-table th,
.portal-update-table td {
    padding: 12px 8px;
    text-align: left;
    font-size: 13px;
}

.portal-update-table th {
    background: #f8f9fa;
    color: #666;
    font-weight: 500;
}

.portal-update-table tr:nth-child(even) {
    background: #fafafa;
}

.portal-update-table tr:hover {
    background: #f0f7ff;
}

.portal-update-table .portal-update-category {
    color: #667eea;
    font-weight: 500;
}

.portal-update-table .portal-update-chapter {
    color: #333;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-update-table .portal-update-time {
    color: #999;
}

.portal-footer {
    background: #2c3e50;
    color: #999;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.portal-footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid #3d4f63;
}

.portal-footer-col {
    width: 23%;
}

.portal-footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.portal-footer-col ul {
    list-style: none;
}

.portal-footer-col li {
    margin-bottom: 10px;
}

.portal-footer-col a {
    color: #999;
    font-size: 13px;
}

.portal-footer-col a:hover {
    color: #667eea;
}

.portal-footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
}

.portal-footer-bottom p {
    margin-bottom: 8px;
}

.portal-type-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.15);
}

.portal-type-result {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.portal-type-result em {
    color: #667eea;
    font-weight: 800;
    font-style: normal;
    font-size: 18px;
}

.portal-type-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.portal-type-pagination a,
.portal-type-pagination span {
    padding: 10px 16px;
    font-size: 14px;
    color: #666;
    background: linear-gradient(135deg, #f8f9fc 0%, #f0f0f0 100%);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    border: 1px solid transparent;
}

.portal-type-pagination a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.portal-type-pagination span.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.portal-type-list {
    margin-bottom: 30px;
}

.portal-type-item {
    display: flex;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.portal-type-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 0%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portal-type-item:hover::before {
    opacity: 1;
}

.portal-type-item:hover {
    transform: translateY(-6px) translateX(3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25), 0 8px 20px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.portal-type-cover {
    width: 130px;
    height: 175px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 24px;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.portal-type-cover::after {
    content: '📚';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 32px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.portal-type-item:hover .portal-type-cover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portal-type-item:hover .portal-type-cover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.35);
}

.portal-type-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portal-type-item:hover .portal-type-cover img {
    transform: scale(1.12);
}

.portal-type-info-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portal-type-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.portal-type-title a {
    color: #2c3e50;
    font-weight: 800;
    transition: color 0.3s ease;
    position: relative;
}

.portal-type-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #f093fb);
    transition: width 0.3s ease;
}

.portal-type-title a:hover {
    color: #667eea;
}

.portal-type-title a:hover::after {
    width: 100%;
}

.portal-type-author {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.portal-type-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.portal-type-meta span {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.portal-type-meta .portal-type-category a {
    color: #667eea;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.portal-type-meta .portal-type-category a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.portal-type-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 18px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.portal-type-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.portal-type-btn-info,
.portal-type-btn-read {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    border: none;
}

.portal-type-btn-info {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #555;
}

.portal-type-btn-info:hover {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.portal-type-btn-read {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.portal-type-btn-read:hover {
    transform: translateY(-3px) scale(1.05);
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
}

@media (max-width: 768px) {
    .portal-type-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .portal-type-item {
        flex-direction: column;
        padding: 18px;
    }
    
    .portal-type-cover {
        width: 100%;
        height: 220px;
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .portal-type-title {
        font-size: 18px;
    }
    
    .portal-type-meta {
        gap: 12px;
    }
    
    .portal-type-actions {
        width: 100%;
    }
    
    .portal-type-btn-info,
    .portal-type-btn-read {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .portal-type-item {
        padding: 15px;
    }
    
    .portal-type-cover {
        height: 200px;
    }
    
    .portal-type-title {
        font-size: 16px;
    }
    
    .portal-type-pagination a,
    .portal-type-pagination span {
        padding: 8px 12px;
        font-size: 13px;
    }
}

.read-container {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15), 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.95);
    position: relative;
    overflow: hidden;
}

.read-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 0%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 100%, rgba(240, 147, 251, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.chapter-title {
    text-align: center;
    border-bottom: 3px solid rgba(102, 126, 234, 0.2);
    padding-bottom: 25px;
    margin-bottom: 30px;
    position: relative;
}

.chapter-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 2px;
}

.chapter-title h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chapter-info {
    font-size: 14px;
    color: #888;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.chapter-info span {
    font-weight: 500;
}

.chapter-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-chapter {
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-chapter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-chapter:hover::before {
    left: 100%;
}

.btn-chapter:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.read-content {
    line-height: 2;
    font-size: 18px;
    color: #333;
    padding: 30px;
    min-height: 400px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.read-content p {
    margin-bottom: 24px;
    text-indent: 2em;
    transition: all 0.3s ease;
}

.read-content p:hover {
    color: #2c3e50;
}

.bottom-nav {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(102, 126, 234, 0.15);
}

@media (max-width: 768px) {
    .read-container {
        padding: 25px 20px;
    }
    
    .chapter-title h1 {
        font-size: 22px;
    }
    
    .chapter-info {
        gap: 12px;
    }
    
    .read-content {
        font-size: 16px;
        padding: 20px 15px;
    }
    
    .chapter-nav {
        gap: 10px;
    }
    
    .btn-chapter {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .read-container {
        padding: 20px 15px;
    }
    
    .chapter-title h1 {
        font-size: 20px;
    }
    
    .read-content {
        font-size: 15px;
        padding: 15px 10px;
    }
    
    .read-content p {
        margin-bottom: 18px;
    }
    
    .chapter-nav {
        gap: 8px;
    }
    
    .btn-chapter {
        padding: 8px 16px;
        font-size: 12px;
        flex: 1;
        text-align: center;
    }
}

.portal-info-main {
    display: flex;
    gap: 40px;
    padding: 10px;
}

.portal-info-cover {
    width: 240px;
    flex-shrink: 0;
    position: relative;
}

.portal-info-cover img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portal-info-cover:hover img {
    transform: scale(1.05);
    box-shadow: 0 18px 45px rgba(102, 126, 234, 0.3);
}

.portal-info-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    }
}

.portal-info-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portal-info-title {
    font-size: 32px;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portal-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
    font-size: 15px;
    color: #666;
}

.portal-info-meta a {
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portal-info-meta a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.portal-info-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fc 0%, #f0f4f8 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.portal-info-stat {
    text-align: center;
    flex: 1;
}

.portal-info-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.portal-info-stat span {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.portal-info-rating {
    margin-bottom: 20px;
    font-size: 15px;
    color: #666;
}

.portal-info-rating strong {
    color: #f39c12;
    font-size: 20px;
    font-weight: 800;
}

.portal-info-tags {
    margin-bottom: 25px;
    font-size: 15px;
}

.portal-info-tags span {
    color: #666;
    margin-right: 12px;
    font-weight: 500;
}

.portal-info-tags a {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    color: #666;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.portal-info-tags a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.portal-info-desc {
    margin-bottom: 30px;
}

.portal-info-desc h3 {
    font-size: 18px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-info-desc h3::before {
    content: '📖';
}

.portal-info-desc p {
    font-size: 15px;
    color: #666;
    line-height: 1.9;
}

.portal-info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.portal-info-btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.portal-info-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.portal-info-btn:hover::before {
    left: 100%;
}

.portal-info-btn-read {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.portal-info-btn-read:hover {
    transform: translateY(-3px) scale(1.05);
    color: #fff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.portal-info-btn-collect {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    color: #666;
}

.portal-info-btn-collect:hover,
.portal-info-btn-collect.portal-info-btn-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.portal-info-btn-rec {
    background: linear-gradient(135deg, #fff3cd 0%, #ffc107 100%);
    color: #856404;
    border: 1px solid #ffc107;
}

.portal-info-btn-rec:hover {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.portal-info-btn-txt {
    background: linear-gradient(135deg, #d1ecf1 0%, #17a2b8 100%);
    color: #0c5460;
    border: 1px solid #17a2b8;
}

.portal-info-btn-txt:hover {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.portal-info-latest {
    font-size: 15px;
    color: #666;
}

.portal-info-latest a {
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portal-info-latest a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.portal-chapter-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.portal-chapter-item {
    padding: 0;
}

.portal-chapter-item a {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    color: #666;
    background: linear-gradient(135deg, #f8f9fc 0%, #f0f4f8 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    border: 1px solid transparent;
}

.portal-chapter-item a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.2);
}

.portal-info-more {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(102, 126, 234, 0.15);
}

.portal-info-more a {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    color: #666;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.portal-info-more a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.portal-author-info {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.portal-author-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    position: relative;
}

.portal-author-avatar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    z-index: -1;
}

.portal-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    transition: all 0.3s ease;
}

.portal-author-avatar:hover img {
    transform: scale(1.1);
}

.portal-author-detail h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.portal-author-detail h4 a {
    color: #2c3e50;
    transition: all 0.3s ease;
}

.portal-author-detail h4 a:hover {
    color: #667eea;
}

.portal-author-detail p {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.portal-author-notice {
    padding: 20px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-radius: 12px;
    border-left: 5px solid #ffc107;
    margin-bottom: 20px;
}

.portal-author-notice h4 {
    font-size: 16px;
    font-weight: 800;
    color: #856404;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-author-notice h4::before {
    content: '📢';
}

.portal-author-notice p {
    font-size: 14px;
    color: #856404;
    line-height: 1.7;
}

.portal-author-books {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.portal-author-book {
    text-align: center;
    transition: all 0.3s ease;
}

.portal-author-book:hover {
    transform: translateY(-5px);
}

.portal-author-book img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.portal-author-book:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.portal-author-book h5 {
    font-size: 14px;
    font-weight: 600;
}

.portal-author-book h5 a {
    color: #2c3e50;
    transition: all 0.3s ease;
}

.portal-author-book h5 a:hover {
    color: #667eea;
}

@media (max-width: 992px) {
    .portal-info-main {
        flex-direction: column;
        gap: 30px;
    }
    
    .portal-info-cover {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .portal-chapter-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portal-info-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .portal-info-stat {
        min-width: 120px;
    }
    
    .portal-info-actions {
        justify-content: center;
    }
    
    .portal-info-btn {
        flex: 1;
        min-width: 140px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .portal-info-title {
        font-size: 24px;
    }
    
    .portal-info-meta {
        gap: 15px;
    }
    
    .portal-chapter-list {
        grid-template-columns: 1fr;
    }
    
    .portal-author-books {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .wm-container {
        width: 95%;
        padding: 0 15px;
    }
    
    .portal-book-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .portal-hero {
        flex-direction: column;
    }
    
    .portal-category-left,
    .portal-category-right {
        width: 100%;
    }
    
    .portal-category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .portal-category-list a {
        margin: 0;
        text-align: center;
    }
    
    .portal-book-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .portal-two-col {
        flex-direction: column;
    }
    
    .portal-col-side {
        width: 100%;
    }
    
    .portal-search {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .portal-top-bar {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .portal-top-bar .wm-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .portal-header {
        padding: 20px 0;
    }
    
    .portal-header .wm-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .portal-logo {
        text-align: center;
    }
    
    .portal-logo a {
        align-items: center;
    }
    
    .portal-logo-text {
        font-size: 28px;
    }
    
    .portal-logo-decoration {
        font-size: 22px;
    }
    
    .portal-logo-subtitle {
        font-size: 12px;
        text-align: center;
    }
    
    .portal-search-box {
        width: 100%;
        margin: 0;
    }
    
    .portal-search {
        width: 100%;
    }
    
    .portal-hot-words {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .portal-login-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .portal-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .portal-nav a {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .portal-category-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .portal-category-list a {
        font-size: 12px;
        padding: 10px 8px;
        text-align: center;
    }
    
    .portal-book-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .portal-section-header {
    padding: 15px 20px;
}

.portal-section-title {
    font-size: 18px;
    padding-left: 40px;
}

.portal-section-title::before {
    font-size: 20px;
}

.portal-section-title::after {
    width: 40px;
}

.portal-section-body {
    padding: 20px 15px;
}
    
    .portal-carousel {
        min-height: 220px;
    }
    
    .portal-carousel-inner {
        height: 220px;
        min-height: 220px;
    }
    
    .portal-carousel-caption h3 {
        font-size: 18px;
    }
    
    .portal-carousel-caption h3::after {
        width: 40px;
    }
    
    .portal-carousel-caption p {
        font-size: 12px;
        margin-top: 10px;
    }
    
    .portal-carousel-nav {
        width: 38px;
        height: 50px;
        font-size: 20px;
    }
    
    .portal-rank-item {
        padding: 12px 8px;
    }
    
    .portal-rank-num {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .portal-rank-title {
        font-size: 13px;
    }
    
    .portal-rank-author {
        font-size: 11px;
    }
    
    .portal-update-table th,
    .portal-update-table td {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .portal-update-table th:nth-child(4),
    .portal-update-table td:nth-child(4),
    .portal-update-table th:nth-child(5),
    .portal-update-table td:nth-child(5) {
        display: none;
    }
    
    .portal-footer-top {
        flex-wrap: wrap;
        gap: 25px;
    }
    
    .portal-footer-col {
        width: 45%;
    }
}

@media (max-width: 576px) {
    .portal-book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .portal-category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .portal-logo-text {
        font-size: 24px;
    }
    
    .portal-search input {
        padding: 12px 12px 12px 40px;
        font-size: 14px;
    }
    
    .portal-search button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .portal-login-btn,
    .portal-register-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .portal-nav a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .portal-carousel {
        min-height: 200px;
        border-radius: 12px;
    }
    
    .portal-carousel-inner {
        height: 200px;
        min-height: 200px;
    }
    
    .portal-carousel-caption h3 {
        font-size: 16px;
    }
    
    .portal-carousel-caption h3::after {
        width: 30px;
        height: 2px;
    }
    
    .portal-carousel-caption p {
        font-size: 11px;
        margin-top: 8px;
    }
    
    .portal-carousel-dots {
        bottom: 70px;
    }
    
    .portal-carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .portal-section {
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .portal-section-header {
    padding: 12px 15px;
}

.portal-section-title {
    font-size: 16px;
    padding-left: 35px;
}

.portal-section-title::before {
    font-size: 18px;
}

.portal-section-title::after {
    width: 35px;
}

.portal-section-more {
    font-size: 13px;
    padding: 6px 15px;
}

.portal-book-item {
    animation: none;
    opacity: 1;
}

.portal-book-cover {
    border-radius: 8px;
    margin-bottom: 10px;
}

.portal-book-title {
    font-size: 14px;
}

.portal-book-author {
    font-size: 12px;
}

.portal-book-cover::after {
    font-size: 11px;
    padding: 8px 18px;
}
    
    .portal-category-left,
    .portal-category-right {
        border-radius: 12px;
    }
    
    .portal-category-title {
        padding: 14px 12px;
        font-size: 15px;
    }
    
    .portal-category-list a {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .portal-update-table th:nth-child(1),
    .portal-update-table td:nth-child(1) {
        display: none;
    }
    
    .portal-footer {
        padding: 30px 0 15px;
        margin-top: 30px;
    }
    
    .portal-footer-top {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 20px;
    }
    
    .portal-footer-col {
        width: 100%;
        text-align: center;
    }
    
    .portal-footer-col h4 {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .portal-footer-col li {
        margin-bottom: 8px;
    }
    
    .portal-footer-bottom {
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    .portal-book-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .portal-logo-text {
        font-size: 22px;
    }
    
    .portal-nav a {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .portal-carousel {
        min-height: 180px;
    }
}
