/* ==========================================
   共享科技官网 - 自定义样式
   ========================================== */

/* Hero 区域 */
.hero-section h1 {
    font-size: 2.8rem;
    line-height: 1.3;
}
@media (max-width: 768px) {
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section .lead { font-size: 0.95rem; }
    .hero-section { min-height: 70vh !important; }
}

/* 产品服务卡片悬停 */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* 案例卡片悬停 */
.case-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}
.case-card img {
    transition: transform 0.3s ease;
}
.case-card:hover img {
    transform: scale(1.05);
}

/* 文章卡片 */
.article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

/* 文章正文样式 */
.article-body h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.75rem; font-weight: 600; }
.article-body p { margin-bottom: 1rem; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.article-body table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.article-body table th,
.article-body table td { border: 1px solid #dee2e6; padding: 0.5rem 0.75rem; }
.article-body table th { background: #f8f9fa; font-weight: 600; }
.article-body blockquote { border-left: 4px solid #0d6efd; padding: 0.75rem 1.25rem; background: #f8f9fa; margin: 1rem 0; border-radius: 0 8px 8px 0; }
.article-body ul, .article-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.article-body pre { background: #1e293b; color: #e2e8f0; padding: 1rem; border-radius: 8px; overflow-x: auto; }
.article-body code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.article-body a { color: #0d6efd; text-decoration: underline; }
.article-body strong { font-weight: 700; }
.article-body .highlight-box { background: #eff6ff; border: 1px solid #bfdbfe; padding: 1rem 1.25rem; border-radius: 8px; margin: 1rem 0; }

/* FAQ 手风琴 */
.accordion-button:not(.collapsed) {
    background-color: #eff6ff;
    color: #1e40af;
}

/* 页脚链接悬停 */
footer a:hover { color: #fff !important; }

/* 粘性导航栏阴影 */
.navbar { backdrop-filter: blur(10px); background: rgba(255,255,255,0.95) !important; }

/* 键盘焦点与触控目标 */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 3px;
}

.navbar-toggler,
.article-filters .btn,
.pagination .page-link {
    min-height: 44px;
}

.navbar-toggler {
    min-width: 44px;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .service-card:hover,
    .case-card:hover,
    .article-card:hover {
        transform: none;
    }
    .case-card:hover img {
        transform: none;
    }
}
