/**
 * tt888av.com &#x4E3B;&#x6837;&#x5F0F;&#x6587;&#x4EF6;
 * &#x79FB;&#x52A8;&#x7AEF; SEO &#x4F18;&#x5316;&#x7248;&#x672C;
 */

/* ========== &#x5168;&#x5C40;&#x6837;&#x5F0F; ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: #f5f5f5; font-size: 16px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ========== &#x5934;&#x90E8; ========== */
.header { background: #1a1a2e; color: #fff; padding: 15px 0; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: bold; color: #e94560; display: block; padding: 8px 0; }
.nav { display: flex; gap: 30px; }
.nav a { color: #fff; transition: color 0.3s; padding: 8px 12px; min-height: 44px; display: flex; align-items: center; }
.nav a:hover { color: #e94560; }
.search-form { display: flex; gap: 10px; }
.search-form input { padding: 8px 15px; border: none; border-radius: 5px; width: 300px; min-height: 44px; font-size: 16px; }
.search-form button { padding: 8px 20px; background: #e94560; color: #fff; border: none; border-radius: 5px; cursor: pointer; min-height: 44px; font-size: 16px; }

/* ========== &#x5E7F;&#x544A;&#x4F4D; ========== */
.ad-header { margin: 20px auto; text-align: center; }
.ad-header img { max-width: 960px; width: 100%; height: 60px; object-fit: cover; }
.ad-header-category { margin: 15px auto; text-align: center; max-width: 960px; }
.ad-header-category img { max-width: 960px; width: 100%; height: 60px; object-fit: cover; }
.ad-sidebar { margin: 20px 0; text-align: center; }
.ad-footer { margin: 20px auto; text-align: center; max-width: 960px; }
.ad-footer img { max-width: 960px; width: 100%; height: 60px; object-fit: cover; }

/* ========== 广告卡片 ========== */
.ad-card { background: #fff; border-radius: 10px; overflow: hidden; border: none; }
.ad-card:hover { transform: translateY(-5px); }
.ad-card-cover { position: relative; padding-top: 56.25%; background: #f5f5f5; }
.ad-card-cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-card-label { position: absolute; top: 8px; right: 8px; background: rgba(233, 69, 96, 0.9); color: #fff; padding: 3px 8px; font-size: 11px; border-radius: 3px; z-index: 10; }
.ad-card-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* ========== &#x4E3B;&#x5185;&#x5BB9;&#x533A; ========== */
.main-content { display: flex; gap: 20px; margin-top: 20px; }
.content-left { flex: 1; }
.content-right { width: 300px; }

/* ========== &#x677F;&#x5757;&#x6807;&#x9898; ========== */
.section-title { font-size: 20px; margin-bottom: 15px; padding-left: 15px; border-left: 4px solid #e94560; line-height: 1.3; }
h1, h2, h3 { line-height: 1.3; margin-bottom: 10px; }

/* ========== &#x89C6;&#x9891;&#x7F51;&#x683C; ========== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.video-card { background: #fff; border-radius: 10px; overflow: hidden; touch-action: manipulation; will-change: transform; }
.video-card:hover { transform: translateY(-5px); }
.video-card.loaded { opacity: 1; }
.video-cover { position: relative; padding-top: 56.25%; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
.video-cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.video-cover img.loaded, .video-cover img[src] { opacity: 1; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.video-info { padding: 12px; }
.video-title { font-size: 14px; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.4; min-height: 36px; }
.video-meta { display: flex; justify-content: space-between; font-size: 12px; color: #999; }

/* ========== &#x4FA7;&#x8FB9;&#x680F; ========== */
.sidebar-box { background: #fff; padding: 15px; border-radius: 10px; margin-bottom: 20px; }
.video-list { list-style: none; }
.video-list li { padding: 10px 0; border-bottom: 1px solid #eee; }
.video-list li:last-child { border-bottom: none; }
.video-list a { display: flex; gap: 10px; }
.video-list img { width: 100px; height: 60px; object-fit: cover; border-radius: 5px; }
.video-list-title { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ========== &#x5206;&#x7C7B;&#x6807;&#x7B7E; ========== */
.category-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.category-tag { padding: 8px 20px; background: #fff; border-radius: 20px; font-size: 14px; transition: all 0.3s; min-height: 36px; display: inline-flex; align-items: center; }
.category-tag:hover, .category-tag.active { background: #e94560; color: #fff; }

/* ========== &#x5E95;&#x90E8; ========== */
.footer { background: #1a1a2e; color: #fff; padding: 30px 0; margin-top: 40px; text-align: center; }
.footer p { margin-bottom: 10px; color: #999; text-align: center; }
.footer a { color: #999; transition: color 0.3s; }
.footer a:hover { color: #e94560; }

/* ========== &#x9875;&#x9762;&#x6807;&#x9898; ========== */
.page-title { padding: 30px 0; font-size: 28px; }

/* ========== &#x79FB;&#x52A8;&#x7AEF;&#x54CD;&#x5E94;&#x5F0F; - &#x767E;&#x5EA6; SEO &#x4F18;&#x5316; ========== */
@media screen and (max-width: 768px) {
    .container { padding: 0 10px; }
    
    .header-content { flex-direction: column; gap: 10px; }
    .logo { font-size: 20px; margin-bottom: 5px; display: block; padding: 8px 0; }
    .nav { gap: 10px; font-size: 14px; flex-wrap: wrap; justify-content: center; }
    .nav a { padding: 8px 12px; min-height: 44px; display: flex; align-items: center; }
    
    .search-form { width: 100%; flex-direction: column; }
    .search-form input { width: 100%; max-width: 100%; min-height: 44px; font-size: 16px; }
    .search-form button { padding: 12px 20px; min-height: 44px; font-size: 16px; }
    
    .main-content { flex-direction: column; }
    .content-left { width: 100%; }
    .content-right { width: 100%; }
    
    .sidebar-box { display: none; }
    .ad-sidebar { display: none; }
    
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .video-card { border-radius: 8px; }
    .video-info { padding: 8px; }
    .video-title { font-size: 13px; line-height: 1.4; min-height: 36px; }
    .video-meta { font-size: 11px; }
    .video-cover { border-radius: 6px; }
    
    .category-tags { gap: 5px; overflow-x: auto; white-space: nowrap; padding-bottom: 5px; }
    .category-tag { padding: 6px 15px; font-size: 13px; border-radius: 15px; min-height: 36px; display: inline-flex; align-items: center; }
    
    .section-title { font-size: 18px; padding-left: 10px; margin-bottom: 12px; }
    
    .ad-footer img { max-width: 100%; height: auto; }
    
    body { font-size: 16px; line-height: 1.6; }
    h1, h2, h3 { line-height: 1.3; margin-bottom: 10px; }
}

@media screen and (max-width: 480px) {
    .logo { font-size: 18px; padding: 6px 0; }
    .nav { gap: 5px; font-size: 13px; }
    .nav a { padding: 6px 10px; }
    .search-form input { min-height: 40px; font-size: 14px; }
    .search-form button { padding: 10px 15px; min-height: 40px; }
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .video-title { font-size: 12px; line-height: 1.3; min-height: 32px; }
    .category-tag { padding: 5px 12px; font-size: 12px; }
    .section-title { font-size: 16px; }
    
    .header { padding: 10px 0; }
    .video-card { margin-bottom: 8px; }
}

@media (hover: none) and (pointer: coarse) {
    a, button { min-height: 44px; }
    .video-card { touch-action: manipulation; }
}

/* ========== 导航下拉菜单 ========== */
.nav-dropdown { position: relative; display: inline-block; }
.dropdown-toggle { color: #fff; transition: color 0.3s; padding: 8px 12px; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.dropdown-toggle:hover { color: #e94560; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 180px;
    z-index: 1000;
    padding: 10px 0;
    max-height: 400px;
    overflow-y: auto;
}
.dropdown-menu a {
    color: #333;
    padding: 10px 20px;
    display: block;
    transition: all 0.3s;
    font-size: 14px;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #e94560;
    padding-left: 25px;
}
.nav-dropdown:hover .dropdown-menu { display: block; }

/* 移动端下拉菜单优化 */
@media screen and (max-width: 768px) {
    .nav-dropdown { width: 100%; }
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: #1a1a2e;
        max-height: none;
        display: none;
    }
    .dropdown-menu.show { display: block; }
    .dropdown-menu a {
        color: #fff;
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .dropdown-menu a:hover {
        background: rgba(233, 69, 96, 0.2);
        color: #e94560;
        padding-left: 15px;
    }
    .dropdown-toggle { justify-content: center; }
}
