:root {
    --primary: #ff6b9d;
    --primary-dark: #e85a8a;
    --primary-light: #ff8fb3;
    --secondary: #7c5cff;
    --accent: #00d4aa;
    --bg-dark: #0a0a0f;
    --bg-main: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #222230;
    --text-white: #ffffff;
    --text-light: #e0e0e8;
    --text-gray: #9090a0;
    --text-muted: #606070;
    --border: #2a2a3a;
    --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #c44dff 100%);
    --gradient-hot: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --gradient-new: linear-gradient(135deg, #00d4aa 0%, #00b4d8 100%);
    --gradient-end: linear-gradient(135deg, #7c5cff 0%, #a855f7 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: var(--bg-main);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-login {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
    padding: 8px 20px;
}

.btn-login:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-register {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 8px 20px;
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 32px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    flex: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-white);
    background: rgba(255, 107, 157, 0.1);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(255, 107, 157, 0.15);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-input {
    width: 200px;
    padding: 10px 40px 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    color: var(--text-light);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.header-search-input:focus {
    border-color: var(--primary);
    width: 240px;
}

.header-search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

.main {
    padding-top: 72px;
}

.hero-section {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(124, 92, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 520px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-carousel {
    position: relative;
}

.carousel-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-track {
    position: relative;
    aspect-ratio: 16/10;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 30px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.slide-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.slide-overlay h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.slide-overlay p {
    font-size: 14px;
    color: var(--text-gray);
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    font-size: 28px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
}

.title-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-left: 8px;
}

.view-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.view-more:hover {
    color: var(--primary);
    background: rgba(255, 107, 157, 0.1);
}

.view-more span {
    transition: transform 0.3s ease;
}

.view-more:hover span {
    transform: translateX(4px);
}

.manga-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.manga-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.manga-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
}

.card-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

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

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

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-hot {
    background: var(--gradient-hot);
    color: var(--text-white);
}

.badge-new {
    background: var(--gradient-new);
    color: var(--text-white);
}

.badge-end {
    background: var(--gradient-end);
    color: var(--text-white);
}

.card-update {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 14px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.card-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: var(--transition);
}

.manga-card:hover .card-hover {
    opacity: 1;
}

.read-btn {
    padding: 12px 28px;
    background: var(--gradient-primary);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    transform: translateY(10px);
    transition: var(--transition);
}

.manga-card:hover .read-btn {
    transform: translateY(0);
}

.card-info {
    padding: 16px;
}

.card-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}

.manga-card:hover .card-info h3 {
    color: var(--primary);
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.card-meta .author {
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta .genre {
    color: var(--text-gray);
}

.hot-series {
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-dark) 100%);
}

.romance-zone {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-main) 100%);
}

.ranking-section {
    padding: 60px 0;
    background: var(--bg-dark);
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.ranking-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
}

.ranking-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.ranking-icon {
    font-size: 24px;
}

.ranking-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.ranking-item:hover {
    background: var(--bg-card-hover);
}

.rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-hover);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-gray);
}

.rank-1 {
    background: var(--gradient-hot);
    color: var(--text-white);
}

.rank-2 {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.rank-3 {
    background: var(--gradient-end);
    color: var(--text-white);
}

.ranking-item a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rank-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.ranking-item:hover .rank-title {
    color: var(--primary);
}

.rank-heat,
.rank-score {
    font-size: 13px;
    color: var(--text-muted);
}

.news-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-main) 100%);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.news-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateX(8px);
}

.news-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.news-item-content {
    flex: 1;
    min-width: 0;
}

.news-item-content > * {
    margin-right: 12px;
}

.news-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-badge-new {
    background: var(--gradient-new);
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 12px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.news-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin: 10px 0 6px;
    line-height: 1.5;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item:hover h3 {
    color: var(--primary);
}

.news-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}

.news-list-page {
    padding: 80px 0;
    background: var(--bg-dark);
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-gray);
}

.news-list-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-list-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
    transition: var(--transition);
}

.news-list-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.news-list-item a {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.news-item-main {
    flex: 1;
}

.news-item-main h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    margin: 10px 0 8px;
    line-height: 1.5;
    transition: var(--transition);
}

.news-list-item:hover .news-item-main h2 {
    color: var(--primary);
}

.news-item-main p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.news-item-meta .news-category {
    margin-bottom: 0;
}

.news-item-meta .news-date {
    font-size: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
}

.pagination-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-gray);
    transition: var(--transition);
}

.pagination-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-current {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    color: var(--text-white);
    font-weight: 600;
}

.pagination-page {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    border-radius: var(--radius);
    transition: var(--transition);
}

.pagination-page:hover {
    color: var(--primary);
    background: var(--bg-card);
}

.pagination-dots {
    color: var(--text-muted);
}

.news-detail-page {
    padding: 80px 0;
    background: var(--bg-dark);
}

.news-detail {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.news-detail-header .news-badge,
.news-detail-header .news-category {
    margin-right: 8px;
}

.news-detail-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    margin: 20px 0 16px;
    line-height: 1.4;
}

.news-meta {
    font-size: 14px;
    color: var(--text-muted);
}

.news-detail-content {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content p:first-child {
    font-size: 18px;
    color: var(--text-white);
    font-weight: 500;
}

.news-nav {
    max-width: 800px;
    margin: 48px auto 0;
    display: flex;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.news-nav-item {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.news-nav-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.nav-label {
    display: block;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    display: block;
    font-size: 14px;
    color: var(--text-white);
    line-height: 1.4;
    transition: var(--transition);
}

.news-nav-item:hover .nav-title {
    color: var(--primary);
}

.about-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-dark) 100%);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border);
}

.about-text p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--primary);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 6px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-links {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    font-size: 14px;
}

.links-label {
    color: var(--text-muted);
    margin-right: 8px;
}

.footer-links a {
    color: var(--text-gray);
    margin: 0 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.icp {
    font-size: 12px;
}

.icp a {
    color: var(--text-muted);
    transition: var(--transition);
}

.icp a:hover {
    color: var(--primary);
}

.icp .divider {
    margin: 0 16px;
    color: var(--border);
}

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.5);
}

@media (max-width: 1200px) {
    .manga-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    }

@media (max-width: 992px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-box {
        display: none;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ranking-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .manga-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .header-actions .btn-login,
    .header-actions .btn-register {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 50px 0 70px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .card-info {
        padding: 12px;
    }
    
    .card-info h3 {
        font-size: 14px;
    }
    
    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .about-content {
        padding: 24px;
    }
    
    .about-text p {
        font-size: 14px;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .ranking-box {
        padding: 20px;
    }
    
    .slide-overlay h3 {
        font-size: 20px;
    }
}
