/* 平板设备 */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-illustration {
        font-size: 6rem;
    }
}

/* 大屏手机 */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        margin: 1rem 0 0 0;
        max-width: 100%;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
        gap: 0.5rem;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .user-menu {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--border-color);
        margin-top: 0.5rem;
    }
    
    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-illustration {
        font-size: 4rem;
        margin-top: 1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filter {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .icon-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* 横屏手机 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-banner {
        padding: 1rem 0;
    }
    
    .cards-grid {
        margin-bottom: 2rem;
    }
    
    .modal-content {
        max-height: 80vh;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .category-filter,
    .hero-actions,
    .modal,
    .footer,
    .card-actions,
    .add-new-card {
        display: none !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}