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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #ffffff;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-btn.active {
    background: #c084fc;
    border-color: #c084fc;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #c084fc, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.telegram-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
}

.telegram-link:hover {
    text-decoration: underline;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: #c084fc;
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
}

.search-btn {
    background: linear-gradient(45deg, #c084fc, #a855f7);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 132, 252, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 132, 252, 0.4);
}

.posts-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.posts-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ajax-search-btn {
    background: linear-gradient(45deg, #60a5fa, #3b82f6);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.ajax-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

.ajax-search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.prompt-section {
    text-align: center;
    margin: 40px 0;
}

.prompt-text {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.tip-text {
    color: #94a3b8;
    font-size: 0.9rem;
    font-style: italic;
}

.tip-text kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #c084fc;
}

.user-result-container {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-card {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block;
}

.user-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
}

.user-handle {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 15px;
}

.user-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.user-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-bio {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-align: left;
}

.user-bio p {
    color: #e2e8f0;
    line-height: 1.5;
    margin-bottom: 10px;
}

.bio-link-container {
    margin-top: 10px;
}

.bio-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease;
}

.bio-link:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.5);
    text-decoration: none;
}

.stats-section,
.details-section {
    margin: 30px 0;
}

.stats-section h3,
.details-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.details-grid {
    display: grid;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
}

.detail-label {
    color: #cbd5e1;
}

.detail-value {
    color: #ffffff;
    font-weight: 500;
    word-break: break-all;
}

/* SecUID 特殊样式 */
.secuid-value {
    cursor: pointer;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 300px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
}

.secuid-value:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.secuid-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

.copy-icon {
    opacity: 0.7;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.secuid-value:hover .copy-icon {
    opacity: 1;
}

/* 复制成功提示动画 */
.secuid-copied {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
}

.secuid-copied .copy-icon {
    animation: copySuccess 0.6s ease;
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* User ID 特殊样式 */
.userid-value {
    cursor: pointer;
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 200px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
}

.userid-value:hover {
    background: rgba(251, 146, 60, 0.2);
    border-color: rgba(251, 146, 60, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.3);
}

.userid-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

.userid-value .copy-icon {
    opacity: 0.7;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.userid-value:hover .copy-icon {
    opacity: 1;
}

/* User ID 复制成功提示动画 */
.userid-copied {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
}

.userid-copied .copy-icon {
    animation: copySuccess 0.6s ease;
}

.show-following-btn {
    background: linear-gradient(45deg, #c084fc, #a855f7);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 132, 252, 0.3);
    margin-top: 20px;
}

.show-following-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 132, 252, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-title {
        font-size: 2rem;
    }

    .search-container {
        flex-direction: column;
        gap: 15px;
    }

    .search-input,
    .search-btn,
    .posts-btn,
    .copy-btn {
        width: 100%;
    }

    .user-card {
        padding: 20px;
    }

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

    .header-nav {
        gap: 5px;
    }

    .nav-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* SecUID 和 User ID 移动端优化 */
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .secuid-value,
    .userid-value {
        width: 100%;
        max-width: none;
        font-size: 0.8rem;
    }

    .secuid-text,
    .userid-text {
        font-size: 0.75rem;
    }

    /* 复制提示在移动端的位置调整 */
    #copy-toast {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        right: 10px !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }

    .user-avatar {
        width: 100px;
        height: 100px;
    }

    .user-name {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .user-meta {
        flex-direction: column;
        gap: 10px;
    }

    .user-actions {
        flex-direction: column;
    }
}

/* Footer 样式 */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-text {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.footer-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #c084fc;
    text-decoration: underline;
}

/* Video Card 样式 */
.video-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-cover-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video-cover {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.video-meta {
    margin: 20px 0;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.author-details {
    text-align: left;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px 0;
}

.author-handle {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 0;
}

.video-description {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-align: left;
}

.video-description p {
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
}

/* Video ID 特殊样式 */
.videoid-value {
    cursor: pointer;
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 250px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
}

.videoid-value:hover {
    background: rgba(192, 132, 252, 0.2);
    border-color: rgba(192, 132, 252, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(192, 132, 252, 0.3);
}

.videoid-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

.videoid-value .copy-icon {
    opacity: 0.7;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.videoid-value:hover .copy-icon {
    opacity: 1;
}

/* Video ID 复制成功提示动画 */
.videoid-copied {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
}

.videoid-copied .copy-icon {
    animation: copySuccess 0.6s ease;
}

/* 视频页面响应式优化 */
@media (max-width: 768px) {
    .video-card {
        padding: 20px;
    }

    .video-cover-container {
        max-width: 250px;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

    .author-details {
        text-align: center;
    }

    .videoid-value {
        width: 100%;
        max-width: none;
        font-size: 0.8rem;
    }

    .videoid-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .author-avatar {
        width: 50px;
        height: 50px;
    }

    .author-name {
        font-size: 1rem;
    }
}