/* CSS样式文件 - ArtVerse NFT Marketplace */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #F0B90B;        /* 暖金色 - 主按钮/强调 */
    --primary-dark: #D4A30A;   /* 深金色 - hover */
    --primary-glow: rgba(240, 185, 11, 0.25);
    --secondary: #8B5CF6;      /* 紫色 - 辅助色 */
    --secondary-dark: #7C3AED;
    --accent: #10B981;         /* 翠绿 - 涨/成功 */
    --dark: #0A0A0F;           /* 深黑背景 */
    --dark-light: #13131F;     /* 卡片背景 */
    --dark-hover: #1A1A2E;     /* 卡片hover */
    --gray: #6B7280;           /* 次要文字 */
    --gray-light: #9CA3AF;     /* 辅助文字 */
    --light: #F3F4F6;          /* 浅灰白 */
    --white: #FFFFFF;
    --border: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(240, 185, 11, 0.15);
    --gradient-1: linear-gradient(135deg, #F0B90B, #F59E0B);
    --gradient-2: linear-gradient(135deg, #8B5CF6, #6366F1);
    --gradient-hero: linear-gradient(135deg, #0A0A0F 0%, #1A1525 50%, #0F1A1A 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(240, 185, 11, 0.15);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark);
    color: var(--white);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* 导航栏 */
.navbar {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-gold);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-logo i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-light);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(240, 185, 11, 0.08);
}

.btn-connect {
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Hero区域 */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(240, 185, 11, 0.08);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-top: 5px;
}

/* Hero图片区域 */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nft-preview-card {
    background: var(--dark-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 400px;
    transition: all 0.3s ease;
}

.nft-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(240, 185, 11, 0.2);
}

.nft-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.nft-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nft-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nft-info {
    padding: 20px;
}

.nft-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.nft-artist {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.artist-name {
    color: var(--primary);
    font-weight: 600;
}

.nft-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-label {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* 精选艺术品区域 */
.featured-section {
    padding: 80px 0;
    background: var(--dark);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-light);
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* NFT卡片 */
.nft-card {
    background: var(--dark-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nft-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(240, 185, 11, 0.15);
}

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

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

.nft-card:hover .nft-card-image img {
    transform: scale(1.05);
}

.nft-card-timer {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nft-card-content {
    padding: 15px;
}

.nft-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.nft-card-creator {
    color: var(--gray-light);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.nft-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nft-card-price {
    display: flex;
    flex-direction: column;
}

.price-label-small {
    font-size: 0.75rem;
    color: var(--gray-light);
}

.price-value-small {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.nft-card-like {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-light);
    font-size: 0.9rem;
}

.nft-card-like i {
    color: var(--secondary);
}

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

.btn-view-all {
    background: transparent;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: rgba(240, 185, 11, 0.08);
    transform: translateX(5px);
}

/* 分类区域 */
.categories-section {
    padding: 80px 0;
    background: var(--dark-light);
}

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

.category-card {
    background: var(--dark);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.category-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.category-count {
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background: var(--dark);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-description {
    color: var(--gray-light);
    line-height: 1.8;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links a {
    display: block;
    color: var(--gray-light);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--dark-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nft-grid {
        grid-template-columns: 1fr;
    }
}
