/* 平板和手机端响应式样式 */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .banner-content h1 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cemetery-grid,
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* 导航栏响应式 */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Banner响应式 */
    .banner-section {
        height: 450px;
        margin-top: 70px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .banner-nav {
        padding: 0 15px;
    }
    
    .banner-nav button {
        width: 40px;
        height: 40px;
    }
    
    /* 区块样式调整 */
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    /* 关于我们 */
    .about-features {
        flex-direction: column;
        gap: 20px;
    }
    
    /* 陵园卡片 */
    .cemetery-grid {
        grid-template-columns: 1fr;
    }
    
    .cemetery-image {
        height: 200px;
    }
    
    /* 价格表格 */
    .price-table {
        overflow-x: auto;
    }
    
    .price-table table {
        min-width: 600px;
    }
    
    /* 新闻卡片 */
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* 表单样式 */
    .contact-form {
        padding: 30px 20px;
    }
    
    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* 导航栏 */
    .nav-wrapper {
        padding: 10px 0;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    /* Banner */
    .banner-section {
        height: 350px;
    }
    
    .banner-content h1 {
        font-size: 22px;
    }
    
    .banner-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* 区块 */
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    /* 关于我们 */
    .about-text h3 {
        font-size: 22px;
    }
    
    /* 陵园卡片 */
    .cemetery-info {
        padding: 20px;
    }
    
    .cemetery-info h3 {
        font-size: 18px;
    }
    
    /* 新闻 */
    .news-content {
        padding: 20px;
    }
    
    .news-content h3 {
        font-size: 16px;
    }
    
    /* 表单 */
    .contact-form-wrapper h3,
    .contact-info h3 {
        font-size: 20px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* 页脚 */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}

/* 横屏手机优化 */
@media (max-width: 667px) and (orientation: landscape) {
    .banner-section {
        height: 300px;
    }
    
    section {
        padding: 30px 0;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .cemetery-card:hover {
        transform: none;
    }
    
    .news-card:hover {
        transform: none;
    }
    
    .image-frame:hover img {
        transform: none;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .banner-section,
    .contact-section,
    .footer {
        display: none;
    }
    
    section {
        padding: 20px 0;
    }
    
    body {
        font-size: 12pt;
    }
}