/* 苏州铂金婚礼官网 - 响应式样式 */

/* ========== 图片自适应基础样式 ========== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 确保所有图片容器正确处理溢出 */
.banner-slide,
.case-card,
.case-card-image-wrapper,
.media-slide,
.team-card,
.honor-card,
.gallery-grid {
    overflow: hidden;
}

/* ========== 平板端 (768px - 1024px) ========== */
@media screen and (max-width: 1024px) {
    :root {
        --container-width: 100%;
        --spacing-lg: 30px;
        --spacing-xl: 50px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .service-list {
        gap: var(--spacing-md);
    }

    .case-image {
        height: 350px;
        width: 100%;
        object-fit: cover;
    }

    .case-name {
        font-size: 1.5rem;
    }

    /* 案例列表页 - 平板 */
    .cases-page .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .cases-page .case-card-image {
        height: 220px;
        width: 100%;
        object-fit: cover;
    }

    /* 关于页 - 平板 */
    .about-page .team-avatar {
        width: 180px;
        height: 240px;
        object-fit: cover;
    }

    .about-page .honor-image {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }

    /* 详情页 - 平板 */
    .detail-page .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-page .gallery-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}

/* ========== 手机端 (< 768px) ========== */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 60px;
        --spacing-lg: 20px;
        --spacing-xl: 40px;
    }

    /* 导航栏 */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-lg);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-item {
        font-size: 1.125rem;
    }

    .menu-toggle {
        display: flex;
    }

    /* Banner - 手机端 */
    .banner-section {
        width: 100%;
    }

    .banner-slide {
        width: 100%;
        min-width: 100%;
    }

    .banner-image {
        width: 100%;
        height: 280px;
        object-fit: cover;
        object-position: center;
    }

    .banner-overlay {
        padding: 20px 15px;
    }

    .banner-desc {
        font-size: 0.625rem;
        letter-spacing: 2px;
    }

    .banner-title {
        font-size: 1.25rem;
    }

    /* Slogan */
    .slogan-section {
        padding: var(--spacing-lg);
        flex-direction: column;
        gap: 15px;
    }

    .slogan-text {
        font-size: 1rem;
        text-align: center;
        white-space: normal;
    }

    .slogan-divider {
        width: 60px;
        flex: none;
    }

    /* 服务 - 手机端 */
    .service-section {
        padding: 0 var(--spacing-md) var(--spacing-lg);
    }

    .section-title {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .service-list {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }

    .service-card {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .service-icon {
        font-size: 1.5rem;
    }

    .service-name {
        font-size: 0.875rem;
    }

    /* 快捷操作 - 手机端2个按钮并排 */
    .quick-actions {
        flex-direction: row;
    }

    .action-btn {
        height: 45px;
        font-size: 0.75rem;
        letter-spacing: 0;
        padding: 0 10px;
    }

    .action-btn .icon {
        width: 16px;
        height: 16px;
    }

    /* 案例 - 首页 */
    .case-section {
        padding: 0 var(--spacing-md) var(--spacing-lg);
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .case-image {
        height: 200px;
        width: 100%;
        object-fit: cover;
    }

    .case-name {
        font-size: 1.125rem;
    }

    .case-desc {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
    }

    .case-tags {
        gap: 10px;
    }

    .case-tag {
        font-size: 0.625rem;
    }

    /* 页脚 */
    .footer {
        padding: var(--spacing-lg);
    }

    .footer-name {
        font-size: 1.25rem;
    }

    .footer-contact p {
        font-size: 0.75rem;
    }
}

/* ========== 小屏手机 (< 375px) ========== */
@media screen and (max-width: 375px) {
    .banner-title {
        font-size: 1.5rem;
    }

    .slogan-text {
        font-size: 0.875rem;
    }

    .case-name {
        font-size: 1.125rem;
    }
}

/* ========== 大屏幕 (> 1400px) ========== */
@media screen and (min-width: 1400px) {
    :root {
        --container-width: 1300px;
    }

    .banner-title {
        font-size: 3rem;
    }

    .case-image {
        height: 500px;
    }
}

/* ========== 案例列表页响应式 ========== */
@media screen and (max-width: 768px) {
    .cases-page .filter-section {
        padding: var(--spacing-md);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cases-page .filter-list {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .cases-page .filter-item {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 0.75rem;
    }

    .cases-page .case-grid-section {
        padding: var(--spacing-md);
    }

    .cases-page .case-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .cases-page .case-card-image {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }

    .cases-page .case-card-name {
        font-size: 1rem;
    }

    .cases-page .case-card-desc {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }

    .cases-page .case-card-tag {
        font-size: 0.625rem;
    }
}

/* ========== 关于页响应式 ========== */
@media screen and (max-width: 768px) {
    .about-page .hero-section {
        height: 40vh;
        min-height: 250px;
        max-height: 350px;
    }

    .about-page .hero-title {
        font-size: 1.75rem;
        letter-spacing: 2px;
    }

    .about-page .hero-slogan {
        font-size: 1rem;
    }

    .about-page .story-section {
        padding: var(--spacing-lg);
    }

    .about-page .story-content {
        font-size: 0.9375rem;
        line-height: 1.8;
    }

    .about-page .concept-section {
        padding: 0 var(--spacing-md) var(--spacing-lg);
    }

    .about-page .concept-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-page .concept-card {
        padding: var(--spacing-md);
    }

    .about-page .concept-icon {
        font-size: 2rem;
    }

    .about-page .concept-name {
        font-size: 1.125rem;
    }

    .about-page .team-section {
        padding: 0 var(--spacing-md) var(--spacing-lg);
    }

    .about-page .team-list {
        grid-template-columns: 1fr;
    }

    .about-page .team-card {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .about-page .team-avatar {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .about-page .team-name {
        font-size: 1.25rem;
    }

    .about-page .team-desc {
        font-size: 0.875rem;
    }

    .about-page .honor-section {
        padding: 0 var(--spacing-md) var(--spacing-lg);
    }

    .about-page .honor-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-page .honor-image {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }

    .about-page .honor-name {
        font-size: 0.9375rem;
    }

    .about-page .cta-section {
        padding: var(--spacing-lg);
    }

    .about-page .cta-title {
        font-size: 1.25rem;
    }

    .about-page .cta-btn {
        padding: 12px 30px;
        font-size: 0.8125rem;
    }
}

/* ========== 联系页响应式 ========== */
@media screen and (max-width: 768px) {
    .contact-page .page-hero {
        padding: calc(var(--header-height) + var(--spacing-lg)) var(--spacing-md) var(--spacing-lg);
    }

    .contact-page .page-title {
        font-size: 1.75rem;
    }

    .contact-page .contact-container {
        padding: var(--spacing-md);
    }

    .contact-page .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-page .contact-card {
        padding: 15px;
    }

    .contact-page .contact-icon {
        font-size: 1.25rem;
    }

    .contact-page .contact-value {
        font-size: 0.9375rem;
    }

    .contact-page .form-section {
        padding: var(--spacing-md);
    }

    .contact-page .form-row {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .contact-page .form-group {
        width: 100%;
    }

    .contact-page .form-label {
        font-size: 0.8125rem;
    }

    .contact-page .form-input,
    .contact-page .form-select {
        padding: 10px 12px;
        font-size: 0.9375rem;
    }

    .contact-page .form-textarea {
        min-height: 100px;
        font-size: 0.9375rem;
    }

    .contact-page .submit-btn {
        padding: 12px;
        font-size: 0.9375rem;
    }
}

/* ========== 案例详情页响应式 ========== */
@media screen and (max-width: 768px) {
    .detail-page .media-section {
        height: 45vh;
        min-height: 250px;
        max-height: 350px;
    }

    .detail-page .media-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .detail-page .media-indicator {
        bottom: 15px;
        right: 15px;
        padding: 4px 12px;
        font-size: 0.75rem;
    }

    .detail-page .title-section {
        padding: var(--spacing-md);
    }

    .detail-page .detail-title {
        font-size: 1.375rem;
    }

    .detail-page .detail-subtitle {
        font-size: 0.9375rem;
    }

    .detail-page .detail-tag {
        font-size: 0.6875rem;
    }

    .detail-page .info-section {
        padding: var(--spacing-md);
    }

    .detail-page .info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .detail-page .info-item {
        display: flex;
        justify-content: space-between;
        text-align: left;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .detail-page .info-item:last-child {
        border-bottom: none;
    }

    .detail-page .content-section {
        padding: var(--spacing-md);
    }

    .detail-page .content-text {
        font-size: 0.9375rem;
        line-height: 1.8;
    }

    .detail-page .gallery-section {
        padding: var(--spacing-md);
    }

    .detail-page .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .detail-page .gallery-image {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    .detail-page .detail-video {
        max-height: 250px;
    }

    .detail-page .bottom-bar {
        flex-direction: row;
        gap: 10px;
        padding: 12px var(--spacing-md);
    }

    .detail-page .bottom-bar .btn {
        flex: 1;
        padding: 12px;
        font-size: 0.8125rem;
    }

    .detail-page .bottom-bar .btn .icon {
        width: 16px;
        height: 16px;
    }

    /* 图片预览 - 手机端 */
    .preview-image {
        max-width: 95%;
        max-height: 70%;
    }

    .preview-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .preview-nav {
        bottom: 20px;
        gap: 20px;
    }

    .preview-prev,
    .preview-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .header,
    .footer,
    .quick-actions,
    .bottom-bar {
        display: none;
    }

    .main-content {
        padding-top: 0;
    }

    .banner-section {
        height: auto;
        max-height: none;
    }

    .case-image {
        height: auto;
    }
}

/* ========== 深色模式支持（可选） ========== */
@media (prefers-color-scheme: dark) {
    /* 如需支持深色模式，可在此添加样式 */
    /* 当前设计为黑白风格，暂不启用深色模式 */
}

/* ========== 减少动画（无障碍） ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
