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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
    min-height: 100vh;
}

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

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0369a1;
    letter-spacing: -0.5px;
}

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

.nav-link {
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0369a1;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.main {
    min-height: calc(100vh - 180px);
    padding: 3rem 0;
}

.hero-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #0369a1 0%, #059669 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid transparent;
}

.tag-ai {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.2);
}

.tag-cloud {
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.2);
}

.tag-web3 {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #5b21b6;
    border-color: rgba(139, 92, 246, 0.2);
}

.tag-front {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.2);
}

.tag-rust {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #9a3412;
    border-color: rgba(245, 158, 11, 0.2);
}

.tag-security {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.2);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-decoration {
    flex: 0 0 300px;
    position: relative;
    height: 280px;
}

.floating-card {
    position: absolute;
    padding: 14px 22px;
    background: white;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.card-1 {
    top: 20px;
    left: 40px;
    color: #0369a1;
    animation-delay: 0s;
}

.card-2 {
    top: 100px;
    right: 30px;
    color: #059669;
    animation-delay: 2s;
}

.card-3 {
    bottom: 30px;
    left: 80px;
    color: #d97706;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.articles-section {
    margin-top: 2rem;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 1.05rem;
    color: #64748b;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.article-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.2);
}

.article-card:hover::before {
    opacity: 1;
}

.article-card-header {
    padding: 1.75rem 1.75rem 1rem;
}

.article-card-category {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 12px;
    margin-bottom: 0.875rem;
    background: linear-gradient(135deg, #dbeafe, #ccfbf1);
    color: #1e40af;
}

.article-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.45;
    color: #1e293b;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.article-card:hover .article-card-title {
    color: #0369a1;
}

.article-card-body {
    padding: 0 1.75rem 1.75rem;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.875rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.article-card-excerpt {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
}

.blog-detail {
    animation: fadeInUp 0.5s ease;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.back-btn:hover {
    background: #0369a1;
    color: white;
    border-color: #0369a1;
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(3, 105, 161, 0.2);
}

.article-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    line-height: 1.85;
}

.article-hero-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 2rem;
    object-fit: cover;
    max-height: 450px;
}

.article-content h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #ccfbf1;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0369a1;
    margin: 2rem 0 1rem;
}

.article-content p {
    font-size: 1.02rem;
    color: #334155;
    margin-bottom: 1.25rem;
    line-height: 1.85;
}

.article-content ul,
.article-content ol {
    margin: 1.25rem 0 1.25rem 1.75rem;
    color: #334155;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content strong {
    color: #1e293b;
    font-weight: 600;
}

.article-content pre {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0ea5e9;
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #1e293b;
}

.article-content code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.88rem;
    color: #0369a1;
    font-family: 'Consolas', 'Monaco', monospace;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.75rem 0;
}

.info-item {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 0.93rem;
    line-height: 1.6;
}

.info-item strong {
    display: block;
    color: #0369a1;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.highlight-box {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-left: 4px solid #f59e0b;
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    margin: 2rem 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #78350f;
}

.warning-box {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-left: 4px solid #ef4444;
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    margin: 2rem 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #991b1b;
}

.footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 2.5rem 0;
    margin-top: 4rem;
}

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

.footer-text {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.footer-slogan {
    font-size: 0.88rem;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0369a1;
}

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

@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-decoration {
        display: none;
    }

    .hero-subtitle br {
        display: none;
    }

    .tech-tags {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1.25rem;
    }

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

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

    .article-content {
        padding: 1.75rem;
    }

    .footer .container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}