/* NOVOSNS Frontend Styles - 参照原始网站设计 */
:root {
    --primary: #0459C1;
    --primary-dark: #0347a0;
    --gray-light: #f5f7fa;
    --text: #333;
    --text-light: #666;
    --border: rgba(0,0,0,.1);
    --max-width: 1330px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "SourceHanSansCN-Regular", "Microsoft YaHei", sans-serif; font-size: 14px; color: var(--text); line-height: 1.6; background: #fff; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* Layout */
.page_content { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }
.page_bg_content { min-height: 70vh; }

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header_bg { position: relative; }
.header .art_flex { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; }
.header .art_left { display: flex; align-items: center; gap: 20px; }
.logo_block { display: flex; align-items: baseline; gap: 8px; cursor: pointer; text-decoration: none; flex-shrink: 0; }
.logo_text { font-size: 22px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.logo_sub { font-size: 13px; color: #666; }
.search_block { position: relative; }
.search_block form { display: flex; align-items: center; }
.search_input { width: 260px; height: 36px; padding: 0 40px 0 14px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 13px; outline: none; transition: .2s; }
.search_input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(4,89,193,.1); }
.search_icon_btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #999; display: flex; align-items: center; }
.link_search { font-size: 13px; color: var(--primary); white-space: nowrap; }
.art_right .handler_list { display: flex; align-items: center; gap: 12px; }
.handler_link { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #666; cursor: pointer; text-decoration: none; }
.handler_link:hover { color: var(--primary); }
.lang_link { padding: 2px 6px; border-radius: 3px; }
.lang_link.active { color: var(--primary); font-weight: 600; }
.line_block { color: #ddd; }
.user_link { margin-left: 8px; }

/* Navigation */
.menu_row { display: flex; align-items: center; margin-top: 12px; }
.menu_li { position: relative; }
.menu_li a { display: block; padding: 14px 24px; font-size: 15px; color: #333; text-decoration: none; transition: .2s; white-space: nowrap; }
.menu_li:first-child a { padding-left: 0; }
.menu_li a:hover, .menu_li.active a { color: var(--primary); }
.menu_li.active a { font-weight: 600; }
.menu_li.active::after { content: ''; display: block; height: 3px; background: var(--primary); position: absolute; bottom: 0; left: 24px; right: 24px; border-radius: 2px 2px 0 0; }
.menu_li:first-child.active::after { left: 0; }

/* Footer */
.page_container { background: linear-gradient(135deg, #0455BF 0%, #009DFF 100%); color: #fff; position: relative; }
.footer_head { padding: 30px 0; display: flex; justify-content: flex-end; align-items: center; border-bottom: 1px solid rgba(255,255,255,.2); }
.footer_head_handler_list { display: flex; gap: 16px; }
.footer_head_handler_li { padding: 12px 36px; border: 1px solid rgba(255,255,255,.6); border-radius: 4px; color: #fff; text-decoration: none; font-size: 15px; transition: .2s; display: inline-block; }
.footer_head_handler_li:hover { background: #fff; color: var(--primary); }
.footer_art { display: flex; padding: 40px 0; justify-content: space-between; gap: 30px; }
.footer_earm { min-width: 200px; }
.footer_link_row { flex: 1; display: flex; justify-content: space-around; gap: 20px; flex-wrap: wrap; }
.footer_link_head { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.footer_link_line { width: 30px; height: 2px; margin-bottom: 14px; }
.footer_link_li { font-size: 13px; margin-bottom: 8px; opacity: .85; transition: .2s; }
.footer_link_li:hover { opacity: 1; transform: translateX(4px); }
.footer_handler { margin-top: 30px; }
.footer_handler .hanlder_bg { display: flex; gap: 12px; margin-top: 10px; font-size: 24px; }
.footer_keep { padding: 20px 0 30px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: .7; border-top: 1px solid rgba(255,255,255,.15); flex-wrap: wrap; gap: 8px; }
.footer_keep a:hover { opacity: 1; color: #fff; }

/* Common Components */
.page_banner { background: linear-gradient(135deg, var(--primary), #009DFF); color: #fff; padding: 60px 0; text-align: center; }
.page_banner h1 { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.page_banner p { font-size: 16px; opacity: .85; }

.section_title { font-size: 28px; font-weight: 700; color: #222; margin-bottom: 10px; text-align: center; }
.section_subtitle { font-size: 15px; color: #888; text-align: center; margin-bottom: 40px; }

.btn { display: inline-block; padding: 10px 24px; border-radius: 4px; font-size: 14px; cursor: pointer; border: none; transition: .2s; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f0f0; }

/* Product Card */
.product_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 40px 0; }
.product_card { border: 1px solid #e8e8e8; border-radius: 8px; padding: 20px; transition: .3s; background: #fff; }
.product_card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.product_card .part_number { font-size: 14px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.product_card .product_title { font-size: 15px; color: #333; margin-bottom: 10px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product_card .product_meta { font-size: 12px; color: #999; display: flex; gap: 12px; flex-wrap: wrap; }
.product_card .product_meta span { background: #f5f5f5; padding: 2px 8px; border-radius: 3px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 500; }
.tag-primary { background: #e6f0ff; color: var(--primary); }
.tag-success { background: #e6f9e6; color: #52c41a; }
.tag-warning { background: #fff7e6; color: #fa8c16; }

/* Category Tree */
.category_sidebar { width: 240px; flex-shrink: 0; border-right: 1px solid #e8e8e8; padding-right: 20px; }
.category_sidebar h3 { font-size: 16px; margin-bottom: 16px; color: #333; }
.category_list li { padding: 8px 12px; cursor: pointer; border-radius: 4px; font-size: 14px; color: #555; transition: .2s; }
.category_list li:hover, .category_list li.active { background: #e6f0ff; color: var(--primary); font-weight: 500; }
.category_list li small { color: #999; float: right; }

/* Article Card */
.article_list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; padding: 40px 0; }
.article_card { border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; transition: .3s; background: #fff; }
.article_card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.article_card .article_cover { height: 180px; background: #e6f0ff; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 40px; }
.article_card .article_body { padding: 16px; }
.article_card .article_title { font-size: 16px; font-weight: 600; color: #222; margin-bottom: 8px; }
.article_card .article_summary { font-size: 13px; color: #888; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article_card .article_date { font-size: 12px; color: #bbb; margin-top: 12px; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #0347a0 0%, #0459C1 40%, #009DFF 100%); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -100px; top: -100px; width: 500px; height: 500px; background: rgba(255,255,255,.03); border-radius: 50%; }
.hero .hero_content { max-width: 600px; position: relative; z-index: 1; }
.hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.hero p { font-size: 17px; opacity: .85; margin-bottom: 30px; line-height: 1.8; }
.hero .hero_actions { display: flex; gap: 16px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; color: #555; text-decoration: none; transition: .2s; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Two column layout */
.two_col { display: flex; gap: 30px; padding: 40px 0; }
.two_col .main_col { flex: 1; }
@media (max-width: 768px) { .two_col { flex-direction: column; } .category_sidebar { width: 100%; border-right: none; border-bottom: 1px solid #e8e8e8; padding-bottom: 16px; margin-bottom: 16px; } }

/* Detail Page */
.detail_header { background: #f8fafb; border-bottom: 1px solid #e8e8e8; padding: 30px 0; }
.detail_title { font-size: 24px; font-weight: 700; color: #222; margin-bottom: 8px; }
.detail_meta { font-size: 13px; color: #999; }
.detail_body { padding: 30px 0; line-height: 1.8; font-size: 15px; }

/* Contact Form */
.contact_form { max-width: 600px; }
.form_group { margin-bottom: 20px; }
.form_group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: #333; }
.form_group input, .form_group textarea, .form_group select { width: 100%; padding: 10px 14px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; outline: none; transition: .2s; font-family: inherit; }
.form_group input:focus, .form_group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(4,89,193,.1); }
.form_group textarea { min-height: 120px; resize: vertical; }

/* Breadcrumb */
.breadcrumb { padding: 16px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #666; text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: #333; }

/* Table */
.data_table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.data_table th, .data_table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid #e8e8e8; font-size: 14px; }
.data_table th { background: #fafafa; font-weight: 600; color: #555; }

/* Responsive */
@media (max-width: 950px) {
    .menu_row { flex-wrap: wrap; }
    .menu_li a { padding: 10px 16px; font-size: 14px; }
    .art_flex { flex-direction: column; gap: 10px; }
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 28px; }
    .product_grid { grid-template-columns: 1fr; }
    .article_list { grid-template-columns: 1fr; }
    .footer_art { flex-direction: column; }
    .footer_head_handler_list { flex-direction: column; gap: 8px; }
    .footer_head_handler_li { padding: 8px 20px; font-size: 13px; text-align: center; }
    .footer_keep { flex-direction: column; text-align: center; }
    .search_block { width: 100%; }
    .search_input { width: 100%; }
    .two_col { flex-direction: column; }
    .category_sidebar { width: 100%; border-right: none; }
}

/* Product Detail specific */
.prod_layout { display: flex; gap: 40px; padding: 40px 0; }
.prod_sidebar { width: 300px; flex-shrink: 0; }
.prod_main { flex: 1; }
.prod_image { border: 1px solid #e8e8e8; border-radius: 8px; padding: 20px; text-align: center; background: #fafafa; min-height: 200px; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 60px; }
.prod_section { margin-bottom: 24px; }
.prod_section h3 { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid #e8e8e8; }
.prod_section ul { padding-left: 16px; }
.prod_section li { font-size: 14px; color: #555; line-height: 2; list-style: disc; }

@media (max-width: 768px) { .prod_layout { flex-direction: column; } .prod_sidebar { width: 100%; } }

/* Tabs */
.tabs { display: flex; border-bottom: 2px solid #e8e8e8; margin-bottom: 24px; }
.tab { padding: 10px 20px; cursor: pointer; color: #666; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: .2s; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* Section */
.section { padding: 60px 0; }
.section_gray { background: #f8fafb; }

/* Certification Card */
.cert_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; padding: 40px 0; }
.cert_card { border: 1px solid #e8e8e8; border-radius: 8px; padding: 24px; text-align: center; background: #fff; }
.cert_card .cert_icon { font-size: 48px; margin-bottom: 12px; color: var(--primary); }
.cert_card h4 { font-size: 15px; color: #333; margin-bottom: 12px; }
