/* ============================================================
 * 嘉德和润科技有限公司企业官网 全局样式
 * 简约商务科技风
 * ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif; color: #333; background: #f5f6f9; line-height: 1.6; }
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #1e6fff; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
ul, ol { list-style: none; }
.clearfix::after { content: ""; display: block; clear: both; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

:root {
    --primary: #1e6fff;
    --primary-dark: #1456c8;
    --gray: #f5f6f9;
    --text: #333;
    --text-light: #888;
    --border: #e5e7eb;
}

/* 头部 */
.header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo img { max-height: 50px; }
.logo span { font-size: 20px; font-weight: 700; color: var(--primary); }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 16px; padding: 8px 0; position: relative; }
.nav a.active, .nav a:hover { color: var(--primary); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--primary); }
.menu-btn { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

/* 轮播 banner */
.banner { position: relative; overflow: hidden; max-height: 520px; }
.banner .item { position: relative; display: none; }
.banner .item.active { display: block; }
.banner .item img { width: 100%; height: 520px; object-fit: cover; }
.banner .item .mask { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.4)); }
.banner .item .txt { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: #fff; text-align: center; width: 90%; }
.banner .item .txt h2 { font-size: 42px; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.banner .item .txt p { font-size: 18px; }
.banner .dot { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 8px; }
.banner .dot span { width: 28px; height: 4px; background: rgba(255,255,255,.5); border-radius: 2px; cursor: pointer; }
.banner .dot span.active { background: #fff; }

/* section 公共 */
.section { padding: 60px 0; background: #fff; margin-bottom: 20px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h3 { font-size: 30px; color: var(--text); margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 16px; }
.section-title .line { width: 50px; height: 3px; background: var(--primary); margin: 15px auto 0; }

/* 简介摘要 */
.about-summary { padding: 60px 0; background: #fff; margin-bottom: 20px; }
.about-summary .row { display: flex; gap: 40px; align-items: center; }
.about-summary .row .left { flex: 1; }
.about-summary .row .right { flex: 1; }
.about-summary .row img { border-radius: 8px; }
.about-summary h3 { font-size: 28px; margin-bottom: 16px; color: var(--text); }
.about-summary .desc { color: var(--text-light); font-size: 15px; line-height: 1.8; }

/* 产品推荐 */
.product-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: all .3s; }
.product-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); border-color: var(--primary); }
.product-item .img { width: 100%; height: 200px; overflow: hidden; background: #f0f2f5; }
.product-item .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-item:hover .img img { transform: scale(1.05); }
.product-item .info { padding: 15px; }
.product-item .info h4 { font-size: 16px; margin-bottom: 8px; }
.product-item .info p { color: var(--text-light); font-size: 13px; height: 40px; overflow: hidden; }

/* 案例 */
.case-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-item { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.case-item .img { width: 100%; height: 220px; overflow: hidden; background: #f0f2f5; }
.case-item .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-item:hover .img img { transform: scale(1.05); }
.case-item .info { padding: 15px; }
.case-item .info h4 { font-size: 16px; margin-bottom: 6px; }

/* 底部 */
.footer { background: #1f2937; color: #d1d5db; padding: 50px 0 20px; }
.footer .row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h5 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer p, .footer a { color: #9ca3af; font-size: 14px; line-height: 1.8; }
.footer a:hover { color: #fff; }
.footer .copyright { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid #374151; color: #9ca3af; font-size: 13px; }
.footer .contact p { margin-bottom: 6px; }
.footer .qr img { max-width: 120px; }

/* 内页 banner */
.inner-banner { background: linear-gradient(135deg, #1e6fff 0%, #1456c8 100%); padding: 80px 0; text-align: center; color: #fff; }
.inner-banner h1 { font-size: 32px; }
.inner-banner .crumb { margin-top: 10px; opacity: .8; font-size: 14px; }
.inner-banner .crumb a { color: #fff; }

/* 关于我们 */
.about-content { padding: 50px 0; background: #fff; }
.about-content .html { font-size: 15px; line-height: 1.9; color: #444; }
.about-content .html p { margin-bottom: 14px; }
.about-content .html img { max-width: 100%; border-radius: 6px; margin: 10px 0; }
.about-content .html h2, .about-content .html h3 { margin: 20px 0 10px; }

/* 产品分类 tab */
.cat-tab { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.cat-tab a { padding: 8px 20px; background: #fff; border: 1px solid var(--border); border-radius: 20px; font-size: 14px; }
.cat-tab a.active, .cat-tab a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 产品详情 */
.product-detail { background: #fff; padding: 40px 0; }
.product-detail .top { display: flex; gap: 30px; margin-bottom: 30px; }
.product-detail .top .cover { width: 400px; flex-shrink: 0; }
.product-detail .top .cover img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.product-detail .top .info h1 { font-size: 26px; margin-bottom: 12px; }
.product-detail .top .info .intro { color: var(--text-light); margin-bottom: 16px; }
.product-detail .params { background: #f9fafb; padding: 15px 20px; border-radius: 6px; }
.product-detail .params li { display: flex; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.product-detail .params li:last-child { border-bottom: 0; }
.product-detail .params li span:first-child { width: 110px; color: var(--text-light); }
.product-detail .images img { margin-bottom: 10px; border-radius: 6px; }
.product-detail .content { margin-top: 30px; }
.product-detail .content h2 { font-size: 22px; margin-bottom: 20px; padding-left: 12px; border-left: 4px solid var(--primary); }

/* 下载 */
.download-list .item { background: #fff; padding: 20px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 15px; display: flex; align-items: center; gap: 20px; }
.download-list .item .ico { font-size: 36px; color: var(--primary); }
.download-list .item .info { flex: 1; }
.download-list .item .info h4 { font-size: 16px; margin-bottom: 6px; }
.download-list .item .info p { color: var(--text-light); font-size: 13px; }
.download-list .item .meta { color: var(--text-light); font-size: 13px; margin-right: 16px; }
.btn { display: inline-block; padding: 8px 22px; background: var(--primary); color: #fff; border-radius: 4px; font-size: 14px; }
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* 案例 */
.case-detail { background: #fff; padding: 40px 0; }
.case-detail h1 { text-align: center; font-size: 28px; margin-bottom: 10px; }
.case-detail .meta { text-align: center; color: var(--text-light); font-size: 13px; margin-bottom: 30px; }
.case-detail .html { font-size: 15px; line-height: 1.9; color: #444; }
.case-detail .html p { margin-bottom: 14px; }
.case-detail .html img { max-width: 100%; border-radius: 6px; margin: 10px 0; }
.case-detail .gallery { margin: 20px 0; }
.case-detail .gallery img { margin-bottom: 10px; border-radius: 6px; }

/* 分页 */
.pager { text-align: center; padding: 30px 0; }
.pager a { display: inline-block; padding: 6px 14px; background: #fff; border: 1px solid var(--border); margin: 0 3px; border-radius: 4px; }
.pager a.cur { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 响应式 */
@media (max-width: 992px) {
    .product-list { grid-template-columns: repeat(2, 1fr); }
    .case-list { grid-template-columns: repeat(2, 1fr); }
    .footer .row { grid-template-columns: 1fr 1fr; }
    .about-summary .row { flex-direction: column; }
    .product-detail .top { flex-direction: column; }
    .product-detail .top .cover { width: 100%; }
}
@media (max-width: 768px) {
    .header .container { height: 60px; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: #fff; flex-direction: column; padding: 10px 20px; box-shadow: 0 4px 8px rgba(0,0,0,.05); }
    .nav.open { display: flex; }
    .nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
    .menu-btn { display: block; }
    .banner .item img, .banner { height: 280px; }
    .banner .item .txt h2 { font-size: 24px; }
    .banner .item .txt p { font-size: 14px; }
    .section { padding: 30px 0; }
    .section-title h3 { font-size: 22px; }
    .product-list, .case-list { grid-template-columns: 1fr 1fr; }
    .footer .row { grid-template-columns: 1fr; }
    .container { padding: 0 12px; }
    .inner-banner { padding: 50px 0; }
    .inner-banner h1 { font-size: 24px; }
}
@media (max-width: 480px) {
    .product-list, .case-list { grid-template-columns: 1fr; }
    .download-list .item { flex-direction: column; align-items: flex-start; }
}
