/* ===== main.css (完整优化版) ===== */
:root {
    --primary: #1a3a6e;
    --secondary: #e67e22;
    --dark: #121a26;
    --light: #f8f9fa;
    --accent: #3db4e5;
    --text: #2d3748;
    --text-light: #6c757d;
    --nylon-gradient: linear-gradient(135deg, #1a3a6e 0%, #2e8ec6 100%);
    --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    --industrial-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 3D打印主题动画 */
@keyframes filamentFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.filament-animation {
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary), var(--primary));
    background-size: 300% 300%;
    animation: filamentFlow 8s ease infinite;
    height: 5px;
    width: 100%;
    margin: 1.2rem 0;
    position: relative;
    z-index: 1;
}

/* 打印层效果 */
.print-layer {
    position: relative;
}

.print-layer::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0.7;
    z-index: 1;
}

header {
    background: linear-gradient(to right, #1a3a6e, #152a4e);
    color: white;
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.logo {
    text-decoration: none;
    color: white;
}

.logo:hover {
    color: white;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 1.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.8rem;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    padding: 0.6rem 0.2rem;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

/* 英雄区域优化 */
.hero {
    background: var(--nylon-gradient);
    color: white;
    padding: 5.5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.8rem;
    line-height: 1.2;
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0.92;
}

/* 按钮样式优化 */
.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
    position: relative;
    z-index: 2;
}

.btn:hover {
    background-color: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    margin-left: 1.5rem;
    box-shadow: none;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== 服务卡片模块 - 紧凑优化版 ===== */
.services {
    padding: 4.5rem 0; /* 减小上下内边距 */
    position: relative;
    z-index: 4;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem; /* 减小底部间距 */
    position: relative;
    z-index: 3;
}

.section-title h2 {
    font-size: 2.25rem; /* 略微减小标题大小 */
    color: var(--primary);
    margin-bottom: 1rem; /* 减小底部间距 */
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px; /* 上移下划线 */
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* 减小下划线宽度 */
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 1.2rem auto 0; /* 减小顶部间距 */
    font-size: 1.1rem; /* 略微减小字号 */
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; /* 减小网格间距 */
    position: relative;
    z-index: 2;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 1.8rem; /* 减小内边距 */
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--secondary);
    position: relative;
    z-index: 1;
    display: flex; /* 添加flex布局 */
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px); /* 减小悬停移动距离 */
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); /* 减小悬停阴影 */
}

.service-header {
    display: flex; /* 图标与标题同行 */
    align-items: center;
    margin-bottom: 1.5rem; /* 调整间距 */
}

.service-icon {
    font-size: 2.5rem; /* 略微减小图标大小 */
    color: var(--secondary);
    margin-right: 1rem; /* 图标与标题间距 */
    transition: transform 0.3s;
    flex-shrink: 0; /* 防止图标被压缩 */
}

.service-card:hover .service-icon {
    transform: scale(1.08); /* 减小缩放比例 */
}

.service-card h3 {
    font-size: 1.3rem; /* 减小标题字号 */
    margin-bottom: 0; /* 移除标题底部间距 */
    color: var(--primary);
    line-height: 1.3;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.98rem; /* 略微减小正文字号 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .services {
        padding: 3.5rem 0; /* 移动端减小内边距 */
    }
    
    .section-title h2 {
        font-size: 2rem; /* 移动端减小标题大小 */
    }
    
    .section-title h2::after {
        bottom: -8px;
        width: 70px; /* 移动端减小下划线宽度 */
    }
    
    .service-card {
        padding: 1.5rem; /* 移动端减小内边距 */
    }
    
    .service-header {
        margin-bottom: 1.2rem; /* 移动端减小间距 */
    }
    
    .service-icon {
        font-size: 2.2rem; /* 移动端减小图标大小 */
    }
}

/* 流程部分优化 */
.process {
    padding: 5.5rem 0;
    background-color: #f1f5f9;
    position: relative;
    z-index: 4;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    counter-reset: step-counter;
    position: relative;
    z-index: 2;
}

.process-step {
    background: white;
    border-radius: 10px;
    padding: 2.8rem 2rem 2.2rem;
    box-shadow: var(--card-shadow);
    position: relative;
    counter-increment: step-counter;
    border-left: 5px solid var(--accent);
    transition: transform 0.3s;
    z-index: 1;
}

.process-step:hover {
    transform: translateY(-5px);
}

.process-step::before {
    content: counter(step-counter);
    position: absolute;
    top: -22px;
    left: 25px;
    width: 44px;
    height: 44px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.process-step h3 {
    font-size: 1.35rem;
    margin-bottom: 1.3rem;
    color: var(--primary);
}

/* 博客预览优化 */
.blog-preview {
    padding: 5.5rem 0;
    background-color: white;
    position: relative;
    z-index: 4;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.8rem;
    position: relative;
    z-index: 2;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.archive-image {
    height: 220px;
    background-color: #e9ecef;
    position: relative;
    overflow: hidden;
    display: block;
}

.archive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.archive-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--nylon-gradient);
    opacity: 0.85;
    z-index: 1;
}

.archive-image h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    font-size: 3.2rem;
    font-weight: 800;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    margin: 0;
    width: 100%;
    text-align: center;
}

.blog-card:hover .archive-image img {
    transform: scale(1.08);
}

.blog-content {
    padding: 2.2rem;
    position: relative;
    z-index: 2;
}

.blog-date {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.blog-date::before {
    content: "📅";
    margin-right: 0.6rem;
    font-size: 1.1rem;
}

.blog-content h3 {
    font-size: 1.45rem;
    margin-bottom: 1.1rem;
    color: var(--primary);
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.read-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    position: relative;
}

.read-more::after {
    content: "→";
    margin-left: 8px;
    transition: margin-left 0.3s;
}

.read-more:hover {
    color: var(--primary);
}

.read-more:hover::after {
    margin-left: 12px;
}

/* 关于我们部分优化 */
.about {
    padding: 5.5rem 0;
    background-color: #f1f5f9;
    position: relative;
    z-index: 4;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-image {
    position: relative;
    height: 420px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.about-image::before {
    content: "NYLON 3D PRINT";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--nylon-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.about-text h2 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    font-weight: 700;
}

.about-text h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 1.8rem;
    color: var(--text);
    line-height: 1.75;
}

/* 客户评价优化 */
.testimonials {
    padding: 5.5rem 0;
    background-color: var(--dark);
    color: white;
    position: relative;
    z-index: 4;
}

.testimonials .section-title h2 {
    color: white;
}

.testimonials .section-title p {
    color: rgba(255, 255, 255, 0.85);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 2.8rem 2.2rem;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    font-size: 1.15rem;
    line-height: 1.75;
    z-index: 2;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 2.2rem;
    color: var(--accent);
    opacity: 0.6;
    position: absolute;
    font-family: serif;
}

.testimonial-text::before {
    top: -18px;
    left: -12px;
}

.testimonial-text::after {
    bottom: -30px;
    right: -12px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--accent);
    margin-right: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--dark);
    flex-shrink: 0;
    font-size: 1.4rem;
}

.author-info h4 {
    margin-bottom: 0.3rem;
    font-size: 1.15rem;
}

.author-info p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

/* CTA部分优化 */
.cta {
    padding: 6.5rem 0;
    background: var(--nylon-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 4;
}

.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1.8rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.cta p {
    max-width: 700px;
    margin: 0 auto 3.5rem;
    font-size: 1.25rem;
    opacity: 0.92;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* 页脚优化 */
footer {
    background: linear-gradient(to top, #0d1522, #121a26);
    color: white;
    padding: 4.5rem 0 1.8rem;
    position: relative;
    z-index: 5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 2;
}

.footer-column h3 {
    font-size: 1.35rem;
    margin-bottom: 1.8rem;
    color: var(--accent);
    position: relative;
    padding-bottom: 1rem;
    font-weight: 600;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

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

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    padding: 0.3rem 0;
}

.footer-column ul li a:hover {
    color: var(--accent);
    transform: translateX(8px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    position: relative;
    z-index: 2;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* 桌面端样式 */
.copyright-line,
.footer-links {
    display: inline;
}

.link-separator {
    margin: 0 0.4rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 移动端响应式设计 */
@media (max-width: 992px) {
    .header-content {
        flex-direction: row;
        text-align: left;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--dark);
        transition: right 0.3s ease;
        z-index: 100;
        padding: 6rem 2.5rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.25);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul li {
        margin: 1rem 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1.15rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu-btn.active {
        position: fixed;
        right: 25px;
        top: 25px;
    }
    
    .hero h1 {
        font-size: 2.6rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .about-image {
        height: 340px;
        order: -1;
    }
    
    .cta h2 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-wrap: wrap;
    }
    
    .btn-outline {
        margin-left: 0;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4.5rem 0 3.5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .cta h2 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    
    .archive-image {
        height: 180px;
    }
    
    .archive-image h3 {
        font-size: 2.8rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 4rem 0 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .section-title h2 {
        font-size: 1.9rem;
    }
    
    .services-grid,
    .process-steps,
    .blog-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta {
        padding: 4.5rem 0;
    }
    
    .cta h2 {
        font-size: 1.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .copyright-line {
        display: block;
        margin-bottom: 0.6rem;
    }
    
    .footer-links {
        display: block;
    }
}

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

/* 焦点样式 */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

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

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