/* 全局样式 */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #0d47a1;
    --text-dark: #333;
    --text-light: #666;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --accent-color: #4A6FA5;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    --gray: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
    background: #fff;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition-speed);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.lang-switch {
    padding: 5px 10px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    transition: all 0.3s;
}

.lang-switch:hover {
    background: var(--primary-color);
    color: var(--white);
}

.contact-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.contact-info p {
    margin: 2px 0;
}

/* 轮播图样式 */
.hero {
    margin-top: 80px;
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 5px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* 产品展示样式 */
.products {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px;
    color: var(--primary-color);
}

.product-card p {
    padding: 0 15px 15px;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--gray);
    transform: translateY(-2px);
}

/* 公司优势样式 */
.advantages {
    padding: 60px 0;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
}

.advantage-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.advantage-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 页脚样式 */
footer {
    background: var(--light-gray);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-section p {
    margin: 10px 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-gray);
    transition: all var(--transition-speed);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
    color: #666;
}

/* 信任徽章样式 */
.trust-badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent-color);
    padding: 8px 15px;
    border-radius: 20px;
    margin-left: 15px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.trust-badge i {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* 渐进式表单样式 */
.step-form {
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step.active {
    display: block;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    position: relative;
}

.step-dot.active {
    background: var(--primary-color);
    color: var(--white);
}

.step-dot.completed {
    background: var(--secondary-color);
    color: var(--white);
}

.step-dot:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--light-gray);
    z-index: -1;
}

/* 微信浮窗样式 */
.wechat-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 1000;
}

.wechat-popup img {
    width: 150px;
    height: 150px;
    display: block;
    margin-bottom: 10px;
    transition: all var(--transition-speed);
}

.wechat-popup p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    :root {
        --border-radius: 6px;
        --box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

/* 响应式设计更新 */
@media (max-width: 1224px) {
    .container {
        padding: 0 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 辅助类 */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

/* 可访问性优化 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 性能优化 */
img {
    max-width: 100%;
    height: auto;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .wechat-popup {
        bottom: 20px;
        right: 20px;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .wechat-popup,
    .cookie-consent {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* 微交互动画 */
@keyframes fadeInUp {
    from { opacity:0; transform: translateY(20px); }
    to { opacity:1; transform: translateY(0); }
}

.hover-scale {
    transition: transform var(--transition-speed);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* 更新现有元素的过渡效果 */
.nav-links a,
.btn,
.social-links a,
.wechat-popup img {
    transition: all var(--transition-speed);
}

/* 更新卡片样式 */
.contact-card,
.product-card,
.advantage-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
}

/* 更新按钮样式 */
.btn {
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

/* 更新表单控件样式 */
.form-control {
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

/* 添加动画类 */
.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 响应式图片 */
.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 焦点状态 */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* 屏幕阅读器专用样式 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ARIA标签支持 */
[aria-current="page"] {
    font-weight: 700;
    color: var(--primary-color);
}

/* 微交互动画 */
@keyframes fadeInUp {
    from { opacity:0; transform: translateY(20px); }
    to { opacity:1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* 动画类 */
.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-slideIn {
    animation: slideIn 0.5s ease-out;
}

/* 悬停效果 */
.hover-scale {
    transition: transform var(--transition-speed);
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-lift {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 触摸反馈 */
    .touch-feedback {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    /* 移动端动画优化 */
    .animate-fadeInUp,
    .animate-pulse,
    .animate-slideIn {
        animation-duration: 0.3s;
    }
    
    /* 移动端交互优化 */
    .btn,
    .nav-links a {
        padding: 12px 20px;
        min-height: 44px; /* 确保触摸目标足够大 */
    }
    
    /* 移动端图片优化 */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* 可访问性优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 高对比度模式支持 */
@media (forced-colors: active) {
    :root {
        --primary-color: Highlight;
        --secondary-color: ButtonText;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #EDF2F4;
        --text-light: #2B2D42;
        --light-gray: #1A1A1A;
    }
    
    body {
        background-color: #121212;
        color: var(--text-dark);
    }
    
    .card {
        background-color: #1E1E1E;
    }
}

/* 无障碍优化 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* 性能优化 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

.pro-card-modern {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(25,118,210,0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
    margin-bottom: 2.5rem;
    border: 1.5px solid #e3eaf3;
}

.product-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
    color: #fff;
    font-size: 1rem;
    padding: 0.35em 1.2em;
    border-radius: 1em;
    z-index: 2;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 2px 8px rgba(25,118,210,0.10);
}

.product-image-wrap {
    width: 100%;
    background: #f5f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    max-height: 260px;
    overflow: hidden;
    border-bottom: 1px solid #e3eaf3;
}

.product-image {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform .2s;
}

.product-info {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    color: #1976d2;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5em;
    letter-spacing: 1px;
}

.product-cert {
    color: #42a5f5;
    font-size: 1.05rem;
    margin-bottom: 0.7em;
    font-weight: 500;
}

.product-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2em 0;
}

.product-specs li {
    color: #1976d2;
    font-size: 1.02rem;
    margin-bottom: 0.4em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.product-desc {
    color: #444;
    font-size: 1rem;
    margin-bottom: 1.2em;
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.2em;
}

.action-btn {
    flex: 1;
    padding: 0.8rem 0;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
    box-shadow: 0 2px 8px rgba(25,118,210,0.07);
}

.enquiry-btn {
    background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
    color: #fff;
}

.enquiry-btn:hover {
    background: #1256a3;
}

.detail-btn {
    background: #f5f5f5;
    color: #1976d2;
    border: 1.5px solid #e3eaf3;
}

.detail-btn:hover {
    background: #e3eaf3;
    color: #1256a3;
}

section.product-category-block {
    margin-bottom: 40px;
}

h2.category-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card.pro-card-modern {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(25,118,210,0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
    margin-bottom: 2.5rem;
    border: 1.5px solid #e3eaf3;
}

.product-card.pro-card-modern:hover {
    box-shadow: 0 12px 36px rgba(25,118,210,0.18);
    transform: translateY(-8px) scale(1.02);
    border-color: #1976d2;
}

.product-card.pro-card-modern img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card.pro-card-modern h3 {
    padding: 15px;
    color: var(--primary-color);
}

.product-card.pro-card-modern p {
    padding: 0 15px 15px;
    color: #666;
}

.product-card.pro-card-modern .product-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
    color: #fff;
    font-size: 1rem;
    padding: 0.35em 1.2em;
    border-radius: 1em;
    z-index: 2;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 2px 8px rgba(25,118,210,0.10);
}

.product-card.pro-card-modern .product-image-wrap {
    width: 100%;
    background: #f5f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    max-height: 260px;
    overflow: hidden;
    border-bottom: 1px solid #e3eaf3;
}

.product-card.pro-card-modern .product-image {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform .2s;
}

.product-card.pro-card-modern .product-info {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card.pro-card-modern .product-name {
    color: #1976d2;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5em;
    letter-spacing: 1px;
}

.product-card.pro-card-modern .product-cert {
    color: #42a5f5;
    font-size: 1.05rem;
    margin-bottom: 0.7em;
    font-weight: 500;
}

.product-card.pro-card-modern .product-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2em 0;
}

.product-card.pro-card-modern .product-specs li {
    color: #1976d2;
    font-size: 1.02rem;
    margin-bottom: 0.4em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.product-card.pro-card-modern .product-desc {
    color: #444;
    font-size: 1rem;
    margin-bottom: 1.2em;
    flex: 1;
}

.product-card.pro-card-modern .product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.2em;
}

.product-card.pro-card-modern .action-btn {
    flex: 1;
    padding: 0.8rem 0;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
    box-shadow: 0 2px 8px rgba(25,118,210,0.07);
}

.product-card.pro-card-modern .enquiry-btn {
    background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
    color: #fff;
}

.product-card.pro-card-modern .enquiry-btn:hover {
    background: #1256a3;
}

.product-card.pro-card-modern .detail-btn {
    background: #f5f5f5;
    color: #1976d2;
    border: 1.5px solid #e3eaf3;
}

.product-card.pro-card-modern .detail-btn:hover {
    background: #e3eaf3;
    color: #1256a3;
}  