* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

header h1 {
    color: #0088cc; /* 电报蓝色 */
    margin-bottom: 10px;
}

.search-box {
    display: flex;
    margin-bottom: 20px;
}

#search-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

#search-button {
    padding: 12px 24px;
    background-color: #0088cc;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#search-button:hover {
    background-color: #006699;
}

.channel-options {
    margin-bottom: 20px;
    background-color: white;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.channels-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #555;
}

.channels-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.channel-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.channel-item:hover {
    background-color: #f0f9ff;
}

.channel-item input {
    margin-right: 8px;
}

.channel-name {
    font-weight: 500;
    margin-right: 8px;
}

.subscribers {
    font-size: 12px;
    color: #777;
}

.filter-options {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.filter-options select, .filter-options input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

#results-container {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    padding: 20px;
}

.result-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.result-item:hover {
    background-color: #f8f8f8;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item h3 {
    color: #0088cc;
    margin-bottom: 5px;
}

.result-item .channel-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.result-item .message-preview {
    margin-bottom: 10px;
}

.result-item .meta-info {
    color: #999;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

.result-item .view-link {
    color: #0088cc;
    text-decoration: none;
}

.result-item .view-link:hover {
    text-decoration: underline;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #777;
}

.loading:after {
    content: "...";
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60% { content: "..."; }
    80%, 100% { content: ""; }
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
    border-top: 1px solid #eee;
}

footer a {
    color: #0088cc;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.date-notice {
    background-color: #f0f8ff;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    color: #0088cc;
    font-weight: 500;
    border-left: 3px solid #0088cc;
}

.highlight {
    background-color: #ffffc5;
    padding: 0 2px;
    border-radius: 2px;
}

.pan-links {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.pan-links-title {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.pan-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    background: white;
    border-radius: 4px;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pan-link-content {
    flex: 1;
    margin-right: 10px;
}

.pan-type {
    display: inline-block;
    padding: 2px 8px;
    background: #0088cc;
    color: white;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 4px;
}

.pan-url {
    color: #0066cc;
    word-break: break-all;
    font-family: monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 3px;
    margin: 4px 0;
}

.pan-code {
    display: inline-block;
    background: #e8f0fe;
    padding: 2px 8px;
    border-radius: 3px;
    color: #1a73e8;
    font-size: 13px;
}

.copy-btn {
    padding: 4px 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #218838;
}

.copy-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 1000;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
} 