/* 首页商务实用风格 - 去AI感设计 */

:root {
    /* 纯色配色方案 */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --success: #10b981;
    --success-dark: #059669;
    
    /* 中性色 */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --bg-gray: #f8fafc;
    --bg-white: #ffffff;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* 圆角 */
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
                 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    padding-top: 70px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    padding-bottom: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Hero区域 - 舒适版 ========== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
    border-bottom: 1px solid #f1f5f9;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.hero-copy {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.01em;
    margin: 0 0 24px;
    color: #1e293b;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.8;
    color: #64748b;
    margin: 0 auto 36px;
    max-width: 600px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hero-btn-primary {
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
}

/* 悬浮时背景色变亮 - 使用更自然的亮蓝色 */
.hero .hero-btn-primary:hover,
.hero-btn-primary:hover {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25) !important;
    transform: translateY(-2px);
}

.hero-btn-primary:focus,
.hero-btn-primary:active {
    outline: none !important;
}

.hero-btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
}

.hero-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 800px;
    margin: 0 auto;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-metric {
    text-align: center;
    padding: 24px 20px;
    background: var(--bg-white);
}

.hero-metric strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.hero-metric span {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 隐藏侧边栏 */
.hero-side {
    display: none;
}

/* ========== Section通用样式 ========== */
.section {
    padding: 64px 0;
}

.section:nth-child(even) {
    background: var(--bg-gray);
}

.section:last-of-type {
    padding-bottom: 80px;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #dbeafe;
}

.section-chip::before {
    display: none;
}

.section-head h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.section-head p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.head-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    margin-top: 16px;
}

.head-link:hover {
    text-decoration: underline;
}

/* ========== 产品目录 - 商务风格 ========== */
.catalog-shell {
    padding: 0;
}

.filter-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.filter-pill {
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill::before {
    display: none;
}

.filter-pill span {
    position: relative;
}

.filter-pill.is-active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.filter-pill.is-active::before {
    display: none;
}

.filter-pill:hover:not(.is-active) {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 0;
}

.product-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.01) 0%, rgba(59, 130, 246, 0.005) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover {
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.product-card:hover::before {
    opacity: 1;
}

.product-media {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
    border-bottom: none;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-media img {
    transform: scale(1.03);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.product-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: auto;
}

.product-desc {
    display: none;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.4);
    font-size: 11px;
    color: var(--text-tertiary);
}

.product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-meta i {
    font-size: 13px;
    color: #9ca3af;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.price-line {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
}

.price-line del {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
    order: 2;
}

.price-line strong {
    font-size: 20px;
    font-weight: 700;
    color: #ef4444;
    line-height: 1;
    letter-spacing: -0.01em;
    order: 1;
}

.price-line strong::before {
    content: '¥';
    font-size: 14px;
    font-weight: 600;
    margin-right: 1px;
}

.price-line strong.is-free {
    color: #10b981;
    font-size: 16px;
    font-weight: 600;
}

.price-line strong.is-free::before {
    content: '';
}

.product-link {
    display: none !important;
}

/* 悬浮时背景色变亮 - 使用更自然的亮蓝色 */
.product-card .product-link:hover,
.product-link:hover {
    display: none !important;
}

.product-link:focus,
.product-link:active {
    outline: none !important;
}

/* ========== 服务区域 - 商务风格 ========== */
.service-shell {
    padding: 0;
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.service-copy {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.service-copy h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.service-copy p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 28px;
}

.service-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.service-btn-primary {
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
}

/* 悬浮时背景色变亮 - 使用更自然的亮蓝色 */
.service-shell .service-btn-primary:hover,
.service-btn-primary:hover {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25) !important;
    transform: translateY(-2px);
}

.service-btn-primary:focus,
.service-btn-primary:active {
    outline: none !important;
}

.service-btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
}

.service-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-item {
    padding: 32px 24px;
    border-radius: var(--radius);
    background: var(--bg-white);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.service-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.service-item strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ========== 合作伙伴 - 商务风格 ========== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg-white);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.partner-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.partner-card img {
    max-width: 100%;
    max-height: 45px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    filter: grayscale(0%);
}

.partner-card:hover img {
    opacity: 1;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-head h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 60px 0 48px;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-metrics {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 48px 0;
    }
    
    .section-head {
        margin-bottom: 36px;
    }
    
    .section-head h2 {
        font-size: 26px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-wrap: wrap;
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
    
    .service-actions {
        flex-direction: column;
    }
    
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }
    
    .section-head h2 {
        font-size: 22px;
    }
}

/* ========== 基础优化 ========== */
html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--primary);
    color: var(--bg-white);
}

button:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* Footer样式已移至footer.html内联样式中，避免冲突 */


/* ========== 强制覆盖 - 按钮悬浮效果必须变亮 ========== */
/* 使用超高优先级确保悬浮时背景色变亮而不是变暗 */

.page-shell .hero .hero-actions a.hero-btn.hero-btn-primary:hover,
.hero .hero-actions .hero-btn-primary:hover,
.hero-actions .hero-btn-primary:hover,
a.hero-btn-primary:hover,
.hero-btn-primary:hover {
    background: #3b82f6 !important;
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25) !important;
}

.page-shell .section .service-shell .service-actions a.service-btn.service-btn-primary:hover,
.service-shell .service-actions .service-btn-primary:hover,
.service-actions .service-btn-primary:hover,
a.service-btn-primary:hover,
.service-btn-primary:hover {
    background: #3b82f6 !important;
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25) !important;
}

.page-shell .section .catalog-shell .product-grid .product-card .product-footer .product-link:hover,
.product-card .product-footer .product-link:hover,
.product-footer .product-link:hover,
a.product-link:hover,
.product-link:hover {
    background: #3b82f6 !important;
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}


/* ========== 优雅的动画效果 ========== */

/* 淡入上浮动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 从左侧滑入 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 从右侧滑入 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 应用动画的类 */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* 滚动动画 - 初始状态 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 延迟动画 */
.delay-1 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; transition-delay: 0.5s; }

/* Hero区域初始状态 */
.hero {
    opacity: 0;
}

/* 增强悬浮效果 */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-6px);
}

.service-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover {
    transform: translateY(-4px);
}

.partner-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-card:hover {
    transform: translateY(-3px) scale(1.02);
}

/* 按钮动画增强 */
.hero-btn,
.service-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-btn:hover,
.service-btn:hover {
    transform: translateY(-2px);
}

.hero-btn:focus,
.service-btn:focus,
.hero-btn:active,
.service-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.hero-btn i,
.service-btn i,
.product-link i {
    transition: transform 0.3s ease;
}

.hero-btn:hover i,
.service-btn:hover i,
.product-link:hover i {
    transform: translateX(4px);
}

/* 数字计数动画 */
.hero-metric strong {
    display: inline-block;
    transition: transform 0.3s ease;
}

.hero-metric:hover strong {
    transform: scale(1.1);
    color: var(--primary-light);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 减少动画在移动端的使用 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ========== 移除所有focus outline ========== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.hero-btn:focus,
.service-btn:focus,
.product-link:focus,
.filter-pill:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* 为可访问性保留键盘导航的视觉反馈 */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
