/* 全站共用样式：在各页面内联样式之后加载 */

h1, h2, h3 {
    text-wrap: balance;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.header {
    transition: padding-bottom 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* 移动端侧滑菜单遮罩 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.mobile-nav-overlay.active {
    display: block;
}

/* “即将开放”等提示框 */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem 3rem;
    max-width: calc(100vw - 40px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-content {
    text-align: center;
}

.custom-alert-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #333;
    white-space: normal;
}

.custom-alert-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.4rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.custom-alert-btn:hover {
    transform: translateY(-2px);
}

.custom-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 480px) {
    .custom-alert {
        padding: 1.75rem 2rem;
    }

    /* 页脚在小屏上保持两列，避免列表过长 */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 1rem;
    }

    /* 售后中心服务卡片两列显示 */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .services-grid .service-card {
        padding: 1.5rem 0.75rem;
    }
}
