/* ========================================
   Zard的博客 - 液态玻璃风格
   ======================================== */

/* Design Tokens */
:root {
    --bg: #070A1C;
    --ink: #F2F5FF;
    --muted: #AAB6DC;
    --pink: #FF2E88;
    --violet: #7C4DFF;
    --cyan: #00E0FF;
    --mint: #38FFC3;
    --glass: rgba(255, 255, 255, 0.09);
    --glass-hi: rgba(255, 255, 255, 0.16);
    --border-color: rgba(255, 255, 255, 0.26);
    --radius: 18px;
    --radius-sm: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Decoration */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    top: 40%;
    right: -150px;
    animation-delay: -7s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--cyan), var(--mint));
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

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

/* Glass Card */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.glass-card:hover {
    background: var(--glass-hi);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-4px);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 10, 28, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
}

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

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--violet));
    color: white;
    box-shadow: 0 4px 20px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 77, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--glass);
    color: var(--ink);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-hi);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 80px 0 60px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card-lg {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morphing 8s infinite ease-in-out;
}

.glass-card-lg svg {
    width: 200px;
    height: 200px;
}

@keyframes morphing {
    0%, 100% { border-radius: 18px; }
    25% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
    50% { border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%; }
    75% { border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%; }
}

/* ========================================
   Style Chips
   ======================================== */
.style-chips {
    padding: 40px 0;
}

.chips-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    background: var(--glass);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
}

.chip:hover,
.chip.active {
    color: var(--ink);
    background: var(--glass-hi);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 48px;
}

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

.feature-card {
    padding: 32px 24px;
    text-align: center;
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border-radius: var(--radius);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ========================================
   Articles Section
   ======================================== */
.latest-articles,
.articles-section {
    padding: 80px 0;
}

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

.articles-grid-full {
    grid-template-columns: repeat(3, 1fr);
}

.article-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

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

.article-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cyan);
    background: rgba(0, 224, 255, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
}

.article-date {
    font-size: 13px;
    color: var(--muted);
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.article-link {
    color: var(--pink);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color var(--transition);
}

.article-link:hover {
    color: var(--violet);
}

.section-action {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--muted);
    margin-bottom: 24px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    margin-bottom: 16px;
}

.contact-list svg {
    color: var(--cyan);
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: var(--glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(170, 182, 220, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-desc {
    color: var(--muted);
    font-size: 14px;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--ink);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--muted);
    font-size: 13px;
}

/* ========================================
   Page Header (Articles Page)
   ======================================== */
.page-header {
    padding: 80px 0 40px;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.page-subtitle {
    color: var(--muted);
    font-size: 18px;
}

/* ========================================
   Filter Bar
   ======================================== */
.filter-bar {
    padding: 20px 0 40px;
}

.filter-chips {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Article Detail
   ======================================== */
.article-detail {
    padding: 40px 0 80px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 32px;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--ink);
}

.article-header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.article-header .article-meta {
    justify-content: center;
    margin-bottom: 24px;
}

.article-header .article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-lead {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.article-content p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.article-content ul {
    color: var(--muted);
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--glass);
    border-left: 3px solid var(--violet);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--ink);
}

.article-content code {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    background: var(--glass);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--cyan);
}

.article-content pre {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.6;
}

.article-footer {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-tags {
    display: flex;
    gap: 8px;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.share-link {
    color: var(--muted);
    transition: color var(--transition);
}

.share-link:hover {
    color: var(--ink);
}

.related-articles {
    max-width: 800px;
    margin: 60px auto 0;
}

.related-articles .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.related-articles .articles-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .features-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .glass-card-lg {
        width: 200px;
        height: 200px;
    }
    
    .glass-card-lg svg {
        width: 140px;
        height: 140px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 32px;
    }
    
    .contact-info h2,
    .contact-info .section-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .navbar .btn {
        display: none;
    }
    
    .features-grid,
    .articles-grid,
    .articles-grid-full {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .article-content {
        padding: 24px;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .related-articles .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .chips-row {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    
    .chip {
        flex-shrink: 0;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}

/* ========================================
   Focus & Accessibility
   ======================================== */
:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
