/* Global Styles */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #c9a959;
    --accent-color-light: #e6c78e;
    --text-color: #333;
    --background-color: #fff;
    --gold-gradient: linear-gradient(135deg, #c9a959 0%, #e6c78e 50%, #c9a959 100%);
}

body {
    font-family: 'Playfair Display', serif;
    background-color: #fafafa;
}

.market-section {
    background-color: #f8f4e9;
    width: 100%;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
    transform: scale(1.1);
    transition: transform 20s ease;
}

.hero-section:hover .hero-image {
    transform: scale(1.2);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    background: #fff ;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite;
}

.hero-content p {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    opacity: 0.9;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Video Section */
.video-section {
    position: relative;
    height: 90vh;
    overflow: hidden;
    margin: 4rem 0;
}

.featured-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.video-overlay h2 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite;
}

/* Products Header */
.products-header {
    padding: 6rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, #faf6f0 0%, #f8f4e9 50%, #f5f0e6 100%);
    position: relative;
    margin: 4rem 0 0;
    width: 100%;
}

.products-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gold-gradient);
}

.products-header h2 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 3rem;
    text-transform: uppercase;
    color: var(--primary-color);
}

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

.market-filters button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    text-transform: uppercase;
}

.market-filters button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--gold-gradient);
    transition: width 0.4s ease;
}

.market-filters button:hover::after {
    width: 100%;
}

.market-filters button.active {
    color: var(--accent-color);
}

.market-filters button.active::after {
    width: 100%;
}

.market-sort {
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.market-sort:hover {
    background: var(--accent-color);
    color: white;
}

/* Market Grid */
.market-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f4e9 0%, #f5f0e6 50%, #f8f4e9 100%);
    width: 100%;
}

.market-card {
    background: white;
    border: 1px solid rgba(201, 169, 89, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(201, 169, 89, 0.05);
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.market-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(201, 169, 89, 0.1);
}

.market-card:hover::before {
    opacity: 0.05;
}

.card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.market-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    background: white;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--primary-color);
}

.price {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    letter-spacing: 0.1em;
}

.change {
    font-size: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 2px;
    display: inline-block;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.change.positive {
    background: rgba(0, 200, 5, 0.1);
    color: #00c805;
}

.change.negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* 修改响应式布局 */
@media (max-width: 1200px) {
    .market-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 2rem;
        background: linear-gradient(135deg, #f8f4e9 0%, #f5f0e6 50%, #f8f4e9 100%);
        width: 100%;
    }
}

@media (max-width: 900px) {
    .market-grid {
        grid-template-columns: repeat(2, 1fr);
        background: linear-gradient(135deg, #f8f4e9 0%, #f5f0e6 50%, #f8f4e9 100%);
        width: 100%;
    }
}

@media (max-width: 600px) {
    .market-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        background: linear-gradient(135deg, #f8f4e9 0%, #f5f0e6 50%, #f8f4e9 100%);
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .products-header {
        padding: 4rem 1rem 3rem;
    }

    .card-image {
        height: 280px;
    }

    .card-content {
        padding: 1.2rem;
    }

    .card-content h3 {
        font-size: 1rem;
    }

    .price {
        font-size: 1.2rem;
    }

    .change {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }

    .card-details {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: 0.2em;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
    
    .products-header h2 {
        font-size: 2rem;
    }
    
    .market-filters {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    opacity: 0.8;
    animation: fadeInOut 2s infinite;
}

.hero-scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 0 auto;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: rotate(45deg) translate(-5px, -5px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: rotate(45deg) translate(5px, 5px); opacity: 0; }
}

@keyframes fadeInOut {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

/* Collection Description */
.collection-description {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.collection-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold-gradient);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.market-card:hover .collection-tag {
    transform: translateY(0);
    opacity: 1;
}

/* Card Details */
.card-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201, 169, 89, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.rarity, .edition {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Video Overlay Enhancement */
.video-overlay p {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    opacity: 0.9;
}

/* 添加更多动画效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.market-card {
    animation: float 6s ease-in-out infinite;
}

.market-card:nth-child(odd) {
    animation-delay: 0.5s;
}

.market-card:nth-child(3n) {
    animation-delay: 1s;
}

/* 添加更多响应式设计 */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: 0.15em;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .card-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .collection-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
}

.cart-btn {
    position: fixed;
    top: 22px;
    right: 300px;
    z-index: 1001;
    background: #fff;
    color: #222;
    border: 2px solid #222;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
}
.cart-btn:hover {
    background: #222;
    color: #fff;
}

.cart-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px 40px 24px 40px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    text-align: center;
}
.cart-modal-content h2 {
    margin-bottom: 18px;
    font-size: 1.5rem;
    font-weight: bold;
}
.cart-modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    max-height: 220px;
    overflow-y: auto;
}
.cart-modal-content li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.08rem;
}
.cart-modal-content .cart-total {
    margin: 16px 0 18px 0;
    font-size: 1.18rem;
    font-weight: bold;
}
.cart-modal-content button {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.cart-modal-content button:hover {
    background: #444;
}
.add-to-cart-btn {
    margin-top: 12px;
    background: #f5f5f5;
    color: #222;
    border: 1px solid #bbb;
    border-radius: 18px;
    padding: 6px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.add-to-cart-btn:hover {
    background: #222;
    color: #fff;
}

.cart-modal-content .remove-cart-item {
    background: none;
    border: none;
    color: #d33;
    font-size: 1.1rem;
    margin-left: 10px;
    cursor: pointer;
    vertical-align: middle;
    transition: color 0.2s;
}
.cart-modal-content .remove-cart-item:hover {
    color: #a00;
}

#checkout-celebration {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 4000;
    background: rgba(0,0,0,0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInCelebration 0.4s;
}
@keyframes fadeInCelebration {
    from { opacity: 0; }
    to { opacity: 1; }
}
.celebration-content {
    background: #fff;
    border-radius: 22px;
    padding: 48px 60px 36px 60px;
    min-width: 340px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(252,92,125,0.18);
    text-align: center;
    position: relative;
    animation: popCelebration 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes popCelebration {
    0% { transform: scale(0.7) rotate(-8deg); }
    60% { transform: scale(1.08) rotate(2deg); }
    100% { transform: scale(1) rotate(0); }
}
.celebration-emoji {
    font-size: 2.6rem;
    margin-bottom: 18px;
    animation: emojiBounce 1.2s infinite alternate;
}
@keyframes emojiBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px) scale(1.15); }
}
.celebration-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fc5c7d;
    margin-bottom: 10px;
}
.celebration-desc {
    font-size: 1.08rem;
    color: #6a82fb;
} 