/* 开发者平台专用样式 */

.developer-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-code {
    position: relative;
}

.code-window {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.code-header {
    background: #2d2d2d;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.code-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27ca3f; }

.code-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.code-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.code-content pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-content code {
    color: #f8f8f2;
}

/* 开发者工具 */
.developer-tools {
    padding: 100px 0;
    background: #f8f9fa;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.tool-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.tool-icon i {
    font-size: 24px;
    color: white;
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.tool-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.feature-tag {
    background: #f8f9fa;
    color: #666;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tool-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-link:hover {
    color: #764ba2;
}

/* API概览 */
.api-overview {
    padding: 100px 0;
    background: white;
}

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

.api-category {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.category-count {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.category-apis {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.api-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e9ecef;
}

.api-method {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.api-method.get {
    background: #d4edda;
    color: #155724;
}

.api-method.post {
    background: #cce5ff;
    color: #004085;
}

.api-method.put {
    background: #fff3cd;
    color: #856404;
}

.api-path {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    color: #333;
    flex: 1;
}

.api-desc {
    color: #666;
    font-size: 0.9rem;
}

.api-actions {
    text-align: center;
    margin-top: 40px;
}

/* 开发者社区 */
.developer-community {
    padding: 100px 0;
    background: #f8f9fa;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.community-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.community-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.community-icon i {
    font-size: 24px;
    color: white;
}

.community-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.community-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.community-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #666;
}

.community-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.community-link:hover {
    color: #764ba2;
}

/* 快速开始 */
.quick-start {
    padding: 100px 0;
    background: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 25px;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-link:hover {
    color: #764ba2;
}

/* 图标样式 */
.icon-api::before { content: '📋'; }
.icon-sdk::before { content: '📦'; }
.icon-sandbox::before { content: '🧪'; }
.icon-console::before { content: '⚙️'; }
.icon-webhook::before { content: '🔗'; }
.icon-support::before { content: '🛠️'; }
.icon-forum::before { content: '💬'; }
.icon-github::before { content: '🐙'; }
.icon-blog::before { content: '📝'; }

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .api-categories {
        grid-template-columns: 1fr;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
}