/* 海角社区修车改装视频社区 - 外部CSS样式表 */

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    input[type="text"] {
        width: 100% !important;
    }
    
    h1 { font-size: 36px; }
    h2 { font-size: 24px; }
    h3 { font-size: 18px; }
    
    .container {
        grid-template-columns: 1fr !important;
    }
}

/* 视频卡片响应式 */
@media (max-width: 480px) {
    h1 { font-size: 28px; }
    h2 { font-size: 20px; }
    button { padding: 10px 16px; font-size: 14px; }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* 视频卡片悬停效果 */
.video-card {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

/* 按钮交互 */
button:active {
    transform: scale(0.97);
}

/* 链接悬停 */
a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d9ff;
    transition: width 0.3s ease-out;
}

a:hover::after {
    width: 100%;
}

/* 搜索框焦点 */
input[type="text"]:focus {
    border-color: #ff6b35 !important;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3) !important;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 打印样式 */
@media print {
    .noise { display: none !important; }
    header, footer { display: none; }
}
