* {
    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;
    background: #fff;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page {
    max-width: 750px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.navbar-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.navbar-back {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

.container {
    padding: 70px 16px 16px;
}

.search-bar {
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    border: none;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-input::placeholder {
    color: #999;
}

.category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.category-item {
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.category-item.active {
    background: #07c160;
    color: #fff;
}

.category-item.question-btn {
    background: #f5f5f5;
    color: #666;
}

.loading, .empty {
    text-align: center;
    padding: 80px 0;
    color: #999;
    font-size: 14px;
}

.blog-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s;
}

.blog-item:active {
    transform: scale(0.98);
}

.blog-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.blog-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.detail-header {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.detail-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.detail-time {
    font-size: 12px;
    color: #999;
}

.copy-text {
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

.copy-text:active {
    opacity: 0.7;
}

.detail-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    min-height: 200px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media screen and (min-width: 750px) {
    .navbar {
        border-radius: 0;
    }
    
    .container {
        padding-top: 80px;
    }
}

@media screen and (max-width: 375px) {
    .blog-title {
        font-size: 16px;
    }
    
    .blog-content {
        font-size: 14px;
    }
    
    .detail-title {
        font-size: 20px;
    }
    
    .detail-content {
        font-size: 15px;
    }
}
