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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;
    line-height: 1.7;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0d1117 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(58, 134, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.header {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(96, 165, 250, 0.5);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

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

.nav-link {
    color: #9ca3af;
    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: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

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

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

.hero-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(31, 41, 55, 0.6) 100%);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.03) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    color: #fbbf24;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(167, 139, 250, 0.3);
}

.glow-text {
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5), 0 0 40px rgba(96, 165, 250, 0.3);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.tag-glow {
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.25);
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

.tag-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.hero-visual {
    flex: 0 0 320px;
    position: relative;
    height: 300px;
}

.tech-grid {
    width: 100%;
    height: 100%;
    position: relative;
}

.grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    height: 1px;
    width: 100%;
}

.grid-line:nth-child(1) { top: 25%; }
.grid-line:nth-child(2) { top: 50%; }
.grid-line:nth-child(3) { top: 75%; }

.grid-line:nth-child(4) {
    position: absolute;
    left: 33.33%;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    animation: floatIcon 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px currentColor);
}

.icon-1 {
    top: 20%;
    left: 20%;
    color: #60a5fa;
    animation-delay: 0s;
}

.icon-2 {
    top: 55%;
    right: 25%;
    color: #a78bfa;
    animation-delay: 1.3s;
}

.icon-3 {
    bottom: 20%;
    left: 35%;
    color: #f472b6;
    animation-delay: 2.6s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-15px) scale(1.1); opacity: 1; }
}

.center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border: 2px solid rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 0 30px rgba(99, 102, 241, 0.4),
        inset 0 0 20px rgba(99, 102, 241, 0.2);
    animation: corePulse 2s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 50px rgba(99, 102, 241, 0.6);
    }
}

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

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

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

.section-desc {
    font-size: 1.05rem;
    color: #6b7280;
}

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

.article-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(31, 41, 55, 0.8) 100%);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

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

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

.article-card-header {
    padding: 1.75rem 1.75rem 1rem;
    position: relative;
    z-index: 1;
}

.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, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    color: #93c5fd;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

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

.article-card:hover .article-card-title {
    color: #60a5fa;
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

.article-card-body {
    padding: 0 1.75rem 1.75rem;
    position: relative;
    z-index: 1;
}

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

.article-card-excerpt {
    font-size: 0.95rem;
    color: #9ca3af;
    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: rgba(17, 24, 39, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #93c5fd;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: transparent;
    transform: translateX(-4px);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.article-content {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.9) 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    line-height: 1.85;
    position: relative;
}

.article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 20px 20px 0 0;
}

.article-hero-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 2rem;
    object-fit: cover;
    max-height: 450px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.article-content h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #f3f4f6;
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
    text-shadow: 0 0 10px rgba(147, 197, 253, 0.2);
}

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

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

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

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

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

.article-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-left: 4px solid #3b82f6;
    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: #e5e7eb;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-content code {
    background: rgba(59, 130, 246, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.88rem;
    color: #93c5fd;
    font-family: 'Consolas', 'Monaco', monospace;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

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

.info-item {
    background: rgba(31, 41, 55, 0.6);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    font-size: 0.93rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

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

.highlight-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.08));
    border-left: 4px solid #fbbf24;
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    margin: 2rem 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #fef3c7;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}

.warning-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.08));
    border-left: 4px solid #ef4444;
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    margin: 2rem 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #fecaca;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.footer {
    background: rgba(10, 10, 26, 0.98);
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    padding: 2.5rem 0;
    margin-top: 4rem;
    backdrop-filter: blur(20px);
}

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

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

.footer-slogan {
    font-size: 0.88rem;
    color: #6b7280;
}

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

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

.footer-link:hover {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

@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-visual {
        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;
    }
}