/* =====================================================
   首页炫酷样式 - 小说主题版
   ===================================================== */

/* Hero区域 */
.home-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-2v2h2v4h2v-4h2v-2h-2zm0-30V0h-2v4h-2v2h2v4h2V6h2V4h-2zM6 34v-4H4v4H2v2h2v4h2v-4h2v-2H6zM6 4V0H4v4H2v2h2v4h2V6h2V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-title {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}
.hero-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #e94560, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.hero-title p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

/* 小说卡片网格 */
.novel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 992px) {
    .novel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .novel-grid { grid-template-columns: 1fr; }
    .hero-title h1 { font-size: 1.8rem; }
}

.novel-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}
.novel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(233, 69, 96, 0.3);
    border-color: rgba(233, 69, 96, 0.5);
}
.novel-card .cover {
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.novel-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.novel-card:hover .cover img {
    transform: scale(1.1);
}
.novel-card .cover::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.novel-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}
.novel-card .info {
    padding: 16px;
    color: #fff;
}
.novel-card .title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.novel-card .title a {
    color: #fff;
}
.novel-card .title a:hover {
    color: #e94560;
}
.novel-card .meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}
.novel-card .summary {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}
.novel-card .stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.novel-card .stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 主内容区 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding: 30px 0;
}
@media (max-width: 992px) {
    .main-content { grid-template-columns: 1fr; }
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 登录框 */
.login-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.login-box .sidebar-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.2);
}
.login-box input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 12px;
    transition: all 0.3s;
}
.login-box input::placeholder {
    color: rgba(255,255,255,0.7);
}
.login-box input:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    outline: none;
}
.login-box .btn-login {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}
.login-box .btn-login:hover {
    transform: scale(1.02);
}
.login-box .register-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}
.login-box .register-link a {
    color: #fff;
    font-weight: 600;
}

/* 用户信息框 */
.user-box {
    text-align: center;
}
.user-box .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 12px;
}
.user-box .nickname {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.user-box .points {
    color: #e94560;
    font-weight: 700;
    font-size: 1.2rem;
}
.user-box .points-label {
    color: #999;
    font-size: 13px;
}
.user-box .actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.user-box .actions a {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s;
}
.user-box .actions .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}
.user-box .actions .btn-secondary {
    background: #f5f5f5;
    color: #666;
}

/* 热榜 */
.hot-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hot-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}
.hot-item:hover {
    background: #f8f8f8;
}
.hot-item .rank {
    min-width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f0f0f0;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hot-item .rank.top {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
}
.hot-item .title {
    flex: 1;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-item:hover .title {
    color: #e94560;
}

/* 快捷入口 */
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.quick-links a {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    color: #fff;
    transition: transform 0.2s;
    text-decoration: none;
}
.quick-links a:hover {
    transform: scale(1.03);
}
.quick-links a:nth-child(1) { background: linear-gradient(135deg, #667eea, #764ba2); }
.quick-links a:nth-child(2) { background: linear-gradient(135deg, #f093fb, #f5576c); }
.quick-links a:nth-child(3) { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.quick-links a:nth-child(4) { background: linear-gradient(135deg, #43e97b, #38f9d7); }

/* 文章和产品区域 */
.content-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-header a {
    font-size: 13px;
    color: #999;
}
.section-header a:hover {
    color: #e94560;
}

/* 文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .article-grid { grid-template-columns: 1fr; }
}
.article-card {
    border-radius: 10px;
    overflow: hidden;
    background: #f9f9f9;
    transition: all 0.2s;
}
.article-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.article-card .cover {
    height: 100px;
    overflow: hidden;
}
.article-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card .info {
    padding: 12px;
}
.article-card .title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card .title a {
    color: #333;
}
.article-card .title a:hover {
    color: #e94560;
}
.article-card .meta {
    font-size: 12px;
    color: #999;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
.product-card {
    border-radius: 10px;
    overflow: hidden;
    background: #f9f9f9;
    text-align: center;
    transition: all 0.2s;
}
.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.product-card .cover {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.product-card .cover img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.product-card .info {
    padding: 10px;
}
.product-card .name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}
.product-card .points {
    font-size: 12px;
    color: #e94560;
    font-weight: 600;
}

/* 轮播图 */
.banner-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
}
@media (max-width: 768px) {
    .banner-slider { height: 200px; }
}
.banner-slider .slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 0.5s;
}
.banner-slider .slide.active {
    opacity: 1;
}
.banner-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-slider .slide-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.banner-slider .slide-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}