* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #4ecdc4;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #fff;
    --text-secondary: #a0a0c0;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 107, 157, 0.03) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 107, 157, 0.02) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px;
    pointer-events: none;
    z-index: -1;
}

.color-mode.grayscale {
    filter: grayscale(100%);
}

.color-mode.grayscale img {
    filter: grayscale(100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.logo p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(255, 107, 157, 0.1);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.2);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mode-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mode-toggle:hover {
    background: rgba(255, 107, 157, 0.2);
    transform: scale(1.1);
}

.mode-toggle svg {
    width: 20px;
    height: 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.floating-character {
    position: fixed;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    opacity: 0.6;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-character.show {
    right: 20px;
}

.character-illustration {
    width: 80px;
    height: 120px;
    position: relative;
}

.character-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(74, 144, 217, 0.5));
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a3e 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

.layer-1 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='2' fill='%23ff6b9d' fill-opacity='0.1'/%3E%3Ccircle cx='20' cy='30' r='1' fill='%23ff6b9d' fill-opacity='0.05'/%3E%3Ccircle cx='80' cy='70' r='1.5' fill='%23ff6b9d' fill-opacity='0.08'/%3E%3Ccircle cx='30' cy='80' r='1' fill='%23ff6b9d' fill-opacity='0.05'/%3E%3Ccircle cx='70' cy='20' r='1.5' fill='%23ff6b9d' fill-opacity='0.08'/%3E%3C/svg%3E");
    transform: translateZ(0);
}

.layer-2 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Crect x='0' y='0' width='200' height='200' fill='none' stroke='%23ff6b9d' stroke-width='0.5' stroke-opacity='0.1'/%3E%3Cline x1='0' y1='50' x2='200' y2='50' stroke='%23ff6b9d' stroke-width='0.5' stroke-opacity='0.05'/%3E%3Cline x1='0' y1='100' x2='200' y2='100' stroke='%23ff6b9d' stroke-width='0.5' stroke-opacity='0.05'/%3E%3Cline x1='0' y1='150' x2='200' y2='150' stroke='%23ff6b9d' stroke-width='0.5' stroke-opacity='0.05'/%3E%3Cline x1='50' y1='0' x2='50' y2='200' stroke='%23ff6b9d' stroke-width='0.5' stroke-opacity='0.05'/%3E%3Cline x1='100' y1='0' x2='100' y2='200' stroke='%23ff6b9d' stroke-width='0.5' stroke-opacity='0.05'/%3E%3Cline x1='150' y1='0' x2='150' y2='200' stroke='%23ff6b9d' stroke-width='0.5' stroke-opacity='0.05'/%3E%3C/svg%3E");
    transform: translateZ(-50px) scale(1.1);
}

.layer-3 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cdefs%3E%3Cpattern id='grid' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='20' cy='20' r='0.5' fill='%23ff6b9d' fill-opacity='0.3'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='400' height='400' fill='url(%23grid)'/%3E%3C/svg%3E");
    transform: translateZ(-100px) scale(1.2);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

.hero-text {
    z-index: 2;
}

.comic-bubble {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 
        inset 0 0 30px rgba(255, 107, 157, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

.comic-bubble::before {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--primary-color);
}

.comic-bubble::after {
    content: '';
    position: absolute;
    bottom: -11px;
    right: 54px;
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 16px solid rgba(255, 255, 255, 0.08);
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.hero-text h2 span {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--text-primary);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.btn-primary::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-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 107, 157, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.comic-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    transform: rotate(-2deg);
}

.comic-panel {
    position: relative;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 
        5px 5px 0 rgba(255, 107, 157, 0.3),
        10px 10px 0 rgba(255, 107, 157, 0.2),
        15px 15px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.comic-panel:hover {
    transform: translateY(-10px) rotate(2deg) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(255, 107, 157, 0.4),
        5px 5px 0 rgba(255, 107, 157, 0.5),
        10px 10px 0 rgba(255, 107, 157, 0.3);
    animation: comic-shake 0.3s ease;
}

@keyframes comic-shake {
    0%, 100% { transform: translateY(-10px) rotate(2deg) scale(1.05); }
    25% { transform: translateY(-12px) rotate(3deg) scale(1.05); }
    50% { transform: translateY(-8px) rotate(1deg) scale(1.05); }
    75% { transform: translateY(-11px) rotate(2.5deg) scale(1.05); }
}

.comic-panel img {
    width: 150px;
    height: 200px;
    object-fit: cover;
}

.panel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.panel-1 { transform: rotate(-3deg); }
.panel-2 { transform: rotate(2deg); margin-top: 20px; }
.panel-3 { transform: rotate(-1deg); margin-top: 10px; }
.panel-4 { transform: rotate(3deg); }

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--text-secondary);
    border-radius: 10px;
    margin-top: 10px;
    position: relative;
}

.scroll-indicator .arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(10px); opacity: 0; }
}

.features {
    padding: 100px 0;
    background: #0f0f2a;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 60px;
}

.comic-title {
    position: relative;
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 107, 157, 0.05));
    border: 2px dashed var(--primary-color);
    border-radius: 30px;
    font-family: 'Ma Shan Zheng', cursive;
    letter-spacing: 3px;
}

.title-icon {
    color: var(--primary-color);
    margin: 0 15px;
    font-size: 1.2rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 157, 0.1);
    position: relative;
}

.comic-card {
    position: relative;
}

.comic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), transparent, var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.3);
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(196, 69, 105, 0.2));
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
    border: 2px solid var(--primary-color);
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.works {
    padding: 100px 0;
    background: var(--bg-dark);
}

.works-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    background: transparent;
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: comic-shake 0.3s ease;
}

.work-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.comic-quote {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    max-width: 80%;
    position: relative;
}

.comic-quote::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    clip-path: polygon(0 100%, 100% 100%, 50% 0);
}

.comic-quote span {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-style: italic;
}

.work-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.5);
}

.work-info {
    padding: 20px;
}

.work-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
}

.work-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.work-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.work-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 12px;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.tag-primary {
    background: rgba(255, 107, 157, 0.2);
    border-color: var(--primary-color);
}

.tag-secondary {
    background: rgba(78, 205, 196, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.tag-accent {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
}

.comparison {
    padding: 100px 0;
    background: #0f0f2a;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.comparison-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.comparison-header {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 15px 20px;
    text-align: center;
}

.comparison-header h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.comparison-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.comparison-item {
    flex: 1;
    text-align: center;
}

.comparison-label {
    background: rgba(255, 107, 157, 0.1);
    padding: 8px 15px;
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: inline-block;
}

.comparison-item img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 107, 157, 0.3);
}

.vs-badge {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.comparison-note {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    text-align: center;
}

.comparison-note p {
    color: var(--text-secondary);
    font-style: italic;
}

.characters {
    padding: 100px 0;
    background: var(--bg-dark);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.character-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 157, 0.2);
    transition: all 0.3s ease;
}

.character-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.2);
}

.character-avatar {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-rank {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 10px;
    color: #ffd700;
    font-size: 0.9rem;
}

.character-info {
    padding: 20px;
}

.character-info h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.character-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.character-quote {
    background: rgba(255, 107, 157, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 12px 15px;
    border-radius: 0 10px 10px 0;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
}

.character-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    width: 40px;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.timeline {
    padding: 100px 0;
    background: #0f0f2a;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-events {
    position: relative;
    padding: 20px 0;
}

.timeline-event {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-event:nth-child(odd) {
    flex-direction: row;
}

.timeline-event:nth-child(even) {
    flex-direction: row-reverse;
}

.event-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.5);
    z-index: 1;
}

.event-card {
    width: 45%;
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 107, 157, 0.2);
    transition: all 0.3s ease;
}

.event-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.2);
    transform: translateY(-3px);
}

.event-year {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.event-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.quotes {
    padding: 100px 0;
    background: var(--bg-dark);
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.quote-card {
    text-align: center;
}

.quote-bubble {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    margin-bottom: 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-bubble::before {
    content: '❝';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    color: rgba(255, 107, 157, 0.3);
    font-family: serif;
}

.quote-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--primary-color);
}

.quote-bubble p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
}

.quote-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.fanart {
    padding: 100px 0;
    background: #0f0f2a;
}

.fanart-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    background: transparent;
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.fanart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.fanart-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.fanart-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.fanart-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fanart-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fanart-item:hover .fanart-info {
    opacity: 1;
}

.fanart-author {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.ranking {
    padding: 100px 0;
    background: var(--bg-dark);
}

.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.ranking-content {
    max-width: 800px;
    margin: 0 auto;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 107, 157, 0.1);
    transition: all 0.3s ease;
}

.ranking-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.ranking-item.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-color: #ffd700;
}

.ranking-item.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.05));
    border-color: #c0c0c0;
}

.ranking-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.05));
    border-color: #cd7f32;
}

.rank-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rank-1 .rank-number {
    background: #ffd700;
    color: #333;
}

.rank-2 .rank-number {
    background: #c0c0c0;
    color: #333;
}

.rank-3 .rank-number {
    background: #cd7f32;
    color: white;
}

.ranking-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 107, 157, 0.3);
}

.ranking-info {
    flex: 1;
}

.ranking-info h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.ranking-score {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.vote-btn {
    padding: 10px 25px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.about {
    padding: 100px 0;
    background: #0f0f2a;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 107, 157, 0.2);
}

.contact {
    padding: 100px 0;
    background: var(--bg-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.contact-item:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.contact-item svg {
    width: 35px;
    height: 35px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(255, 107, 157, 0.2);
}

.form-header {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.form-header h3 {
    color: white;
    font-size: 1.3rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 107, 157, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
}

.contact-form textarea {
    resize: none;
    height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

.footer {
    background: #0f0f2a;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 107, 157, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-dark);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1) translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.popup-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
}

.popup-close {
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255, 107, 157, 0.2);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: var(--primary-color);
    color: white;
}

.popup-body {
    padding: 20px;
}

.egg-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, var(--bg-dark), #1a1a3e);
    border: 3px solid var(--primary-color);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    z-index: 3000;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
}

.egg-popup.show {
    transform: translate(-50%, -50%) scale(1);
}

.egg-emoji {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 0.5s ease infinite;
}

.egg-popup h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.egg-popup p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.egg-close {
    padding: 10px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.egg-close:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        border-bottom: 1px solid rgba(255, 107, 157, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h2 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .comic-panel-grid {
        transform: none;
        grid-template-columns: repeat(2, 1fr);
    }

    .comic-panel img {
        width: 120px;
        height: 160px;
    }

    .comic-bubble::before,
    .comic-bubble::after {
        display: none;
    }

    .timeline-line {
        left: 20px;
    }

    .event-marker {
        left: 20px;
    }

    .timeline-event,
    .timeline-event:nth-child(odd),
    .timeline-event:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }

    .event-card {
        width: 100%;
        margin-bottom: 10px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .floating-character {
        display: none;
    }

    .comparison-content {
        flex-direction: column;
    }

    .vs-badge {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .comic-panel-grid {
        grid-template-columns: 1fr;
    }

    .comic-panel {
        transform: none !important;
        margin-top: 10px !important;
    }

    .comic-panel img {
        width: 100%;
        height: 200px;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .works-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .ranking-item {
        flex-wrap: wrap;
        text-align: center;
    }

    .vote-btn {
        width: 100%;
    }
}