/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-x: hidden;
    position: relative;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-text .brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    display: block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text .brand-subtitle {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    transform: translateY(-3px);
}

.nav-link i {
    font-size: 1.2rem;
}

.nav-link span {
    font-size: 0.9rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.search-input {
    background: transparent;
    border: none;
    color: #333;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff6b6b;
}

.username {
    font-weight: 500;
    color: #333;
}

/* 主要内容 */
.main-content {
    margin-top: 80px;
}

/* 首页英雄区域 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #ffa726;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-main {
    font-size: 4rem;
    font-weight: 800;
    display: block;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #ffa726 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    font-size: 1.5rem;
    font-weight: 400;
    display: block;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: #ffa726;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-visual {
    position: relative;
    height: 600px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    width: 200px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.card-1 {
    top: 10%;
    left: 10%;
    animation: floatCard1 6s ease-in-out infinite;
}

.card-2 {
    top: 40%;
    right: 20%;
    animation: floatCard2 8s ease-in-out infinite;
}

.card-3 {
    bottom: 20%;
    left: 30%;
    animation: floatCard3 7s ease-in-out infinite;
}

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

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

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

.floating-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.card-info {
    padding: 1rem;
    color: #333;
}

.card-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.card-info p {
    font-size: 0.8rem;
    color: #666;
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 4rem 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title i {
    color: #ffa726;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* 动漫分类 */
.anime-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.anime-categories {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
}

.category-tab.active,
.category-tab:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.anime-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

.anime-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.anime-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.anime-poster {
    position: relative;
    overflow: hidden;
}

.anime-poster img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.anime-card:hover .anime-poster img {
    transform: scale(1.1);
}

.anime-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.anime-card:hover .anime-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.anime-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.anime-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.anime-badge.hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.anime-badge.new {
    background: linear-gradient(135deg, #00d4aa 0%, #00a085 100%);
}

.anime-badge.complete {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
}

.anime-badge.movie {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.anime-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.anime-rating i {
    color: #ffa726;
}

.anime-info {
    padding: 1.5rem;
    color: #333;
}

.anime-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.anime-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.anime-meta {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.anime-genre {
    background: #f8f9fa;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

.anime-status {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.anime-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
}

.stat i {
    color: #ff6b6b;
}

/* 漫画专区 */
.manga-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.manga-showcase {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.showcase-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    border-color: transparent;
    transform: translateY(-2px);
}

.manga-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.manga-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

.manga-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.manga-cover {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.manga-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.manga-item:hover .manga-cover img {
    transform: scale(1.1);
}

.manga-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.manga-item:hover .manga-overlay {
    opacity: 1;
}

.manga-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.read-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.read-btn:hover {
    transform: scale(1.05);
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
}

.manga-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.manga-badge.trending {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.manga-badge.new {
    background: linear-gradient(135deg, #00d4aa 0%, #00a085 100%);
}

.manga-badge.complete {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
}

.manga-badge.update {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.manga-details {
    padding: 1.5rem;
    color: #333;
}

.manga-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.manga-author {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.manga-summary {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.manga-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.manga-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

/* 社区互动 */
.community-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.community-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.community-topics {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.topic-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.topic-tab {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topic-tab.active,
.topic-tab:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.topic-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.topic-item:hover {
    background: white;
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #ff6b6b;
}

.topic-avatar {
    position: relative;
    flex-shrink: 0;
}

.topic-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff6b6b;
}

.user-level {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.topic-content {
    flex: 1;
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    gap: 1rem;
}

.topic-title {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
}

.topic-tags {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.tag.hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.tag.recommend {
    background: linear-gradient(135deg, #00d4aa 0%, #00a085 100%);
    color: white;
}

.tag.fanart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.topic-preview {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.topic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

.topic-author {
    font-weight: 500;
    color: #333;
}

.topic-stats {
    display: flex;
    gap: 1rem;
}

.topic-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.topic-stats .stat i {
    color: #ff6b6b;
}

/* 排行榜 */
.ranking-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.ranking-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.ranking-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ranking-tab.active,
.ranking-tab:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    border-color: transparent;
    transform: translateY(-2px);
}

.ranking-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.ranking-list {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.list-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 600;
}

.list-title i {
    color: #ff6b6b;
}

.ranking-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.ranking-item:hover {
    background: white;
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #ff6b6b;
}

.ranking-item.top-rank {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #ff6b6b;
}

.rank-medal {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    position: relative;
    flex-shrink: 0;
}

.rank-medal.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
}

.rank-medal i {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.rank-medal span {
    font-size: 0.8rem;
}

.rank-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.item-poster {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.item-subtitle {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.item-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.rank-trend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.rank-trend.up {
    color: #00d4aa;
}

.rank-trend.down {
    color: #ff6b6b;
}

.rank-trend.stable {
    color: #666;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.9);
    color: #ccc;
    padding: 4rem 0 2rem;
    backdrop-filter: blur(20px);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    color: #ccc;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
}

.footer-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #999;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: #ff6b6b;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    color: white;
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .anime-card.featured {
        grid-column: span 1;
        display: block;
    }
    
    .title-main {
        font-size: 3rem;
    }
    
    .ranking-lists {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .search-box {
        width: 150px;
    }
    
    .search-input {
        width: 100px;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }
    
    .anime-grid,
    .manga-masonry {
        grid-template-columns: 1fr;
    }
    
    .category-tabs,
    .showcase-filters,
    .ranking-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .topic-item {
        flex-direction: column;
        text-align: center;
    }
    
    .topic-header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ee5a24 0%, #ff9800 100%);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 107, 0.3);
    border-top: 3px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}