/* ==========================================================
   顺安达源电子 - 页面级样式（统一维护）
   对应模板：首页、产品列表/详情、新闻列表/详情、关于、联系、搜索
   ========================================================== */

/* ---------- 全局文字与可访问性 ---------- */
.title_desc { color: #5f6f85; }
.p_model, .p_note, .pd_note { color: #6b7785; }
.p_tag, .nl_tag, .pd_sell span { color: #006a86; }
.nl_meta, .news_meta { color: #6b7785; }
.nl_meta em { color: #007a9e; }
.side_hot li i { color: #7f90a8; }
.side_hot li:nth-child(-n+3) i { color: #007a9e; }
.pd_info h1 { font-size: 28px; color: #11224a; margin-bottom: 6px; line-height: 1.4; }
.spec_group h2 { margin: 30px 0 12px; color: #11224a; font-size: 18px; padding-left: 12px; border-left: 3px solid #00c2ef; }
.pd_h2 { margin: 30px 0 12px; color: #11224a; font-size: 18px; padding-left: 12px; border-left: 3px solid #00c2ef; }
.pl_count { width: 100%; }
.pd_panel.is-hidden { display: none; }
.search_form { max-width: 560px; margin: 0 auto 35px; }
.search_input { flex: 1; width: auto; height: 44px; border: 1px solid #d5dce8; border-right: none; padding: 0 15px; border-radius: 6px 0 0 6px; }
.search_empty { width: 100%; text-align: center; color: #6b7785; padding: 40px 0; }
.pd_section { padding-top: 25px; }
.pd_empty { padding: 30px 0; color: #6b7785; }

/* ---------- 首页：产品中心 3 列卡片 ---------- */
.home_product { padding: 70px 0 80px; }
.home_product .home_pro_nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 55px; }
.home_product .pro_card { display: block; background: #f6f8fb; border: 1px solid #e9eef5; border-radius: 14px; overflow: hidden; transition: all .35s ease; }
.home_product .pro_card:hover { background: #fff; border-color: #dce6f3; transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 38, 101, .12); }
.home_product .pro_pic { height: 240px; display: flex; align-items: center; justify-content: center; padding: 22px; }
.home_product .pro_pic img { max-width: 100%; max-height: 196px; width: auto; height: auto; object-fit: contain; transition: transform .35s ease; }
.home_product .pro_card:hover .pro_pic img { transform: scale(1.06); }
.home_product .pro_info { padding: 0 26px 26px; text-align: left; }
.home_product .pro_info h2 { font-size: 20px; color: #11224a; line-height: 1.4; margin-bottom: 8px; text-align: left; }
.home_product .pro_info p { color: #55657a; font-size: 14px; line-height: 24px; height: 48px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: justify; }
.home_product .pro_more { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; width: auto; padding: 0; border: none; border-radius: 0; line-height: 1.4; text-align: left; color: #002665; font-size: 14px; font-weight: 600; transition: color .3s; }
.home_product .pro_more em { font-style: normal; }
.home_product .pro_card:hover .pro_more { color: #007a9e; }

/* ---------- 产品列表：分类筛选 + 搜索 ---------- */
.pl_filter { padding: 50px 0 0; }
.pl_filter_bar { background: #fff; border: 1px solid #eceff5; border-radius: 16px; padding: 30px 34px 32px; box-shadow: 0 10px 34px rgba(0, 38, 101, .07); }
.pl_filter_title { margin-bottom: 22px; }
.pl_filter_title h2 { font-size: 21px; color: #11224a; line-height: 1.2; letter-spacing: .5px; }
.pl_filter_title h2 span { color: #007a9e; }
.pl_filter_title p { margin-top: 7px; color: #55657a; font-size: 13px; }
.pl_tabs { display: flex; flex-wrap: wrap; gap: 9px; }
.pl_tabs a { display: inline-block; padding: 9px 17px; border-radius: 5px; border: 1px solid #dbe2ec; background: #f8fafd; color: #33507c; font-size: 14px; line-height: 20px; transition: all .25s ease; }
.pl_tabs a:hover { border-color: #007a9e; color: #007a9e; background: #f0fbff; transform: translateY(-1px); }
.pl_tabs a.on { background: #002665; border-color: #002665; color: #fff; box-shadow: 0 6px 16px rgba(0, 38, 101, .22); }
.pl_search_section { padding: 20px 0 0; }
.pl_search_band { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; background: linear-gradient(120deg, #002665 0%, #003f8f 62%, #0095c8 140%); border-radius: 16px; padding: 26px 34px; box-shadow: 0 12px 30px rgba(0, 38, 101, .18); }
.pl_search_label h4 { color: #fff; font-size: 19px; letter-spacing: 1px; }
.pl_search_label p { color: rgba(255, 255, 255, .82); font-size: 13px; margin-top: 6px; }
.pl_search_box { display: flex; flex: 0 0 auto; }
.pl_search_box input { width: 380px; height: 48px; border: none; border-radius: 5px 0 0 5px; padding: 0 20px; font-size: 14px; color: #333; outline: none; }
.pl_search_box button { width: 108px; height: 48px; border: none; border-radius: 0 5px 5px 0; background: #007a9e; color: #fff; font-size: 15px; letter-spacing: 2px; cursor: pointer; transition: background .25s, color .25s; }
.pl_search_box button:hover { background: #002665; color: #fff; }
.pl_grid .p_pic { padding: 10px; }
.pl_grid .p_pic img { max-width: 100%; max-height: 188px; width: auto; height: auto; object-fit: contain; }
.pl_grid .p_title { font-size: 15px; line-height: 1.5; height: 68px; }

/* ---------- 分页（产品/新闻/搜索共用） ---------- */
.pl_pagination { margin-top: 45px; }
.pl_pagination ul { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; gap: 8px; padding: 0; margin: 0; }
.pl_pagination .page-link { display: inline-block; min-width: 40px; height: 40px; line-height: 38px; padding: 0 12px; border: 1px solid #d5dce8; border-radius: 6px; color: #33507c; font-size: 14px; }
.pl_pagination .page-link:hover { border-color: #007a9e; color: #007a9e; }
.pl_pagination .active .page-link { background: #002665; color: #fff; border-color: #002665; }
.pl_pagination .disabled .page-link { color: #6b7785; }
.pl_pagination .jumpto, .pl_pagination form { display: none; }

/* ---------- 新闻列表 / 详情 ---------- */
.nl_tabs a { padding: 9px 28px; border-radius: 6px; border: 1px solid #d5dce8; background: #fff; color: #33507c; font-size: 15px; transition: .3s; display: inline-block; }
.nl_tabs a.on { background: #002665; border-color: #002665; color: #fff; }
.nl_info h2 { font-size: 19px; color: #222; margin: 10px 0 8px; line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nl_info h2:hover { color: #007a9e; }
.side_card h2 { font-size: 18px; color: #11224a; padding-bottom: 14px; border-bottom: 1px solid #eee; margin-bottom: 16px; }
.side_contact h2 { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.news_body h2 { font-size: 19px; color: #11224a; margin: 26px 0 12px; }

/* ---------- 关于我们：主营产品 / 应用领域 / FAQ ---------- */
.about_products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 45px; }
.about_product { display: block; background: #fff; border: 1px solid #e9eef5; border-radius: 12px; padding: 22px 22px 20px; transition: all .3s ease; }
.about_product:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 38, 101, .1); border-color: #dce6f3; }
.ap_pic { height: 110px; display: flex; align-items: center; justify-content: center; }
.ap_pic img { max-width: 100%; max-height: 100px; width: auto; height: auto; }
.about_product h3 { font-size: 17px; color: #11224a; margin-top: 14px; line-height: 1.4; }
.about_product p { font-size: 13px; color: #55657a; line-height: 22px; margin-top: 6px; min-height: 44px; }
.about_product span { display: inline-block; margin-top: 8px; font-size: 13px; color: #002665; font-weight: 600; }
.about_product:hover span { color: #007a9e; }
.app_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 45px; }
.app_item { background: #f6f8fb; border: 1px solid #e9eef5; border-radius: 12px; overflow: hidden; transition: all .3s ease; }
.app_item:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0, 38, 101, .12); background: #fff; }
.app_pic { height: 170px; overflow: hidden; }
.app_pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.app_item:hover .app_pic img { transform: scale(1.05); }
.app_info { padding: 20px 22px 24px; }
.app_info h3 { font-size: 18px; color: #11224a; margin-bottom: 7px; }
.app_info p { font-size: 13px; color: #55657a; line-height: 23px; }
.about_faq { max-width: 900px; margin: 40px auto 0; }
.about_faq details { background: #fff; border: 1px solid #e9eef5; border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; }
.about_faq summary { position: relative; list-style: none; padding-right: 30px; cursor: pointer; font-size: 15px; color: #11224a; font-weight: 600; outline: none; }
.about_faq summary::-webkit-details-marker { display: none; }
.about_faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: #007a9e; font-size: 20px; font-weight: 400; }
.about_faq details[open] summary { color: #002665; }
.about_faq details[open] summary::after { content: '−'; }
.about_faq summary:hover { color: #007a9e; }
.about_faq p { margin-top: 10px; font-size: 14px; color: #55657a; line-height: 1.9; }

/* ---------- 联系我们：手机端表单 ---------- */
.contact_message_con .input_item .input_text { min-width: 0; }

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1024px) {
    .home_product .home_pro_nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .home_product .pro_pic { height: 220px; }
    .about_products, .app_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 平板端 9 个分类：最后一张居中，避免单独靠左 */
@media (min-width: 768px) and (max-width: 1024px) {
    .home_product .home_pro_nav .pro_card:nth-child(9) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
}
@media (max-width: 992px) {
    .pl_search_band { align-items: flex-start; }
    .pl_search_box { width: 100%; }
    .pl_search_box input { flex: 1; width: auto; }
}
@media (max-width: 767px) {
    .home_product { padding: 45px 0 55px; }
    .home_product .home_pro_nav { grid-template-columns: 1fr; gap: 18px; margin-top: 35px; }
    .home_product .pro_pic { height: 210px; }
    .home_product .pro_info { padding: 0 20px 22px; }
    .home_product .pro_info h2 { font-size: 18px; }
    .pd_info h1 { font-size: 24px; }

    .pl_filter_bar { padding: 22px 18px 24px; border-radius: 12px; }
    .pl_filter_title h2 { font-size: 18px; }
    .pl_tabs a { padding: 8px 14px; font-size: 13px; }
    .pl_search_band { padding: 22px 20px; border-radius: 12px; }
    .pl_search_label h4 { font-size: 17px; }
    .pl_search_box button { width: 92px; }

    .about_products, .app_grid { grid-template-columns: 1fr; gap: 16px; }
    .ap_pic { height: 96px; }
    .app_pic { height: 160px; }
    .about_faq details { padding: 14px 16px; }

    .contact_message { padding: 45px 0; }
    .contact_message_con { margin-top: 35px; }
    .contact_message_con .contact_form { display: block; width: 100%; }
    .contact_message_con .input_item,
    .contact_message_con .input_item.w100,
    .contact_message_con .input_item.w33,
    .contact_message_con .input_item.w50 { display: block; width: 100%; margin-left: 0; margin-bottom: 16px; padding: 0; border: none; background: transparent; }
    .contact_message_con .input_item .input_title { display: block; margin: 0 0 7px; font-size: 14px; color: #33507c; }
    .contact_message_con .input_item .input_text { display: block; width: 100%; min-width: 0; height: 46px; line-height: 46px; padding: 0 15px; background: #fff; border: 1px solid #dbe2ec; border-radius: 5px; font-size: 14px; color: #333; }
    .contact_message_con .input_item .input_text:focus { border-color: #00c2ef; }
.contact_message_con .input_item .input_text.input_invalid { border-color: #e5484d; background: #fff5f5; }
.contact_message_con .field_error { min-height: 18px; margin: 4px 0 0; font-size: 12px; line-height: 18px; color: #e5484d; }
.contact_message_con .form_status { width: 100%; margin: 4px 0 12px; font-size: 14px; min-height: 20px; }
.contact_message_con .form_status.status_ok { color: #1a7f37; }
.contact_message_con .form_status.status_err { color: #e5484d; }
    .contact_message_con textarea.input_text { height: 120px; line-height: 26px; padding: 12px 15px; resize: vertical; }
    .contact_message_con .message_code { display: block; width: 100%; margin-top: 2px; }
    .contact_message_con .message_code .submit { width: 100%; flex: none; padding: 15px 20px; border-radius: 5px; font-size: 16px; letter-spacing: 2px; }
}

/* ---------- 产品详情：常见问题 ---------- */
.pd_faq { background: #f6f9fc; padding: 56px 0 60px; }
.pd_faq_title { font-size: 26px; font-weight: 700; color: #002665; margin: 0 0 24px; }
.pd_faq_item { background: #fff; border: 1px solid #e6edf5; border-radius: 8px; padding: 20px 24px; margin-bottom: 14px; }
.pd_faq_item h3 { font-size: 16px; font-weight: 600; color: #0a2d5e; margin: 0 0 10px; line-height: 1.5; }
.pd_faq_item p { margin: 0; font-size: 14px; line-height: 1.9; color: #51617a; }
.pd_faq_tip { margin: 18px 0 0; font-size: 14px; color: #5f6f85; }
.pd_faq_tip b { color: #002665; }
.pd_faq_tip a { color: #006a86; text-decoration: underline; }
@media (max-width: 767px) {
    .pd_faq { padding: 40px 0 44px; }
    .pd_faq_title { font-size: 22px; margin-bottom: 18px; }
    .pd_faq_item { padding: 16px 16px; }
    .pd_faq_item h3 { font-size: 15px; }
}

/* ---------- 产品详情：正文列表 ---------- */
.pd_article .pd_ul { margin: 0 0 18px; padding-left: 0; }
.pd_article .pd_ul li { position: relative; list-style: none; padding-left: 16px; margin: 7px 0; line-height: 1.9; color: #51617a; font-size: 15px; }
.pd_article .pd_ul li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: #00a6cf; }
.pd_article .pd_ul li strong { color: #0a2d5e; font-weight: 600; }
@media (max-width: 767px) {
    .pd_article .pd_ul li { font-size: 14px; }
}
