/* 全局样式 */
:root {
    --telegram-blue: #0088cc;
    --telegram-dark: #0e1621;
    --telegram-light: #54a3db;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-top: 56px;
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0.25rem 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--telegram-blue);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* 主横幅样式 */
.hero-section {
    background: #ffffff;
    padding: 80px 0;
    border-bottom: 1px solid #e8e8e8;
}


/* Telegram官方Logo样式 */
.tl_main_logo {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.tl_main_logo:hover {
    transform: scale(1.02);
}

.tl_main_logo_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.tl_logo_icon {
    width: 72px;
    height: 72px;
    animation: float 3s ease-in-out infinite;
}

.tl_main_logo_title_image {
    max-width: 288px;
    height: auto;
}

/* 毛玻璃下载卡片 */
.download-card-mini {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.download-card-mini:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.download-card-mini i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.download-card-mini span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 白色背景下的下载卡片 */
.download-card-mini-white {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-card-mini-white:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.download-card-mini-white i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.download-card-mini-white span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--telegram-blue);
    border-color: var(--telegram-blue);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.btn-primary:hover {
    background-color: var(--telegram-light);
    border-color: var(--telegram-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.btn-outline-primary {
    color: white;
    border-color: white;
}

.btn-outline-primary:hover {
    background-color: white;
    color: var(--telegram-blue);
    border-color: white;
}

.btn-success {
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-dark {
    transition: all 0.3s ease;
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 58, 64, 0.4);
}

/* 功能卡片样式 */
.feature-card {
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

/* 下载卡片样式 */
.download-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-card:hover::before {
    opacity: 1;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.download-card i {
    transition: all 0.3s ease;
}

.download-card:hover i {
    transform: scale(1.1);
    color: var(--telegram-light) !important;
}

/* 章节样式 */
section {
    position: relative;
    overflow: hidden;
}

.bg-light {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%) !important;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, var(--telegram-dark) 0%, #1a1a2e 100%) !important;
    position: relative;
}

footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer h5 a {
    color: white !important;
    transition: color 0.3s ease;
}

footer h5 a:hover {
    color: var(--telegram-blue) !important;
}

footer ul li a {
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

footer ul li a:hover {
    color: white !important;
    padding-left: 5px;
}

.footer_telegram_description {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer_mobile h6 {
    font-size: 1rem;
    margin-bottom: 0;
}

.footer_mobile h6 a {
    color: white !important;
}

footer .bi {
    transition: all 0.3s ease;
}

footer .bi:hover {
    transform: scale(1.2);
    color: var(--telegram-blue) !important;
}

/* 隐藏桌面版页脚在移动端 */
@media (max-width: 767px) {
    .footer_desktop {
        display: none !important;
    }
}

/* 隐藏移动版页脚在桌面端 */
@media (min-width: 768px) {
    .footer_mobile {
        display: none !important;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--telegram-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--telegram-light);
}

/* 动画延迟类 */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .tl_main_logo_wrap {
        flex-direction: column;
        gap: 10px;
    }
    
    .tl_logo_icon {
        width: 60px;
        height: 60px;
    }
    
    .tl_main_logo_title_image {
        max-width: 200px;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .download-card-mini,
    .download-card-mini-white {
        width: 90px;
        height: 90px;
    }
    
    .download-card-mini i,
    .download-card-mini-white i {
        font-size: 1.8rem !important;
    }
    
    .download-card-mini span,
    .download-card-mini-white span {
        font-size: 13px;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .download-card {
        margin-bottom: 20px;
    }
    
    footer .d-flex.gap-3 {
        justify-content: center;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(45deg, var(--telegram-blue), var(--telegram-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 悬浮提示样式 */
[data-bs-toggle="tooltip"] {
    cursor: pointer;
}

/* 特殊效果 */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

/* 平滑过渡 */
* {
    scroll-behavior: smooth;
}

/* 导航栏滚动效果 */
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
}

/* 列表样式 */
ul.list-unstyled li {
    margin-bottom: 8px;
}

/* 徽章样式 */
.badge {
    padding: 5px 10px;
    font-weight: 500;
}

/* 自定义选择文本颜色 */
::selection {
    background-color: var(--telegram-blue);
    color: white;
}

::-moz-selection {
    background-color: var(--telegram-blue);
    color: white;
}