@font-face {
    font-family: 'AnnieUseYourTelescope';
    src: url('../fonts/AnnieUseYourTelescope.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Line heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-loose: 2.2;

    /* Font sizes */
    --font-size-xs: 0.8rem;
    --font-size-sm: 0.9rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.2rem;
    --font-size-xl: 1.4rem;
    --font-size-2xl: 1.6rem;

    /* Colors */
    --color-text-primary: #333;
    --color-text-secondary: #666;
    --color-text-tertiary: #888;
    --color-text-muted: #999;
    --color-border: #eee;
    --color-border-light: #f0f0f0;
    --color-bg-light: #fafafa;
    --color-bg-gray: #f8f8f8;
    --color-bg-code: #f5f5f5;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    background-color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    /* padding: 2rem 1rem; */
    /* background-color: #b1b1b1; */
}

header {
    
    /* margin-bottom: 3rem; */
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-top: 4rem;
    padding-bottom: 4rem;
    /* background-color: #ff808040; */
}

.logo {
    font-family: 'AnnieUseYourTelescope', serif;
    font-size: 2rem;
    font-weight: normal;
    text-decoration: none;
    color: #333;
    letter-spacing: 1px;
}

.logo:hover {
    opacity: 0.7;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    margin-top: 2rem;
    font-weight: 400;
}

footer {
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 5rem;
    padding-bottom: 15rem;
    color: #888;
}

.visitor-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #666;
}

.counter-label {
    font-size: 0.8rem;
    color: #999;
    margin-left: 0.25rem;
}

.counter-icon {
    font-size: 16px;
    vertical-align: middle;
    opacity: 0.5;
    margin-right: 0.25rem;
}

.counter-number {
    font-weight: 500;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.post-views {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-views .material-icons {
    opacity: 0.5;
    font-size: 14px;
    margin-right: 0.25rem;
}


.post-views-detail {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: #f8f8f8;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.post-list {
    margin-bottom: 2rem;
}

.post-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.post-item:hover {
    background-color: #fafafa;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

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

.post-title {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #333;
}

.post-date {
    font-size: 0.9rem;
    color: #666;
}

.post-excerpt {
    font-size: 1rem;
    color: #555;
    line-height: var(--line-height-relaxed);
}

.post-detail {
    padding: 2rem 1rem 0 1rem;
    animation: fadeIn 0.3s ease;
}

.hidden {
    display: none;
}

.back-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: #333;
}

#post-content {
    line-height: var(--line-height-relaxed);
    word-break: keep-all;
    overflow-wrap: break-word;
    /* padding: 0 1rem; */
}

#post-content h1 {
    font-size: var(--font-size-2xl);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

#post-content h2 {
    font-size: var(--font-size-xl);
    font-weight: 400;
    margin: var(--spacing-xl) 0 var(--spacing-md) 0;
    color: var(--color-text-primary);
}

#post-content h3 {
    font-size: var(--font-size-lg);
    font-weight: 400;
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    color: var(--color-text-primary);
}

#post-content p {
    margin-bottom: var(--spacing-lg);
}

#post-content ul, #post-content ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

#post-content li {
    margin-bottom: var(--spacing-sm);
}

#post-content blockquote {
    border-left: 3px solid #ddd;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}

#post-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.9rem;
}

#post-content pre {
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

#post-content pre code {
    background: none;
    padding: 0;
}

#post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

#post-content th,
#post-content td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

#post-content th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #333;
}

#post-content tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#post-content tbody tr:hover {
    background-color: #f5f5f5;
}

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

@media (max-width: 800px) {
    .container {
        padding: 1rem 24px;
    }
    
    header {
        margin-bottom: 2rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    #post-content h1 {
        font-size: 1.6rem;
    }
}

/* Music Player Styles */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.music-player:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.music-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
}

.music-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.music-btn.playing {
    color: #007bff;
}

.music-btn .material-icons {
    font-size: 20px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
}

@media (max-width: 600px) {
    .music-player {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .music-btn .material-icons {
        font-size: 18px;
    }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}