/* 首页专属样式 - 高端企业门户风格 */
:root {
    --font-display: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* 全局防止横向滚动 */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* 纯色渐变背景 - 极简 Vercel 风格 */
.home-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 0;
    filter: blur(3px);
    transform: scale(1.02);
}
.home-hero-bg.loaded { opacity: 1; }
.home-hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(10,22,40,0.5) 0%, rgba(10,22,40,0.75) 50%, rgba(10,22,40,0.9) 100%);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* 动态网格 Canvas */
.home-hero-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* 必应版权信息 */
.bing-copyright {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    z-index: 2;
    max-width: 280px;
    text-align: right;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* 径向光晕效果 */
.home-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 0%,
        rgba(59, 130, 246, 0.12) 0%,
        transparent 50%
    );
    z-index: 0;
    pointer-events: none;
}

/* 噪点纹理叠加 */
.home-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    z-index: 1;
    pointer-events: none;
}
.home-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 1000px;
}
.home-hero-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroLogoIn 0.5s ease 0.1s both;
}
.home-hero-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.home-hero-logo span {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}
@keyframes heroLogoIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.home-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    animation: heroTitleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
@keyframes heroTitleIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.home-hero-slogan {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2.5vw, 1.25rem);
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.5em;
    margin-bottom: 3.5rem;
    animation: heroSloganIn 0.5s ease 0.5s both;
}
@keyframes heroSloganIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.home-hero-divider {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.4);
    margin: 0 auto 3rem;
    animation: heroDividerIn 0.5s ease 0.6s both;
}
@keyframes heroDividerIn {
    from { opacity: 0; width: 0; }
    to { opacity: 1; width: 60px; }
}
.home-hero-desc {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.7);
    line-height: 2;
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: heroDescIn 0.5s ease 0.7s both;
}
@keyframes heroDescIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.home-hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroActionsIn 0.5s ease 0.8s both;
}
@keyframes heroActionsIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.home-hero-actions .btn-hero {
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: var(--radius-xl); /* iOS 风格圆角 */
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s ease, color 0.2s ease;
}
.home-hero-actions .btn-hero:active {
    transform: scale(0.97);
}
.home-hero-actions .btn-hero-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.home-hero-actions .btn-hero-primary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}
.home-hero-actions .btn-hero-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.home-hero-actions .btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}
.home-hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: heroScrollIn 0.5s ease 1s both;
    cursor: pointer;
    transition: color 0.15s;
}
.home-hero-scroll:hover { color: #fff; }
.home-hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    margin: 1rem auto 0;
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 0.3; }
    50% { transform: scaleY(1.5); opacity: 0.8; }
}
@keyframes heroScrollIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 文字逐字显现动画 */
.text-reveal .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    animation: charReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 产品展示区块 - 专业商务风格 */
.home-products {
    padding: 9rem 2rem 7rem; /* 增加留白 */
    background: #fff;
    position: relative;
    overflow: hidden;
}
/* 背景装饰 - 更柔和 */
.home-products::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%); /* 更淡 */
    pointer-events: none;
}
.home-products-grid {
    display: grid;
    gap: 2.5rem; /* 增加间距 */
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    /* 默认3列 */
    grid-template-columns: repeat(3, 1fr);
}
/* 根据产品数量动态调整列数 */
.home-products-grid.products-1 { grid-template-columns: 400px; justify-content: center; }
.home-products-grid.products-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.home-products-grid.products-3 { grid-template-columns: repeat(3, 1fr); }
.home-products-grid.products-4 { grid-template-columns: repeat(3, 1fr); }
.home-products-grid.products-5 { grid-template-columns: repeat(3, 1fr); }
.home-products-grid.products-6 { grid-template-columns: repeat(3, 1fr); }

/* 产品卡片 - 呼吸感优化 */
.product-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px; /* 更圆润的边角 */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); /* 更丝滑的动效 */
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02); /* 极淡的基础阴影 */
}
/* 卡片悬停效果 */
.product-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08); /* 弥散的大投影 */
    transform: translateY(-8px);
}

/* 产品图片容器 */
.product-card-image {
    width: 100%;
    height: 260px; /* 稍微增加高度，更大气 */
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    border-bottom: 1px solid transparent; /* 移除明显的分割线 */
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-image img {
    transform: scale(1.08);
}
/* 图片占位图标 */
.product-card-image.placeholder::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 16px;
}

/* 产品内容区 */
.product-card-content {
    padding: 2.25rem; /* 增加内边距，提升呼吸感 */
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* 产品标题 */
.product-card h3 {
    font-size: 1.25rem; /* 稍微加大标题 */
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 1rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.5rem;
}

/* 产品描述 */
.product-card p {
    font-size: 0.95rem; /* 字号微调 */
    color: #64748b;
    line-height: 1.75; /* 增加行高 */
    margin-bottom: 2rem; /* 增加间距 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.4rem;
}

/* 产品元信息栏 */
.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    gap: 0.75rem;
}

/* 版本标签 */
.product-card-version {
    font-size: 0.75rem;
    color: #475569;
    background: #f8fafc;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Gitee 链接 */
.product-card-source {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    background: #f8fafc;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}
.product-card-source:hover {
    color: #0ea5e9;
    background: #e0f2fe;
}
.product-card-source svg {
    width: 14px;
    height: 14px;
}

/* 查看详情按钮 */
.product-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.2s ease;
}
.product-card-action svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}
.product-card:hover .product-card-action {
    color: #1d4ed8;
}
.product-card:hover .product-card-action svg {
    transform: translateX(3px);
}

/* 骨架屏加载状态 */
.skeleton-card {
    background: linear-gradient(90deg, 
        var(--color-bg-card) 0%, 
        var(--color-bg-card-hover) 50%, 
        var(--color-bg-card) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease infinite;
    border-radius: 20px;
    height: 400px;
    border: 1px solid var(--color-border);
}
@keyframes skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* 加载/空状态 */
.products-loading,
.products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
    color: #94a3b8;
    font-size: 0.9375rem;
    background: #f9fafb;
    border-radius: 20px;
    border: 1px dashed #e2e8f0;
}
.products-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.75rem;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 夜间模式适配 */
[data-theme="dark"] .home-products {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
}
[data-theme="dark"] .home-products::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
}
[data-theme="dark"] .home-products .home-section-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
[data-theme="dark"] .home-products .home-section-title {
    color: #f1f5f9;
}
[data-theme="dark"] .home-products .home-section-line {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}
[data-theme="dark"] .product-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08); /* 调整为极淡白线 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .product-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .product-card-image {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .product-card h3 {
    color: #e2e8f0;
}
[data-theme="dark"] .product-card p {
    color: #94a3b8;
}
[data-theme="dark"] .product-card-meta {
    border-top-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .product-card-version {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .product-card-source {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
}
[data-theme="dark"] .product-card-source:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}
[data-theme="dark"] .product-card-action {
    color: #60a5fa;
}
[data-theme="dark"] .product-card:hover .product-card-action {
    color: #93c5fd;
}
[data-theme="dark"] .products-loading,
[data-theme="dark"] .products-empty {
    color: #64748b;
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .products-loading::before {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: #60a5fa;
}

/* 授权平台跳转卡片 */
.product-card-auth-platform {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 3rem;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    min-height: 360px;
}
.auth-platform-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 24px;
    color: #fff;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}
.auth-platform-icon svg {
    width: 40px;
    height: 40px;
}
.product-card-auth-platform h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 1rem;
}
.product-card-auth-platform p {
    font-size: 1rem;
    color: #64748b;
    max-width: 480px;
    margin: 0 0 2.5rem;
    line-height: 1.7;
}
.btn-auth-platform {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.btn-auth-platform svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}
.btn-auth-platform:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
}
.btn-auth-platform:hover svg {
    transform: translateX(4px);
}
/* 夜间模式 */
[data-theme="dark"] .product-card-auth-platform {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .product-card-auth-platform h3 {
    color: #f1f5f9;
}
[data-theme="dark"] .product-card-auth-platform p {
    color: #94a3b8;
}

/* 响应式 */
@media (max-width: 1024px) {
    .home-products-grid { grid-template-columns: repeat(2, 1fr) !important; max-width: 700px; }
    .home-products-grid.products-1 { grid-template-columns: 1fr !important; max-width: 400px; }
}
@media (max-width: 640px) {
    .home-products { padding: 5rem 1.25rem 4rem; }
    .home-products-grid { grid-template-columns: 1fr !important; max-width: 400px; }
    .product-card-image { height: 220px; }
    .product-card-content { padding: 1.75rem; }
    .product-card h3 { font-size: 1.15rem; min-height: 3.2rem; }
    .product-card p { font-size: 0.9rem; -webkit-line-clamp: 2; min-height: 2.8rem; }
    .product-card-auth-platform { padding: 4rem 2rem; min-height: 300px; }
    .auth-platform-icon { width: 64px; height: 64px; margin-bottom: 1.5rem; }
    .auth-platform-icon svg { width: 32px; height: 32px; }
    .product-card-auth-platform h3 { font-size: 1.35rem; }
    .product-card-auth-platform p { font-size: 0.9rem; margin-bottom: 2rem; }
    .btn-auth-platform { padding: 0.875rem 2rem; font-size: 0.9rem; }
}

/* 服务板块 - 科技风格 */
.home-services {
    padding: 12rem 2rem; /* 增加呼吸感 */
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-darker) 100%);
    position: relative;
    overflow: hidden;
}
.home-services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
.home-section-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
}
.home-section-tag {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: inline-block;
    opacity: 0.9;
}
.home-section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    line-height: 1.2;
}
.home-section-line {
    width: 60px;
    height: 2px;
    background: var(--color-primary);
    margin: 0 auto;
    border-radius: 2px;
    opacity: 0.8;
}

/* 不对称网格布局 - Vercel 风格 */
.home-services-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: 1px; /* 微小圆角 */
}

/* 第一行：主打服务(2fr) + 常规服务(1fr) */
.home-services-row-first {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1px;
}

/* 第二行：两个常规服务 */
.home-services-row-second {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
}

@media (max-width: 768px) {
    .home-services-row-first,
    .home-services-row-second {
        grid-template-columns: 1fr;
    }
}

.home-service-item {
    position: relative;
    background: var(--color-bg);
    padding: 5rem 3.5rem; /* 增加上下留白 */
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* 3D 效果 */
    transform-style: preserve-3d;
    perspective: 1000px;
}
/* 服务卡片悬浮效果 */
.home-service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
[data-theme="dark"] .home-service-item:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.home-service-item.featured {
    padding: 6rem 4.5rem;
}
.home-service-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.home-service-item:hover::before { opacity: 1; }
.home-service-item:hover {
    background: var(--color-bg-card);
    z-index: 10;
    /* 3D 悬浮效果 */
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.1), 0 0 1px rgba(59, 130, 246, 0.1);
}

/* 序号标识 */
.home-service-num {
    position: absolute;
    top: 2.5rem; right: 2.5rem;
    font-size: 3.5rem;
    font-weight: 200;
    color: var(--color-text-dark);
    line-height: 1;
    font-family: var(--font-display);
    transition: color 0.3s ease;
    opacity: 0.3;
}
.home-service-item.featured .home-service-num {
    font-size: 5rem;
}
.home-service-item:hover .home-service-num {
    color: rgba(59, 130, 246, 0.15);
    opacity: 1;
}

.home-service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 2rem;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
}
.home-service-item.featured .home-service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 2.5rem;
}
.home-service-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}
.home-service-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}
.home-service-item.featured h3 {
    font-size: 2rem;
    margin-bottom: 1.75rem;
}
.home-service-item p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    position: relative;
    z-index: 1;
    flex: 1;
}
.home-service-item.featured p {
    font-size: 1.125rem;
    line-height: 1.9;
}

/* 代码装饰元素 */
.home-service-code {
    position: absolute;
    bottom: 2rem; right: 2.5rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    color: var(--color-text-dark);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.home-service-item:hover .home-service-code {
    opacity: 0.6;
    transform: translateY(0);
}

/* 关于板块 - 左右布局 */
.home-about {
    padding: 12rem 2rem;
    background: var(--color-bg-darker);
}
.home-about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}
.home-about-content .home-section-tag,
.home-about-content .home-section-title {
    text-align: left;
}
.home-about-content .home-section-line {
    margin: 0;
}
.home-about-text {
    margin-top: 3.5rem;
}
.home-about-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 2;
    margin-bottom: 2rem;
}
.home-about-stats {
    display: flex;
    gap: 5rem;
    margin: 4rem 0;
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.home-about-stat {
    text-align: center;
}
.home-about-stat-num {
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.home-about-stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
    font-weight: 500;
}
.home-about-visual {
    position: relative;
    height: 560px;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg) 100%);
    border-radius: 8px; /* 圆角增加 */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); /* 增加投影 */
}
.home-about-visual::before {
    content: '';
    position: absolute;
    top: 2.5rem; left: 2.5rem; right: 2.5rem; bottom: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}
.home-about-visual::after {
    content: '晴辰';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 200;
    color: var(--color-text-dark);
    letter-spacing: 0.5em;
    opacity: 0.3;
}
@media (max-width: 900px) {
    .home-about-inner {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    .home-about-visual {
        height: 360px;
        order: -1;
    }
    .home-about-stats {
        gap: 2.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 新闻板块 */
.home-news {
    padding: 12rem 2rem;
    background: var(--color-bg);
}
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.home-news-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl); /* iOS 风格圆角 */
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s ease;
}
.home-news-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.15);
}
[data-theme="dark"] .home-news-item:hover {
    box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.5);
}
.home-news-img {
    height: 220px;
    background: var(--color-bg-darker);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.home-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.home-news-item:hover .home-news-img img {
    transform: scale(1.05);
}
/* 图片占位/错误样式 */
.home-news-img:empty::before,
.home-news-img.img-error::before {
    content: '';
    width: 48px;
    height: 48px;
    background: var(--color-border);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.3;
}
.home-news-content {
    padding: 2.5rem;
}
.home-news-date {
    font-size: 0.8rem;
    color: var(--color-text-dark);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}
.home-news-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0.75rem 0 1rem;
    line-height: 1.5;
}
.home-news-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.home-news-content h3 a:hover {
    color: var(--color-primary);
}
.home-news-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.home-section-footer {
    text-align: center;
    margin-top: 5rem;
}
.btn-minimal {
    display: inline-block;
    padding: 1.1rem 3rem;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.btn-minimal:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

/* CTA板块 */
.home-cta {
    padding: 12rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    text-align: center;
}
.home-cta-inner {
    max-width: 800px;
    margin: 0 auto;
}
.home-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}
.home-cta p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4rem;
    letter-spacing: 0.05em;
    line-height: 1.8;
}
.home-cta .btn-hero {
    padding: 1.25rem 4rem;
    font-size: 1rem;
    letter-spacing: 0.15em;
    background: #fff;
    color: #0f172a;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 4px;
}
.home-cta .btn-hero:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    .home-hero {
        min-height: 100svh;
        padding: 4rem 1.5rem;
    }
    .home-hero-content {
        padding: 1rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .home-hero-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }
    .home-hero-title {
        font-size: 2.25rem;
        letter-spacing: 0.1em;
    }
    .home-hero-slogan {
        font-size: 0.85rem;
        letter-spacing: 0.2em;
        margin-bottom: 2rem;
    }
    .home-hero-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    .home-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0;
    }
    .home-hero-actions .btn-hero {
        width: calc(100% - 2rem);
        max-width: 280px;
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
        text-align: center;
        margin: 0 auto;
        display: block;
    }
    .home-hero-scroll { bottom: 1.5rem; }
    
    /* 服务板块 */
    .home-services {
        padding: 6rem 1.25rem;
    }
    .home-section-header {
        margin-bottom: 3.5rem;
    }
    .home-section-title {
        font-size: 1.75rem;
    }
    .home-services-row-first,
    .home-services-row-second {
        grid-template-columns: 1fr;
    }
    .home-service-item,
    .home-service-item.featured {
        padding: 2.5rem 1.5rem;
    }
    .home-service-num,
    .home-service-item.featured .home-service-num {
        font-size: 2.5rem;
        top: 1.5rem;
        right: 1.5rem;
    }
    .home-service-item h3,
    .home-service-item.featured h3 {
        font-size: 1.25rem;
    }
    .home-service-code { display: none; }
    
    /* 关于板块 */
    .home-about {
        padding: 6rem 1.25rem;
    }
    .home-about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .home-about-content .home-section-tag,
    .home-about-content .home-section-title {
        text-align: center;
    }
    .home-about-content .home-section-line {
        margin: 0 auto;
    }
    .home-about-text {
        text-align: center;
    }
    .home-about-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    .home-about-stat-num {
        font-size: 1.75rem;
    }
    .home-about-visual {
        height: 240px;
        order: -1;
    }
    .home-about-visual::after {
        font-size: 3rem;
    }
    .home-about-content > .btn-minimal {
        display: block;
        text-align: center;
    }

    /* 产品板块 */
    .home-products {
        padding: 5rem 1.25rem;
    }
    .home-products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .product-card {
        padding: 2rem 1.5rem;
    }

    /* 新闻板块 */
    .home-news {
        padding: 6rem 1.25rem;
    }
    .home-news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .home-news-img {
        height: 180px;
    }
    .home-news-content {
        padding: 1.5rem;
    }
    
    /* CTA */
    .home-cta {
        padding: 6rem 1.5rem;
    }
    .home-cta h2 {
        font-size: 1.75rem;
    }
    .home-cta .btn-hero {
        padding: 1rem 2.5rem;
    }
}

/* ==================== 夜间模式适配 ==================== */
[data-theme="dark"] .home-services::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}
[data-theme="dark"] .home-service-item:hover .home-service-num {
    color: rgba(59, 130, 246, 0.2);
}
[data-theme="dark"] .home-about-visual {
    background: linear-gradient(135deg, rgba(30,41,59,0.8) 0%, rgba(15,23,42,0.8) 100%);
}
[data-theme="dark"] .home-cta {
    background: linear-gradient(135deg, #0c1222 0%, #1a2744 100%);
}

/* ==================== 亮色模式适配 ==================== */
/* 使用半透明深色遮罩，确保文字在任何壁纸上都清晰可读 */
[data-theme="light"] .home-hero-bg::after {
    background: linear-gradient(180deg, rgba(15,23,42,0.5) 0%, rgba(15,23,42,0.65) 50%, rgba(15,23,42,0.75) 100%);
}
[data-theme="light"] .home-hero::before {
    display: none;
}
[data-theme="light"] .home-hero-title,
[data-theme="light"] .home-hero-slogan,
[data-theme="light"] .home-hero-desc {
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
[data-theme="light"] .home-hero-logo {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}
[data-theme="light"] .home-hero-logo span {
    color: #fff;
}
[data-theme="light"] .bing-copyright {
    color: rgba(255,255,255,0.6);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
/* 服务卡片 - 企业大白风格 (亮色模式) */
[data-theme="light"] .home-service-item {
    background: #ffffff;
    border: 1px solid rgba(241, 245, 249, 1); /* 极淡的边框 */
    box-shadow: none; /* 默认无投影，纯净 */
}
[data-theme="light"] .home-service-item:hover {
    background: #ffffff;
    border-color: transparent;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08); /* 悬浮大投影 */
    z-index: 10;
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) translateY(-8px);
}
[data-theme="light"] .home-service-item::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
}
[data-theme="light"] .home-service-num {
    color: rgba(226, 232, 240, 0.8); /* 数字更淡 */
}
[data-theme="light"] .home-service-icon {
    color: #2563eb; /* 科技蓝 */
}
[data-theme="light"] .home-service-code {
    color: rgba(148, 163, 184, 0.3);
}
[data-theme="light"] .home-services {
    background: #fcfcfc; /* 近乎纯白 */
}
[data-theme="light"] .home-services::before {
    display: none;
}
[data-theme="light"] .home-section-header h2 {
    color: #1e293b;
}
[data-theme="light"] .home-section-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
}
/* 关于板块 */
[data-theme="light"] .home-about {
    background: #ffffff;
}
[data-theme="light"] .home-about-content h3 {
    color: #1e293b;
}
[data-theme="light"] .home-about-content p {
    color: #64748b;
}
[data-theme="light"] .home-about-stat-num {
    color: #3B82F6;
}
[data-theme="light"] .home-about-stat-label {
    color: #64748b;
}
[data-theme="light"] .btn-minimal {
    color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.3);
}
[data-theme="light"] .btn-minimal:hover {
    background: rgba(59, 130, 246, 0.08);
}
/* 新闻卡片 */
[data-theme="light"] .home-news {
    background: #f8fafc;
}
[data-theme="light"] .home-news-item {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
[data-theme="light"] .home-news-item:hover {
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    border-color: rgba(59, 130, 246, 0.2);
}
[data-theme="light"] .home-news-category {
    background: rgba(59, 130, 246, 0.12);
    color: #3B82F6;
}
[data-theme="light"] .home-news-title {
    color: #1e293b;
}
[data-theme="light"] .home-news-meta {
    color: #94a3b8;
}
[data-theme="light"] .home-news-excerpt {
    color: #64748b;
}
/* CTA 区域 - 保持品牌色渐变 */
[data-theme="light"] .home-cta {
    background: linear-gradient(135deg, #3B82F6 0%, #1d4ed8 100%);
}
[data-theme="light"] .home-cta h2 {
    color: #fff;
}
[data-theme="light"] .home-cta p {
    color: rgba(255,255,255,0.85);
}
[data-theme="light"] .btn-hero {
    background: #fff;
    color: #3B82F6;
}
[data-theme="light"] .btn-hero:hover {
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
[data-theme="light"] .btn-hero-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
[data-theme="light"] .btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}
/* 滚动动画样式 (提取自JS) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.home-service-item {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-service-item.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.home-service-item:nth-child(1) { transition-delay: 0s; }
.home-service-item:nth-child(2) { transition-delay: 0.08s; }
.home-service-item:nth-child(3) { transition-delay: 0.16s; }
.home-service-item:nth-child(4) { transition-delay: 0.24s; }

.home-news-item:nth-child(1) { transition-delay: 0s; }
.home-news-item:nth-child(2) { transition-delay: 0.06s; }
.home-news-item:nth-child(3) { transition-delay: 0.12s; }

.scroll-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-scale.revealed {
    opacity: 1;
    transform: scale(1);
}
