/* ============================================
   张家港市昱俊铖科技有限公司 官网
   配色: 深蓝 #1a56db / 浅蓝 #3b82f6 / 白 #ffffff
   ============================================ */

/* === Reset & Base === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Hiragino Sans GB","Helvetica Neue",Arial,sans-serif;
    color:#1f2937;
    line-height:1.7;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit}
ul{list-style:none}
img{max-width:100%;height:auto}
.container{max-width:1200px;margin:0 auto;padding:0 24px}

/* === Utility === */
.section{padding:100px 0}
.section-alt{background:#f8fafc}
.section-tag{
    display:inline-block;
    font-size:0.75rem;
    font-weight:700;
    letter-spacing:.15em;
    color:#1a56db;
    background:#e8f0fe;
    padding:6px 16px;
    border-radius:50px;
    margin-bottom:16px;
}
.section-header{text-align:center;margin-bottom:60px}
.section-header h2{
    font-size:2.2rem;
    font-weight:700;
    color:#111827;
    margin-bottom:12px;
}
.section-desc{
    font-size:1.05rem;
    color:#6b7280;
    max-width:600px;
    margin:0 auto;
}
.highlight{color:#1a56db}

/* === 滚动动画 === */
.reveal{
    opacity:0;
    transform:translateY(30px);
    transition:opacity 0.7s ease,transform 0.7s ease;
}
.reveal.visible{opacity:1;transform:translateY(0)}

/* === Header / Navbar === */
#header{
    position:fixed;
    top:0;left:0;right:0;
    z-index:1000;
    transition:background 0.3s,box-shadow 0.3s;
}
#header.scrolled{
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(12px);
    box-shadow:0 2px 20px rgba(0,0,0,0.08);
}
.navbar .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:72px;
}
.logo{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:1.25rem;
    font-weight:700;
    color:#fff;
    transition:color 0.3s;
}
.logo-img{height:36px;width:auto;border-radius:4px}
#header.scrolled .logo{color:#111827}
.logo-icon{font-size:1.5rem;color:#1a56db}
.nav-menu{display:flex;gap:8px}
.nav-link{
    padding:8px 18px;
    border-radius:8px;
    font-size:0.95rem;
    font-weight:500;
    color:rgba(255,255,255,0.85);
    transition:all 0.3s;
}
#header.scrolled .nav-link{color:#4b5563}
.nav-link:hover,
.nav-link.active{color:#fff;background:rgba(255,255,255,0.15)}
#header.scrolled .nav-link:hover,
#header.scrolled .nav-link.active{color:#1a56db;background:#e8f0fe}

/* 移动端菜单按钮 */
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;z-index:1001}
.hamburger span{
    width:26px;height:2.5px;
    background:#fff;border-radius:3px;
    transition:all 0.3s;
}
#header.scrolled .hamburger span{background:#111827}
.hamburger.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.hamburger.active span:nth-child(2){opacity:0}
.hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* === Hero Section === */
.hero{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background: linear-gradient(rgba(15,23,42,0.45), rgba(15,23,42,0.55)), url('../images/hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    overflow:hidden;
}
.hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 15% 25%, rgba(59,130,246,0.2) 0%, transparent 40%),
        radial-gradient(circle at 75% 60%, rgba(5,150,105,0.15) 0%, transparent 35%);
}
.hero::after{
    content:'';
    position:absolute;
    inset:0;
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(255,255,255,0.01) 3px,
            rgba(255,255,255,0.01) 6px
        );
}
@keyframes heroBgShift{
    0%,100%{opacity:0.8}
    50%{opacity:1}
}
.hero-overlay{display:none}
.hero-content{position:relative;z-index:1;text-align:center;color:#fff;max-width:800px}
.hero-title{font-size:3rem;font-weight:800;line-height:1.3;margin-bottom:20px;letter-spacing:.02em}
.hero-subtitle{font-size:1.35rem;font-weight:400;color:rgba(255,255,255,0.8);margin-bottom:12px}
.hero-desc{font-size:1rem;color:rgba(255,255,255,0.6);margin-bottom:40px}
.hero-actions{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.hero-scroll{
    position:absolute;bottom:40px;left:50%;transform:translateX(-50%);
    display:flex;flex-direction:column;align-items:center;gap:6px;
    color:rgba(255,255,255,0.5);font-size:0.8rem;
    animation:bounce 2s infinite;
}
@keyframes bounce{
    0%,100%{transform:translateX(-50%) translateY(0)}
    50%{transform:translateX(-50%) translateY(8px)}
}

/* === Buttons === */
.btn{
    display:inline-block;padding:14px 36px;border-radius:10px;
    font-size:1rem;font-weight:600;cursor:pointer;
    transition:all 0.3s;border:none;text-align:center;
}
.btn-primary{background:#1a56db;color:#fff}
.btn-primary:hover{background:#1e40af;transform:translateY(-2px);box-shadow:0 8px 25px rgba(26,86,219,0.4)}
.btn-outline{background:transparent;color:#fff;border:2px solid rgba(255,255,255,0.4)}
.btn-outline:hover{background:rgba(255,255,255,0.1);border-color:#fff;transform:translateY(-2px)}
.btn-outline-green{background:transparent;color:#059669;border:2px solid #059669}
.btn-outline-green:hover{background:#059669;color:#fff}
.btn-sm{padding:10px 24px;font-size:0.9rem}
.btn-block{width:100%}

/* === About Section === */
.about-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:32px;
}
.about-card{
    background:#fff;
    border-radius:16px;
    padding:36px 28px;
    text-align:center;
    border:1px solid #e5e7eb;
    transition:all 0.3s;
}
.about-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(0,0,0,0.08);
    border-color:#bfdbfe;
}
.about-icon{
    width:64px;height:64px;
    margin:0 auto 20px;
    color:#1a56db;
}
.about-card h3{
    font-size:1.2rem;font-weight:700;
    margin-bottom:12px;color:#111827;
}
.about-card p{font-size:0.95rem;color:#6b7280;line-height:1.8}

/* === Products Section === */
.products-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:36px;
    max-width:900px;
    margin:0 auto;
}
.product-card{
    position:relative;
    background:#fff;
    border-radius:20px;
    padding:40px 32px;
    border:1px solid #e5e7eb;
    transition:all 0.3s;
    overflow:hidden;
}
.product-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(0,0,0,0.1);
}
.product-badge{
    position:absolute;
    top:20px;right:20px;
    font-size:0.75rem;font-weight:700;
    padding:4px 14px;border-radius:50px;
    background:#fef3c7;color:#d97706;
}
.product-badge.new{background:#d1fae5;color:#059669}
.product-icon{width:80px;height:80px;margin-bottom:24px}
.product-card h3{font-size:1.5rem;font-weight:700;margin-bottom:12px;color:#111827}
.product-desc{font-size:0.95rem;color:#6b7280;margin-bottom:20px;line-height:1.8}
.product-features{margin-bottom:24px}
.product-features li{
    font-size:0.9rem;color:#4b5563;
    padding:6px 0;padding-left:20px;
    position:relative;
}
.product-features li::before{
    content:'✓';
    position:absolute;left:0;
    color:#1a56db;font-weight:700;
}

/* === Business Section === */
.business-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}
.business-card{
    background:#fff;
    border-radius:16px;
    padding:32px 24px;
    text-align:center;
    border:1px solid #e5e7eb;
    transition:all 0.3s;
}
.business-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,0.06);
    border-color:#bfdbfe;
}
.business-icon{
    width:56px;height:56px;
    margin:0 auto 18px;
    color:#1a56db;
}
.business-card h3{
    font-size:1.1rem;font-weight:700;
    margin-bottom:10px;color:#111827;
}
.business-card p{font-size:0.9rem;color:#6b7280;line-height:1.7}

/* === Contact Section === */
.contact-grid{
    display:grid;
    grid-template-columns:1fr 1.2fr;
    gap:48px;
    align-items:start;
}
.contact-info{display:flex;flex-direction:column;gap:28px}
.contact-item{
    display:flex;gap:16px;align-items:flex-start;
}
.contact-icon{
    width:44px;height:44px;min-width:44px;
    background:#e8f0fe;border-radius:12px;
    display:flex;align-items:center;justify-content:center;
    color:#1a56db;padding:10px;
}
.contact-item h4{font-size:1rem;font-weight:700;color:#111827;margin-bottom:4px}
.contact-item p{font-size:0.9rem;color:#6b7280;line-height:1.6}

.contact-form-wrapper{background:#fff;border-radius:16px;padding:36px;border:1px solid #e5e7eb}
.contact-form{display:flex;flex-direction:column;gap:20px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-group{display:flex;flex-direction:column;gap:6px}
.form-group label{font-size:0.9rem;font-weight:600;color:#374151}
.form-group input,
.form-group textarea{
    padding:12px 16px;
    border:1.5px solid #e5e7eb;
    border-radius:10px;
    font-size:0.95rem;
    font-family:inherit;
    transition:border-color 0.3s,box-shadow 0.3s;
    outline:none;
    background:#f9fafb;
}
.form-group input:focus,
.form-group textarea:focus{
    border-color:#1a56db;
    box-shadow:0 0 0 3px rgba(26,86,219,0.1);
    background:#fff;
}
.form-group textarea{resize:vertical;min-height:120px}

/* === Footer === */
.footer{
    background:#0f172a;
    color:rgba(255,255,255,0.7);
    padding:48px 0;
    text-align:center;
}
.footer-content{display:flex;flex-direction:column;align-items:center;gap:12px}
.footer-brand{
    display:flex;align-items:center;gap:8px;
    font-size:1.1rem;font-weight:700;color:#fff;
}
.footer-logo-img{height:32px;width:auto;border-radius:4px}
.footer-text{font-size:0.9rem}
.footer-icp{font-size:0.85rem}
.footer-icp a:hover{color:#fff}

/* === Responsive === */
@media (max-width: 1024px) {
    .about-grid{grid-template-columns:repeat(2,1fr)}
    .business-grid{grid-template-columns:repeat(2,1fr)}
    .contact-grid{grid-template-columns:1fr;gap:36px}
    .hero-title{font-size:2.4rem}
}

@media (max-width: 768px) {
    .hero-title{font-size:1.8rem}
    .hero-subtitle{font-size:1.1rem}
    .hero-actions{flex-direction:column;align-items:center}

    .about-grid{grid-template-columns:1fr;max-width:450px;margin:0 auto}
    .products-grid{grid-template-columns:1fr;max-width:450px;margin:0 auto}
    .business-grid{grid-template-columns:1fr;max-width:450px;margin:0 auto}

    .section{padding:70px 0}
    .section-header h2{font-size:1.7rem}

    .form-row{grid-template-columns:1fr}

    /* 移动端导航 */
    .hamburger{display:flex}
    .nav-menu{
        position:fixed;top:0;right:-100%;
        width:280px;height:100vh;
        background:#fff;flex-direction:column;
        padding:80px 28px 40px;
        gap:4px;transition:right 0.4s ease;
        box-shadow:-4px 0 30px rgba(0,0,0,0.1);
    }
    .nav-menu.active{right:0}
    .nav-link{color:#4b5563!important;padding:14px 20px;font-size:1.05rem}
    .nav-link:hover,.nav-link.active{color:#1a56db!important;background:#e8f0fe!important}

    #header.scrolled{background:rgba(255,255,255,0.98)}
    .logo{color:#fff}
    #header.scrolled .logo{color:#111827}
}

@media (max-width: 480px) {
    .container{padding:0 16px}
    .hero-title{font-size:1.5rem}
    .product-card{padding:28px 20px}
    .contact-form-wrapper{padding:24px}
}

/* ============================================
   如需使用真实背景图片，替换 .hero 的 background:
   ============================================
   1. 将图片放到 images/hero-bg.jpg
   2. 修改 .hero 的 background 为:
      background: linear-gradient(rgba(15,23,42,0.7), rgba(15,23,42,0.8)), url('../images/hero-bg.jpg') center/cover no-repeat;
   3. 推荐免费图片来源:
      - https://unsplash.com/s/photos/technology-office
      - https://www.pexels.com/search/technology%20office/
      - https://pixabay.com/images/search/technology%20background/
   ============================================ */
