* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

.telegram-container {
    max-width: 100%;
    margin: 0 auto;
    background-color: #fff;
}

.channel-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channel-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.channel-title {
    font-size: 17px;
    font-weight: 500;
    color: #000;
}

.channel-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #707579;
}

.channel-content {
    padding: 16px;
}

.message {
    margin-bottom: 16px;
}

.message-content {
    font-size: 15px;
    line-height: 1.5;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.category-item {
    background-color: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.description {
    margin-bottom: 16px;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.services, .features {
    margin-bottom: 16px;
}

.service-item, .feature-item {
    padding: 12px;
    margin-bottom: 8px;
    background-color: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
}

.divider {
    text-align: center;
    margin: 16px 0;
    color: #707579;
}

.contact-info {
    margin-bottom: 16px;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.channel-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.channel-link {
    display: block;
    text-align: center;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.footer-info {
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
}

.views {
    margin-top: 8px;
    color: #707579;
    font-size: 13px;
}

/* 链接样式 */
a {
    color: #2481cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .telegram-container {
        max-width: 600px;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f0f0f;
        color: #fff;
    }

    .channel-header {
        background-color: #0f0f0f;
        border-bottom-color: #2d2d2d;
    }

    .channel-title {
        color: #fff;
    }

    .category-item, .description, .service-item, .feature-item, .contact-info, .channel-link, .footer-info {
        background-color: #1a1a1a;
        color: #fff;
    }

    .channel-link {
        color: #fff;
    }

    a {
        color: #64baf0;
    }
}

.telegram-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #0088cc;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.telegram-button:hover {
    background-color: #0077b3;
    text-decoration: none;
}

.telegram-button i {
    font-size: 18px;
}

/* 暗色模式下的按钮样式 */
@media (prefers-color-scheme: dark) {
    .telegram-button {
        background-color: #0088cc;
    }
    
    .telegram-button:hover {
        background-color: #0077b3;
    }
} 