/* ============================================
   软灵AI+供应链平台 - 主样式文件
   湖北软灵科技有限公司
   ============================================ */

/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1e40af;
    --primary-blue-light: #3b82f6;
    --purple: #9333ea;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    font-size: 16px;
    opacity: 0;
    animation: pageFadeIn 0.4s ease-in-out forwards;
}

/* 页面淡入动画 */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面切换过渡效果 */
body.page-transitioning {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
}

main {
    animation: contentFadeIn 0.6s ease-out 0.15s both;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面内容区域渐进显示 */
section {
    opacity: 0;
    animation: sectionFadeIn 0.6s ease-out both;
}

section:nth-child(1) { animation-delay: 0.2s; }
section:nth-child(2) { animation-delay: 0.3s; }
section:nth-child(3) { animation-delay: 0.4s; }
section:nth-child(4) { animation-delay: 0.5s; }
section:nth-child(5) { animation-delay: 0.6s; }

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 页面加载动画 ========== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--purple) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 容器 ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ========== 导航栏 ========== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 1rem;
    position: relative;
    z-index: 1001;
}

@media (min-width: 640px) {
    nav {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    nav {
        padding: 0 2rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--white);
    font-size: 1.25rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
    transform: translateY(-1px);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: none;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .nav-cta {
        display: block;
    }
}

.nav-cta:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--gray-700);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    z-index: 1001;
    position: relative;
    line-height: 1;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

.mobile-menu-btn:hover {
    color: var(--primary-blue);
}

.mobile-menu-btn:active {
    color: var(--primary-blue);
}

.mobile-menu-btn i {
    font-size: 1.5rem;
    display: block;
    pointer-events: none;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    z-index: 1000;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu .nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu .nav-cta {
    display: block;
    margin-top: 1rem;
    text-align: center;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--purple) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-white:hover {
    background-color: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========== Hero 区域 ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 56rem;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
}

.hero h1 .gradient-text {
    display: block;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

@media (min-width: 640px) {
    .hero p {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========== 卡片 ========== */
.card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* 可点击的案例卡片样式 */
.case-card-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.case-card-clickable:active {
    transform: translateY(-2px);
}

.card[style*="position: relative"] {
    position: relative;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.card:hover .card-image {
    transform: scale(1.05);
}

/* 卡片图片容器 */
.card > div:first-child,
.card > .card-image-wrapper {
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .card-image {
        height: 250px;
    }
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 768px) {
    .card-content {
        padding: 2rem;
    }
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

@media (min-width: 768px) {
    .card-title {
        font-size: 1.5rem;
    }
}

.card-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.9375rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 卡片头部 */
.card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-client {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* 卡片标签容器 */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* 卡片行业标签容器 */
.card-industries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.card-industries .tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
}

.card-industries .tag i {
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

/* 特性标签 */
.feature-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: #eff6ff;
    color: var(--primary-blue);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.feature-tag:hover {
    background-color: #dbeafe;
    transform: translateY(-1px);
}

/* 卡片底部 */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-count {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.case-count i {
    color: var(--primary-blue);
    font-size: 1rem;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.card-link:hover {
    color: var(--primary-blue-dark);
    gap: 0.5rem;
}

.card-link i {
    transition: transform 0.2s ease;
}

.card-link:hover i {
    transform: translateX(2px);
}

/* 卡片元数据 */
.card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.card-meta i {
    color: var(--primary-blue);
    font-size: 1rem;
}

/* 优化卡片内容间距 */
.card-content {
    display: flex;
    flex-direction: column;
}

/* 确保卡片高度一致 */
.grid .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid .card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid .card .card-description {
    flex: 1;
    min-height: 3rem;
}

/* 卡片内按钮样式优化 */
.card .btn,
.card button[style*="background: linear-gradient"] {
    margin-top: auto;
    transition: all 0.3s ease;
}

.card:hover .btn,
.card:hover button[style*="background: linear-gradient"] {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== 网格布局 ========== */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 767px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 标签 ========== */
.tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-blue {
    background-color: #eff6ff;
    color: var(--primary-blue);
    border: 1px solid #dbeafe;
}

.tag-blue:hover {
    background-color: #dbeafe;
    transform: translateY(-1px);
}

.tag-gray {
    background-color: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.tag-gray:hover {
    background-color: var(--gray-200);
}

/* ========== 筛选器 ========== */
.filter-bar {
    padding: 2rem 0;
    background-color: var(--gray-50);
}

.filter-bar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    align-items: center;
}

.filter-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: none;
    background-color: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.filter-btn i {
    font-size: 1rem;
    flex-shrink: 0;
}

.filter-btn span {
    display: inline-block;
}

@media (min-width: 640px) {
    .filter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

.filter-btn:hover {
    background-color: #eff6ff;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.filter-btn.active:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 8px;
    background-color: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.pagination-btn:hover {
    background-color: #eff6ff;
    color: var(--primary-blue);
}

.pagination-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: var(--gray-400);
}

/* ========== 页脚 ========== */
footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--purple) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-description {
    color: var(--gray-400);
    max-width: 28rem;
    line-height: 1.6;
}

.footer-section {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-400);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-copyright-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .footer-copyright-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.footer-copyright {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 移动端隐藏版权信息中的备案链接 */
.footer-copyright .footer-beian {
    display: none;
}

@media (min-width: 768px) {
    .footer-copyright .footer-beian {
        display: inline;
    }
}

.footer-beian-mobile {
    display: block;
    margin: 0;
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-beian-mobile {
        display: none;
    }
}

.footer-legal {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 0.25rem 0;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.footer-legal a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.footer-legal a:hover::after {
    width: 100%;
}

.footer-beian {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-beian:hover {
    color: var(--white);
}

/* 手机号和邮箱链接样式 */
a[href^="tel:"],
a[href^="mailto:"] {
    transition: color 0.3s ease;
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
    color: var(--primary-blue);
}

/* 移动端手机号链接样式优化 */
@media (max-width: 767px) {
    a[href^="tel:"] {
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
        cursor: pointer;
        display: inline-block;
        padding: 0.25rem 0.5rem;
        margin: -0.25rem -0.5rem;
        border-radius: 4px;
    }
    
    a[href^="tel:"]:active {
        background-color: rgba(37, 99, 235, 0.1);
    }
}

/* ========== 工具类 ========== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }
.mb-12 { margin-bottom: 5rem; }
.mb-16 { margin-bottom: 6rem; }
.mb-20 { margin-bottom: 8rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }
.mt-12 { margin-top: 5rem; }

.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-6 { padding-top: 3rem; padding-bottom: 3rem; }
.py-8 { padding-top: 4rem; padding-bottom: 4rem; }
.py-12 { padding-top: 6rem; padding-bottom: 6rem; }
.py-16 { padding-top: 8rem; padding-bottom: 8rem; }
.py-20 { padding-top: 10rem; padding-bottom: 10rem; }

.bg-white { background-color: var(--white); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-blue { background: linear-gradient(135deg, var(--primary-blue) 0%, var(--purple) 100%); }

.text-white { color: var(--white); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========== 动画效果 ========== */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 响应式图片 ========== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== 工具类补充 ========== */
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.cursor-pointer { cursor: pointer; }
.whitespace-nowrap { white-space: nowrap; }

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========== 模态框 ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--gray-600);
}

/* ========== 统计卡片 ========== */
.stats-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--white);
    padding: 3rem 0;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

.stats-content {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 0.25rem;
}

.stat-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ========== 轮播图 ========== */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .carousel-image {
        height: 500px;
    }
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    padding: 2rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background-color: var(--white);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--white);
    width: 30px;
    border-radius: 5px;
}


/* ========== 面包屑导航（构建系统新增） ========== */
.breadcrumb {
    background: var(--gray-100);
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    color: var(--gray-500);
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb li + li::before {
    content: '/';
    color: #d1d5db;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-blue);
}

.breadcrumb [aria-current] {
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw;
}

.breadcrumb a {
    white-space: nowrap;
}

/* ========== GEO 摘要卡（构建系统新增） ========== */
.summary-card {
    background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 100%);
    border: 1px solid #dbeafe;
    border-left: 4px solid var(--accent-a, var(--primary-blue));
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
}

.summary-card h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0 0 0.5rem;
    letter-spacing: 0.05em;
}

.summary-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin: 0 0 0.75rem;
}

.summary-card .summary-meta {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

/* ========== FAQ 折叠面板（构建系统新增） ========== */
.faq-item {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--primary-blue);
    font-weight: 400;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item .faq-answer {
    padding: 0 1.25rem 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0;
}

/* ========== 板块化详情页（构建系统新增） ========== */
.detail-text {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

/* 特性网格（自适应列数） */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #dbeafe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-a, var(--primary-blue));
}

/* 三卡图标 */
.trio-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.trio-icon-red { background: #fee2e2; color: #ef4444; }
.trio-icon-blue { background: #dbeafe; color: var(--accent-a, var(--primary-blue)); }
.trio-icon-green { background: #d1fae5; color: #10b981; }

/* 时间线 */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #dbeafe;
}
.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: 4px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-a, var(--primary-blue));
    border: 3px solid #eff6ff;
    box-shadow: 0 0 0 2px var(--accent-a, var(--primary-blue));
}
.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-a, var(--primary-blue));
    margin-bottom: 0.25rem;
}
.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.5rem;
}
.timeline-desc {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin: 0;
}

/* 客户证言 */
.quote-card {
    margin: 0;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem 2.25rem;
    position: relative;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.06);
}
.quote-mark {
    font-size: 2.5rem;
    color: var(--accent-a, var(--primary-blue));
    opacity: 0.35;
    display: block;
    line-height: 1;
    margin-bottom: 0.75rem;
}
.quote-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--gray-900);
    margin: 0 0 1rem;
}
.quote-author {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.quote-author::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--accent-a, var(--primary-blue));
}
.quote-role {
    font-weight: 400;
    color: var(--gray-500);
}

/* 数据表格 */
.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: var(--white);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    min-width: 480px;
}
.data-table th {
    text-align: left;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--accent-a, var(--primary-blue)) 0%, var(--accent-b, var(--purple)) 100%);
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
}
.data-table td {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    color: var(--gray-600);
    line-height: 1.6;
}
.data-table tbody tr:nth-child(even) { background: #f8fafc; }

/* 图集 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}
.gallery-item img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.gallery-item figcaption {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: center;
}

/* ========== 动效系统（统一节奏/级联入场/悬浮反馈/数字滚动） ========== */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01s !important; transition-duration: 0.01s !important; }
}

/* --- 滚动入场（JS 加 .js-anim 后才隐藏初始态，无 JS 时内容正常可见） --- */
.js-anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.js-anim .reveal.in-view { opacity: 1; transform: none; }

.js-anim .stagger-children > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.js-anim .stagger-children.in-view > * { opacity: 1; transform: none; }
.js-anim .stagger-children.in-view > *:nth-child(2) { transition-delay: 0.07s; }
.js-anim .stagger-children.in-view > *:nth-child(3) { transition-delay: 0.14s; }
.js-anim .stagger-children.in-view > *:nth-child(4) { transition-delay: 0.21s; }
.js-anim .stagger-children.in-view > *:nth-child(5) { transition-delay: 0.28s; }
.js-anim .stagger-children.in-view > *:nth-child(6) { transition-delay: 0.35s; }
.js-anim .stagger-children.in-view > *:nth-child(7) { transition-delay: 0.42s; }
.js-anim .stagger-children.in-view > *:nth-child(n+8) { transition-delay: 0.49s; }

/* --- 卡片悬浮 --- */
.card { transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -8px rgba(30, 58, 138, 0.16); }
.card:hover, .card:hover > * { transition-delay: 0s !important; }

/* --- 按钮反馈 --- */
.btn { transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

/* --- 导航下划线（中展式） --- */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.25s var(--ease-out);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* --- 首页 Hero 内容级联入场 + 向下箭头浮动 --- */
@keyframes heroRise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}
.hero-content > * { animation: heroRise 0.7s var(--ease-out) backwards; }
.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.24s; }
.hero-scroll { animation: floatY 2.2s ease-in-out infinite; }
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* --- FAQ 展开过渡 --- */
details.faq-item[open] .faq-answer { animation: fadeUp 0.3s var(--ease-out); }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* --- 页脚链接反馈 --- */
.footer-links a { transition: color 0.2s ease, transform 0.2s var(--ease-out); display: inline-block; }
.footer-links a:hover { transform: translateX(3px); }

/* --- 标签微缩放 --- */
.tag { transition: transform 0.2s var(--ease-out); }
.tag:hover { transform: scale(1.05); }
