/* 重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0f;
    color: #f0f0f0;
    overflow-x: hidden;
    position: relative;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

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

/* 公司品牌条 */
.company-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 10px;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.12), rgba(0, 204, 255, 0.06));
    border-bottom: 1px solid rgba(255, 77, 141, 0.2);
}

.company-logo {
    height: 104px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 77, 141, 0.35));
    transition: filter 0.3s ease;
}

.company-brand:hover .company-logo {
    filter: drop-shadow(0 0 14px rgba(255, 77, 141, 0.55));
}

.company-name {
    font-family: 'Poppins', 'Microsoft YaHei', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255, 77, 141, 0.3);
    white-space: nowrap;
}

/* 导航栏 */
.navbar {
    width: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

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

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: #ff4d8d;
    text-shadow: 0 0 10px #ff4d8d;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff4d8d, #00ccff);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 77, 141, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 204, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.highlight {
    color: #ff4d8d;
    text-shadow: 0 0 15px #ff4d8d;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #aaa;
    max-width: 600px;
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(90deg, #ff4d8d, #00ccff);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 77, 141, 0.4);
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 77, 141, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* 通用区域样式 */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 50px;
    font-size: 1.2rem;
}

/* 动漫作品 */
.works-section {
    padding: 80px 0;
    background: rgba(15, 15, 25, 0.5);
    position: relative;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    justify-items: center;
}

.work-card {
    background: rgba(30, 30, 40, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 77, 141, 0.1);
    max-width: 320px;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 77, 141, 0.25);
    border-color: rgba(255, 77, 141, 0.3);
}

.work-img {
    width: 100%;
    aspect-ratio: 1280 / 1829;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.work-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.work-placeholder i {
    font-size: 3rem;
    color: rgba(255, 77, 141, 0.25);
}

.work-placeholder span {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
}

.work-card:hover .work-img img {
    transform: scale(1.08);
}

.work-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.work-card:hover .work-img::before {
    opacity: 1;
}

.work-info {
    padding: 20px;
    text-align: center;
}

.work-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.work-card:hover .work-title {
    color: #ff4d8d;
}

.work-desc {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}

/* 画廊 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    aspect-ratio: 9/16;
    height: auto;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 77, 141, 0.3);
}

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

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

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
    opacity: 1;
}

/* 动漫信息库 */
.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(90deg, #ff4d8d, #00ccff);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 77, 141, 0.4);
}

.anime-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.anime-card {
    background: rgba(30, 30, 40, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.anime-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 204, 255, 0.3);
}

.anime-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    object-fit: cover;
}

.anime-info {
    padding: 20px;
}

.anime-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.anime-genre {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 77, 141, 0.2);
    color: #ff4d8d;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.anime-description {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.anime-rating {
    display: flex;
    align-items: center;
    color: #ffcc00;
}

/* 关于区域 */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ccc;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    flex: 1;
    min-width: 300px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    min-width: 150px;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 77, 141, 0.1);
}

.stat h3 {
    font-size: 2.5rem;
    color: #00ccff;
    margin-bottom: 10px;
}

.stat p {
    color: #aaa;
}

/* 页脚 */
.footer {
    background: rgba(10, 10, 20, 0.95);
    padding: 50px 0;
    text-align: center;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
}

.footer-logo span {
    color: #ff4d8d;
}

.footer p {
    color: #aaa;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(90deg, #ff4d8d, #00ccff);
    transform: translateY(-5px);
}

/* ICP备案信息 */
.footer-icp {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.icp-block {
    margin-bottom: 20px;
}

.icp-block:last-child {
    margin-bottom: 0;
}

.icp-item {
    color: #888;
    font-size: 14px;
    line-height: 2;
}

.icp-item a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-item a:hover {
    color: #00ccff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1.2rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    .anime-cards {
        grid-template-columns: 1fr;
    }
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .btn-hero {
        padding: 12px 30px;
        font-size: 16px;
    }
    .section-title {
        font-size: 2rem;
    }
}