@font-face {
    font-family: 'MaShanZheng';
    src: url('https://fonts.gstatic.com/s/mashanzheng/v10/NaPecZTRCLxvwo41b4gvzkXadMT0.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.loader-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 154, 158, 0.5), transparent);
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% {
        top: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.loader-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.loading-text {
    font-family: 'Ma Shan Zheng', sans-serif;
    font-size: 28px;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: 8px;
}

.progress-container {
    width: 300px;
    max-width: 80%;
}

.progress-percent {
    display: block;
    font-size: 20px;
    color: #ff9a9e;
    text-align: left;
    margin-bottom: 10px;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9a9e, #fecfef);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
}

.progress-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s linear infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Ma Shan Zheng', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('img/2.png') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
}

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

.page-container {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    min-height: 100vh;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px;
    gap: 80px;
}

.left-panel {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.text-content {
    max-width: 600px;
    z-index: 1;
}

.main-title {
    font-size: 56px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features {
    margin-bottom: 50px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInLeft 0.6s ease forwards;
}

.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.4s; }
.feature-item:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature-item h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.cta-section {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.cta-btn {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.4);
}

.cta-btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 154, 158, 0.6);
}

.cta-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #ff9a9e;
    text-shadow: 0 0 20px rgba(255, 154, 158, 0.5);
}

.data-source {
    margin-top: 20px;
    text-align: center;
}

.source-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.stat .label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.right-panel {
    width: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    overflow: hidden;
}

.photo-stack-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.photo-stack {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-card {
    position: absolute;
    width: 90%;
    max-width: 500px;
    height: 70%;
    max-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.photo-card:active {
    cursor: grabbing;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.photo-card:nth-child(1) {
    transform: rotate(-8deg) translateX(-30px) translateY(15px) scale(0.92);
    z-index: 1;
    opacity: 0.7;
}

.photo-card:nth-child(2) {
    transform: rotate(-4deg) translateX(-15px) translateY(8px) scale(0.96);
    z-index: 2;
    opacity: 0.85;
}

.photo-card:nth-child(3) {
    transform: rotate(0deg) translateX(0) translateY(0) scale(1);
    z-index: 3;
    opacity: 1;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 154, 158, 0.3);
}

.photo-card:nth-child(4) {
    transform: rotate(4deg) translateX(15px) translateY(-8px) scale(0.96);
    z-index: 2;
    opacity: 0.85;
}

.photo-card:nth-child(5) {
    transform: rotate(8deg) translateX(30px) translateY(-15px) scale(0.92);
    z-index: 1;
    opacity: 0.7;
}

.photo-card:nth-child(6) {
    transform: rotate(12deg) translateX(50px) translateY(-25px) scale(0.88);
    z-index: 0;
    opacity: 0.5;
}

.photo-card.swipe-left {
    animation: swipeLeft 0.5s ease forwards;
}

.photo-card.swipe-right {
    animation: swipeRight 0.5s ease forwards;
}

@keyframes swipeLeft {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-150%); opacity: 0; }
}

@keyframes swipeRight {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(150%); opacity: 0; }
}

.photo-card.enter-from-right {
    animation: enterFromRight 0.5s ease forwards;
}

.photo-card.enter-from-left {
    animation: enterFromLeft 0.5s ease forwards;
}

@keyframes enterFromRight {
    0% { transform: translateX(150%) rotate(5deg); opacity: 0; }
    100% { transform: translateX(0) rotate(0deg); opacity: 1; }
}

@keyframes enterFromLeft {
    0% { transform: translateX(-150%) rotate(-5deg); opacity: 0; }
    100% { transform: translateX(0) rotate(0deg); opacity: 1; }
}

.swipe-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 24px;
    background: rgba(30, 30, 50, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.swipe-arrow {
    font-size: 24px;
    opacity: 0.5;
    animation: pulseArrow 1.5s ease-in-out infinite;
}

.swipe-arrow.left {
    animation-delay: 0s;
}

.swipe-arrow.right {
    animation-delay: 0.75s;
}

@keyframes pulseArrow {
    0%, 100% { opacity: 0.3; transform: translateX(0); }
    50% { opacity: 1; }
}

.swipe-text {
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@media (max-width: 1024px) {
    .fullscreen-container {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        width: 100%;
        height: 50%;
        padding: 30px;
    }
    
    .main-title {
        font-size: 40px;
    }
    
    .subtitle {
        font-size: 20px;
    }
    
    .feature-item {
        margin-bottom: 20px;
    }
    
    .stats {
        gap: 20px;
    }
    
    .stat .number {
        font-size: 28px;
    }
    
    .photo-card {
        width: 95%;
        height: 65%;
    }
}

@media (max-width: 768px) {
    .left-panel, .right-panel {
        padding: 20px;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .cta-section {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .photo-card {
        width: 100%;
        height: 60%;
    }
    
    .swipe-indicator {
        padding: 10px 20px;
        font-size: 12px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}

.categories-section, .effects-section {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    background: rgba(40, 40, 60, 0.9);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.category-card h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}

.category-card .count {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.effect-card {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.effect-card:hover {
    background: rgba(40, 40, 60, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.effect-card h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
}

.effect-card .category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 154, 158, 0.2);
    color: #ff9a9e;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
}

.effect-card .date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }
    
    .left-panel {
        width: 100%;
        padding: 20px;
        text-align: center;
    }
    
    .right-panel {
        display: none;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .features {
        gap: 15px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .cta-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-btn {
        width: 100%;
    }
    
    .stats {
        gap: 20px;
    }
    
    .stat {
        text-align: center;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .effects-grid {
        grid-template-columns: 1fr;
    }
}
}