/* 华信达科技官网样式表 - HuaXinDa Tech Styles */
/* 基础重置 */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:"Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif;line-height:1.6;color:#333;background:#fff}
a{text-decoration:none;color:inherit;transition:color .3s ease}
ul,ol{list-style:none}
img{max-width:100%;height:auto;display:block}
.hxd-wrapper{width:100%;max-width:1200px;margin:0 auto;padding:0 15px}
.hxd-clearfix::after{content:"";display:table;clear:both}

/* 顶部通栏 */
.hxd-topbar{background:linear-gradient(135deg,#1a5fb4 0%,#0d3b7a 100%);color:#fff;padding:8px 0;font-size:13px}
.hxd-topbar-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}
.hxd-topbar-contact{display:flex;gap:20px;flex-wrap:wrap}
.hxd-topbar-contact span{display:flex;align-items:center;gap:5px}
.hxd-topbar-social{display:flex;gap:12px}
.hxd-topbar-social a{color:#fff;opacity:.85;transition:opacity .3s}
.hxd-topbar-social a:hover{opacity:1}

/* 头部导航 */
.hxd-header{background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.08);position:sticky;top:0;z-index:1000}
.hxd-header-inner{display:flex;justify-content:space-between;align-items:center;padding:15px 0}
.hxd-logo{display:flex;align-items:center;gap:12px}
.hxd-logo-icon{width:48px;height:48px;background:linear-gradient(135deg,#1a5fb4,#0d3b7a);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:18px}
.hxd-logo-text{font-size:22px;font-weight:700;color:#1a5fb4}
.hxd-logo-text span{display:block;font-size:12px;color:#666;font-weight:400;letter-spacing:1px}
.hxd-nav{display:flex;gap:5px}
.hxd-nav-item{padding:10px 18px;font-size:15px;color:#333;border-radius:6px;transition:all .3s}
.hxd-nav-item:hover,.hxd-nav-item.current{background:#1a5fb4;color:#fff}
.hxd-mobile-toggle{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:10px}
.hxd-mobile-toggle span{width:25px;height:3px;background:#333;border-radius:2px;transition:all .3s}

/* Banner横幅 */
.hxd-banner{position:relative;height:500px;background:linear-gradient(135deg,#0d3b7a 0%,#1a5fb4 50%,#2e7dd1 100%);overflow:hidden}
.hxd-banner-content{position:relative;z-index:2;height:100%;display:flex;align-items:center}
.hxd-banner-text{color:#fff;max-width:600px}
.hxd-banner-text h1{font-size:42px;font-weight:700;margin-bottom:20px;line-height:1.3}
.hxd-banner-text h1 em{font-style:normal;color:#ffd700}
.hxd-banner-text p{font-size:18px;opacity:.9;margin-bottom:30px;line-height:1.8}
.hxd-banner-btns{display:flex;gap:15px;flex-wrap:wrap}
.hxd-btn{display:inline-block;padding:14px 32px;border-radius:8px;font-size:16px;font-weight:500;transition:all .3s;cursor:pointer;border:none}
.hxd-btn-primary{background:#ffd700;color:#0d3b7a}
.hxd-btn-primary:hover{background:#ffed4a;transform:translateY(-2px)}
.hxd-btn-outline{background:transparent;color:#fff;border:2px solid rgba(255,255,255,.5)}
.hxd-btn-outline:hover{background:rgba(255,255,255,.1);border-color:#fff}

/* 通用区块样式 */
.hxd-section{padding:80px 0}
.hxd-section-header{text-align:center;margin-bottom:50px}
.hxd-section-tag{display:inline-block;padding:6px 16px;background:rgba(26,95,180,.1);color:#1a5fb4;border-radius:20px;font-size:14px;margin-bottom:15px}
.hxd-section-title{font-size:32px;font-weight:700;color:#222;margin-bottom:15px}
.hxd-section-title span{color:#1a5fb4}
.hxd-section-desc{font-size:16px;color:#666;max-width:600px;margin:0 auto}
.hxd-section-alt{background:#f8fafc}

/* 关于我们区块 */
.hxd-about-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}
.hxd-about-img{position:relative;border-radius:16px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.1)}
.hxd-about-img-placeholder{height:350px;background:linear-gradient(135deg,#e8f0fe,#d4e4fc);display:flex;align-items:center;justify-content:center;color:#1a5fb4;font-size:18px}
.hxd-about-content h2{font-size:28px;color:#222;margin-bottom:20px}
.hxd-about-content h2 span{color:#1a5fb4}
.hxd-about-content p{color:#555;margin-bottom:20px;line-height:1.9}
.hxd-about-features{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:25px}
.hxd-about-feature{display:flex;align-items:center;gap:10px;padding:12px;background:#f8fafc;border-radius:8px}
.hxd-about-feature-icon{width:36px;height:36px;background:linear-gradient(135deg,#1a5fb4,#2e7dd1);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px}
.hxd-about-feature span{font-size:14px;color:#333}

/* 产品展示区块 */
.hxd-products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:25px}
.hxd-product-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 5px 20px rgba(0,0,0,.06);transition:all .3s}
.hxd-product-card:hover{transform:translateY(-8px);box-shadow:0 15px 40px rgba(0,0,0,.12)}
.hxd-product-img{height:180px;background:linear-gradient(135deg,#e8f0fe,#d4e4fc);display:flex;align-items:center;justify-content:center;color:#1a5fb4;font-size:40px}
.hxd-product-info{padding:20px}
.hxd-product-info h3{font-size:17px;color:#222;margin-bottom:10px}
.hxd-product-info p{font-size:14px;color:#666;line-height:1.7}
.hxd-product-link{display:inline-block;margin-top:12px;color:#1a5fb4;font-size:14px;font-weight:500}
.hxd-product-link:hover{text-decoration:underline}

/* 服务区块 */
.hxd-services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.hxd-service-card{background:#fff;padding:35px 25px;border-radius:12px;text-align:center;box-shadow:0 5px 20px rgba(0,0,0,.05);transition:all .3s;border:1px solid #eee}
.hxd-service-card:hover{border-color:#1a5fb4;box-shadow:0 10px 30px rgba(26,95,180,.15)}
.hxd-service-icon{width:70px;height:70px;margin:0 auto 20px;background:linear-gradient(135deg,#e8f0fe,#d4e4fc);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:28px;color:#1a5fb4}
.hxd-service-card h3{font-size:18px;color:#222;margin-bottom:12px}
.hxd-service-card p{font-size:14px;color:#666;line-height:1.8}

/* 新闻区块 */
.hxd-news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.hxd-news-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 5px 20px rgba(0,0,0,.06);transition:all .3s}
.hxd-news-card:hover{transform:translateY(-5px);box-shadow:0 15px 35px rgba(0,0,0,.1)}
.hxd-news-img{height:200px;background:linear-gradient(135deg,#e8f0fe,#d4e4fc);display:flex;align-items:center;justify-content:center;color:#1a5fb4;font-size:16px}
.hxd-news-info{padding:25px}
.hxd-news-date{font-size:13px;color:#999;margin-bottom:10px}
.hxd-news-info h3{font-size:17px;color:#222;margin-bottom:12px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hxd-news-info p{font-size:14px;color:#666;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* 数据统计区块 */
.hxd-stats{background:linear-gradient(135deg,#0d3b7a 0%,#1a5fb4 100%);padding:60px 0}
.hxd-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;text-align:center;color:#fff}
.hxd-stat-item h3{font-size:48px;font-weight:700;margin-bottom:10px}
.hxd-stat-item h3 span{font-size:24px}
.hxd-stat-item p{font-size:16px;opacity:.85}

/* 合作伙伴区块 */
.hxd-partners{padding:60px 0;background:#f8fafc}
.hxd-partners-title{text-align:center;font-size:24px;color:#222;margin-bottom:40px}
.hxd-partners-grid{display:flex;justify-content:center;flex-wrap:wrap;gap:30px}
.hxd-partner-item{width:150px;height:80px;background:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 15px rgba(0,0,0,.05);color:#999;font-size:14px}

/* 联系区块 */
.hxd-contact-section{background:linear-gradient(135deg,#f8fafc,#e8f0fe)}
.hxd-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px}
.hxd-contact-info h2{font-size:28px;color:#222;margin-bottom:25px}
.hxd-contact-info h2 span{color:#1a5fb4}
.hxd-contact-item{display:flex;gap:15px;margin-bottom:25px}
.hxd-contact-icon{width:50px;height:50px;background:linear-gradient(135deg,#1a5fb4,#2e7dd1);border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;flex-shrink:0}
.hxd-contact-text h4{font-size:16px;color:#222;margin-bottom:5px}
.hxd-contact-text p{font-size:14px;color:#666}
.hxd-contact-form{background:#fff;padding:35px;border-radius:16px;box-shadow:0 10px 40px rgba(0,0,0,.08)}
.hxd-form-group{margin-bottom:20px}
.hxd-form-group label{display:block;font-size:14px;color:#333;margin-bottom:8px}
.hxd-form-group input,.hxd-form-group textarea{width:100%;padding:12px 16px;border:1px solid #ddd;border-radius:8px;font-size:14px;transition:border-color .3s}
.hxd-form-group input:focus,.hxd-form-group textarea:focus{outline:none;border-color:#1a5fb4}
.hxd-form-group textarea{height:120px;resize:vertical}
.hxd-form-submit{width:100%;padding:14px;background:linear-gradient(135deg,#1a5fb4,#2e7dd1);color:#fff;border:none;border-radius:8px;font-size:16px;cursor:pointer;transition:all .3s}
.hxd-form-submit:hover{background:linear-gradient(135deg,#0d3b7a,#1a5fb4)}

/* 底部样式 */
.hxd-footer{background:#1a1a2e;color:#fff;padding:60px 0 0}
.hxd-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,.1)}
.hxd-footer-about h3{font-size:20px;margin-bottom:20px}
.hxd-footer-about p{font-size:14px;opacity:.75;line-height:1.8;margin-bottom:20px}
.hxd-footer-qrcodes{display:flex;gap:20px}
.hxd-footer-qrcode{text-align:center}
.hxd-footer-qrcode-img{width:100px;height:100px;background:rgba(255,255,255,.1);border-radius:8px;display:flex;align-items:center;justify-content:center;margin-bottom:8px;overflow:hidden}
.hxd-footer-qrcode-img svg{width:80px;height:80px}
.hxd-footer-qrcode span{font-size:12px;opacity:.7}
.hxd-footer-links h4{font-size:16px;margin-bottom:20px}
.hxd-footer-links ul li{margin-bottom:12px}
.hxd-footer-links ul li a{font-size:14px;opacity:.75;transition:opacity .3s}
.hxd-footer-links ul li a:hover{opacity:1}
.hxd-footer-contact h4{font-size:16px;margin-bottom:20px}
.hxd-footer-contact p{font-size:14px;opacity:.75;margin-bottom:12px;line-height:1.6}
.hxd-footer-bottom{padding:25px 0;text-align:center}
.hxd-footer-bottom p{font-size:13px;opacity:.6}
.hxd-footer-bottom a{color:#ffd700;opacity:1}

/* 面包屑导航 */
.hxd-breadcrumb{background:#f5f5f5;padding:15px 0}
.hxd-breadcrumb-list{display:flex;align-items:center;gap:10px;font-size:14px;color:#666}
.hxd-breadcrumb-list a{color:#1a5fb4}
.hxd-breadcrumb-list span{color:#999}

/* 返回顶部 */
.hxd-back-top{position:fixed;bottom:30px;right:30px;width:50px;height:50px;background:linear-gradient(135deg,#1a5fb4,#2e7dd1);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;visibility:hidden;transition:all .3s;box-shadow:0 5px 20px rgba(26,95,180,.3);z-index:999}
.hxd-back-top.visible{opacity:1;visibility:visible}
.hxd-back-top:hover{transform:translateY(-3px)}

/* 内页标题区 */
.hxd-page-banner{background:linear-gradient(135deg,#0d3b7a 0%,#1a5fb4 100%);padding:60px 0;text-align:center;color:#fff}
.hxd-page-banner h1{font-size:36px;margin-bottom:15px}
.hxd-page-banner p{font-size:16px;opacity:.85}

/* 新闻详情页 */
.hxd-article{padding:50px 0}
.hxd-article-header{margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid #eee}
.hxd-article-header h1{font-size:28px;color:#222;margin-bottom:15px;line-height:1.4}
.hxd-article-meta{display:flex;gap:20px;font-size:14px;color:#999}
.hxd-article-content{font-size:16px;line-height:2;color:#444}
.hxd-article-content p{margin-bottom:20px}
.hxd-article-content h2{font-size:22px;color:#222;margin:30px 0 15px}
.hxd-article-content h3{font-size:18px;color:#333;margin:25px 0 12px}

/* 新闻列表页 */
.hxd-news-list{padding:50px 0}
.hxd-news-list-item{display:flex;gap:30px;padding:25px 0;border-bottom:1px solid #eee}
.hxd-news-list-item:last-child{border-bottom:none}
.hxd-news-list-img{width:280px;height:180px;flex-shrink:0;background:linear-gradient(135deg,#e8f0fe,#d4e4fc);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#1a5fb4}
.hxd-news-list-content{flex:1}
.hxd-news-list-content h3{font-size:20px;color:#222;margin-bottom:12px;line-height:1.4}
.hxd-news-list-content h3 a:hover{color:#1a5fb4}
.hxd-news-list-content p{font-size:14px;color:#666;line-height:1.8;margin-bottom:15px}
.hxd-news-list-meta{font-size:13px;color:#999}

/* 产品列表页 */
.hxd-products-list{padding:50px 0}

/* 关于我们页 */
.hxd-about-page{padding:50px 0}
.hxd-about-intro{margin-bottom:50px}
.hxd-about-intro h2{font-size:26px;color:#222;margin-bottom:20px}
.hxd-about-intro h2 span{color:#1a5fb4}
.hxd-about-intro p{font-size:16px;color:#555;line-height:2;margin-bottom:15px}
.hxd-timeline{position:relative;padding-left:30px}
.hxd-timeline::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:#e0e0e0}
.hxd-timeline-item{position:relative;padding-bottom:30px}
.hxd-timeline-item::before{content:"";position:absolute;left:-34px;top:5px;width:10px;height:10px;background:#1a5fb4;border-radius:50%}
.hxd-timeline-item h4{font-size:18px;color:#1a5fb4;margin-bottom:8px}
.hxd-timeline-item p{font-size:14px;color:#666;line-height:1.7}

/* 联系我们页 */
.hxd-contact-page{padding:50px 0}
.hxd-map-placeholder{height:350px;background:linear-gradient(135deg,#e8f0fe,#d4e4fc);border-radius:12px;display:flex;align-items:center;justify-content:center;color:#1a5fb4;font-size:18px;margin-bottom:40px}

/* 响应式设计 */
@media(max-width:992px){
    .hxd-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;flex-direction:column;padding:15px;box-shadow:0 10px 30px rgba(0,0,0,.1)}
    .hxd-nav.active{display:flex}
    .hxd-mobile-toggle{display:flex}
    .hxd-banner{height:400px}
    .hxd-banner-text h1{font-size:28px}
    .hxd-about-grid{grid-template-columns:1fr}
    .hxd-products-grid{grid-template-columns:repeat(2,1fr)}
    .hxd-services-grid{grid-template-columns:1fr}
    .hxd-news-grid{grid-template-columns:1fr}
    .hxd-stats-grid{grid-template-columns:repeat(2,1fr)}
    .hxd-contact-grid{grid-template-columns:1fr}
    .hxd-footer-grid{grid-template-columns:1fr 1fr}
    .hxd-news-list-item{flex-direction:column}
    .hxd-news-list-img{width:100%;height:200px}
}

@media(max-width:576px){
    .hxd-topbar-inner{justify-content:center}
    .hxd-topbar-social{display:none}
    .hxd-banner{height:350px}
    .hxd-banner-text h1{font-size:24px}
    .hxd-banner-text p{font-size:15px}
    .hxd-section{padding:50px 0}
    .hxd-section-title{font-size:24px}
    .hxd-products-grid{grid-template-columns:1fr}
    .hxd-stats-grid{grid-template-columns:1fr}
    .hxd-stat-item h3{font-size:36px}
    .hxd-footer-grid{grid-template-columns:1fr}
    .hxd-page-banner h1{font-size:26px}
}

/* 懒加载占位 */
.hxd-lazy{opacity:0;transition:opacity .5s}
.hxd-lazy.loaded{opacity:1}

/* 分享按钮 */
.hxd-share{display:flex;gap:10px;margin-top:20px}
.hxd-share-btn{padding:8px 16px;border-radius:6px;font-size:13px;color:#fff;cursor:pointer;transition:all .3s}
.hxd-share-btn.wechat{background:#07c160}
.hxd-share-btn.weibo{background:#e6162d}
.hxd-share-btn.douyin{background:#000}
.hxd-share-btn.bilibili{background:#00a1d6}
.hxd-share-btn:hover{opacity:.85;transform:translateY(-2px)}
