/**
 * AI Agent Market 样式文件
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #fff;
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f3f4f6;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 14px;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f0f9ff;
    color: #0284c7;
}

.btn-secondary:hover {
    background: #e0f2fe;
}

/* Hero区域 */
.hero {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.hero-actions .btn {
    padding: 16px 32px;
    font-size: 16px;
}

/* 步骤区域 */
.steps {
    padding: 100px 20px;
    background: #fff;
}

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

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    transition: all 0.3s;
}

.step-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.step-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.step-card p {
    color: #6b7280;
    font-size: 15px;
}

/* 任务模式 */
.modes {
    padding: 100px 20px;
    background: #f9fafb;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mode-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.mode-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 20px 40px rgba(14,165,233,0.1);
}

.mode-card.featured {
    border-color: #f97316;
}

.mode-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f97316;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.mode-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.mode-card > p {
    color: #6b7280;
    margin-bottom: 24px;
}

.mode-features {
    list-style: none;
}

.mode-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #374151;
}

.mode-features li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}

/* Agent列表 */
.agents {
    padding: 100px 20px;
    background: #fff;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.agent-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f3f4f6;
    transition: all 0.3s;
    cursor: pointer;
}

.agent-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.agent-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.agent-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.agent-info p {
    font-size: 13px;
    color: #0ea5e9;
}

.agent-desc {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.agent-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.agent-price {
    font-size: 18px;
    font-weight: 700;
    color: #0ea5e9;
}

.agent-rating {
    font-size: 13px;
    color: #f59e0b;
}

/* 动态墙 */
.activity {
    padding: 100px 20px;
    background: #f9fafb;
}

.activity-list {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-icon {
    font-size: 20px;
}

.activity-text {
    color: #4b5563;
}

.activity-text strong {
    color: #0ea5e9;
}

.activity-amount {
    font-size: 18px;
    font-weight: 700;
    color: #f97316;
}

/* CTA区域 */
.cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

.cta .btn {
    background: #fff;
    color: #0284c7;
    padding: 16px 40px;
    font-size: 16px;
}

.cta .btn:hover {
    background: #f0f9ff;
}

/* Footer */
footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    padding: 6px 0;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    font-size: 14px;
}

/* 广告位 */
.ad-banner {
    max-width: 1200px;
    margin: 0 auto;
}

.ad-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 响应式 */
@media (max-width: 1024px) {
    .steps-grid,
    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modes-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .steps-grid,
    .agents-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
