/* 杭州菲康电子官网样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #333; line-height: 1.6; background: #fff; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1600px; margin: 0 auto; padding: 0 20px; }

/* 头部 */
.site-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo a { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; }
.logo-text { font-size: 20px; font-weight: 700; color: #0F3460; white-space: nowrap; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-size: 15px; color: #333; padding: 5px 0; position: relative; transition: color 0.3s; }
.main-nav a:hover, .main-nav .active a { color: #0F3460; }
.main-nav .active a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: #0F3460; }
.header-search form { display: flex; }
.header-search input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px 0 0 4px; width: 180px; font-size: 14px; }
.header-search button { padding: 8px 16px; background: #0F3460; color: #fff; border: none; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 14px; }
.mobile-menu-btn { display: none; background: none; border: 1px solid #ddd; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
.mobile-top-bar { display: none; }

/* Banner */
.banner { position: relative; height: 420px; overflow: hidden; background: linear-gradient(135deg, #0F3460 0%, #1a5276 100%); }
.banner-slide { display: flex; align-items: center; height: 100%; color: #fff; }
.banner-content { max-width: 600px; }
.banner-content h1 { font-size: 42px; margin-bottom: 20px; font-weight: 700; }
.banner-content p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }
.banner-btn { display: inline-block; padding: 12px 32px; background: #fff; color: #0F3460; border-radius: 4px; font-weight: 600; transition: transform 0.3s; }
.banner-btn:hover { transform: translateY(-2px); }

/* 通用区块 */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 32px; color: #0F3460; margin-bottom: 10px; }
.section-title p { color: #666; font-size: 15px; }

/* 产品卡片 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: all 0.3s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); transform: translateY(-4px); }
.product-card-img { height: 240px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px; }
.product-card-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 18px; margin-bottom: 8px; color: #0F3460; }
.product-card-body .model { color: #888; font-size: 13px; margin-bottom: 10px; }
.product-card-body p { color: #666; font-size: 14px; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-body .btn { display: inline-block; padding: 8px 20px; background: #0F3460; color: #fff; border-radius: 4px; font-size: 14px; }

/* 产品详情 */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.product-gallery .main-img { width: 100%; height: 500px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px; }
.product-gallery .main-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.product-info h1 { font-size: 28px; color: #0F3460; margin-bottom: 10px; }
.product-info .model { font-size: 16px; color: #888; margin-bottom: 20px; }
.product-info .summary { color: #555; margin-bottom: 20px; line-height: 1.8; }
.product-info .features { margin-bottom: 20px; }
.product-info .features li { padding: 6px 0; padding-left: 24px; position: relative; }
.product-info .features li::before { content: '✓'; position: absolute; left: 0; color: #27ae60; font-weight: bold; }
.product-section { margin-bottom: 40px; }
.product-section h2 { font-size: 22px; color: #0F3460; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #0F3460; display: inline-block; }
.param-table { width: 100%; border-collapse: collapse; }
.param-table th, .param-table td { padding: 12px 16px; border: 1px solid #eee; text-align: left; }
.param-table th { background: #f8f9fa; width: 30%; font-weight: 600; color: #0F3460; }

/* 分类筛选 */
.category-tabs { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.category-tabs a { padding: 8px 20px; border: 1px solid #ddd; border-radius: 20px; font-size: 14px; transition: all 0.3s; }
.category-tabs a:hover, .category-tabs a.active { background: #0F3460; color: #fff; border-color: #0F3460; }

/* 资讯列表 */
.news-list { display: grid; gap: 20px; }
.news-item { display: flex; gap: 20px; padding: 20px; background: #fff; border: 1px solid #eee; border-radius: 8px; transition: all 0.3s; }
.news-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.news-item .cover { width: 220px; height: 160px; background: #fff; border-radius: 6px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 8px; }
.news-item .cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.news-item h3 { font-size: 18px; margin-bottom: 10px; color: #0F3460; }
.news-item .meta { color: #999; font-size: 13px; margin-bottom: 10px; }
.news-item p { color: #666; font-size: 14px; }

/* 文章详情 */
.article-detail { max-width: 800px; margin: 0 auto; }
.article-detail h1 { font-size: 32px; color: #0F3460; margin-bottom: 15px; }
.article-detail .meta { color: #999; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.article-content { line-height: 2; font-size: 16px; color: #444; }
.article-content img { max-width: 100%; border-radius: 6px; margin: 15px 0; }

/* 文档/下载列表 */
.doc-list, .download-list { display: grid; gap: 16px; }
.doc-item, .download-item { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: #fff; border: 1px solid #eee; border-radius: 8px; transition: all 0.3s; }
.doc-item:hover, .download-item:hover { border-color: #0F3460; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.doc-item h3, .download-item h3 { font-size: 16px; color: #0F3460; margin-bottom: 6px; }
.doc-item p, .download-item p { color: #888; font-size: 13px; }
.doc-item .btn, .download-item .btn { padding: 8px 20px; background: #0F3460; color: #fff; border-radius: 4px; font-size: 14px; white-space: nowrap; }

/* 关于我们 */
.about-hero { background: linear-gradient(135deg, #0F3460 0%, #1a5276 100%); color: #fff; padding: 80px 0; text-align: center; }
.about-hero h1 { font-size: 36px; margin-bottom: 15px; }
.about-content { max-width: 900px; margin: 0 auto; line-height: 2; font-size: 16px; color: #444; }
.about-content p { margin-bottom: 20px; }

/* 联系我们 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h2 { font-size: 24px; color: #0F3460; margin-bottom: 20px; }
.contact-info li { padding: 12px 0; font-size: 15px; color: #555; border-bottom: 1px solid #eee; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 500; color: #333; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form button { padding: 12px 32px; background: #0F3460; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 15px; }

/* 搜索结果 */
.search-result-item { padding: 20px; border-bottom: 1px solid #eee; }
.search-result-item h3 { font-size: 18px; color: #0F3460; margin-bottom: 8px; }
.search-result-item .type { display: inline-block; padding: 2px 8px; background: #e8f0fe; color: #0F3460; border-radius: 3px; font-size: 12px; margin-right: 10px; }
.search-result-item p { color: #666; font-size: 14px; }
.search-result-item mark { background: #fff3cd; padding: 0 2px; }
.search-filters { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.search-filters select, .search-filters input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.pagination .current { background: #0F3460; color: #fff; border-color: #0F3460; }
.pagination a:hover { border-color: #0F3460; color: #0F3460; }

/* 底部 */
.site-footer { background: #1a1a2e; color: #aaa; padding: 50px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col li { padding: 6px 0; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #333; font-size: 13px; }
.footer-bottom a { color: #aaa; }

/* 响应式 */
@media (max-width: 1200px) {
    .section-products .product-grid { grid-template-columns: repeat(3, 1fr); }
    .section-news .news-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid-v2 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .section-products .product-grid { grid-template-columns: repeat(2, 1fr); }
    .section-news .news-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    /* 首页菜单无需隐藏，保持显示 */
    .banner { height: 300px; }
    .banner-content h1 { font-size: 28px; }
    .product-detail, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    /* 资讯页面手机端横向长方形标签：左侧小图，右侧文字 */
    .news-item { flex-direction: row !important; gap: 10px; padding: 10px; align-items: center; }
    .news-item .cover { width: 90px !important; height: 65px !important; flex-shrink: 0 !important; padding: 3px; }
    .news-item h3 { font-size: 13px; margin-bottom: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .news-item .meta { font-size: 10px; margin-bottom: 3px; }
    .news-item p { font-size: 11px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    /* 首页资讯卡片手机端改为横向布局 */
    .section-news .news-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
    .news-card { display: flex !important; flex-direction: row !important; align-items: stretch; }
    .news-card-link { display: flex !important; flex-direction: row !important; width: 100% !important; }
    .news-image-wrap { width: 90px !important; height: 65px !important; flex-shrink: 0 !important; padding: 3px; }
    .news-info { flex: 1 !important; padding: 8px 10px; min-width: 0; }
    .news-title { font-size: 13px; margin-bottom: 3px; -webkit-line-clamp: 2; }
    .news-summary { font-size: 11px; margin-bottom: 3px; -webkit-line-clamp: 1; }
    .news-date { font-size: 10px; }
    .news-cat-tag { top: 4px; left: 4px; padding: 2px 6px; font-size: 10px; }
    /* 新版响应式 */
    .hero-banner { height: 400px; }
    .banner-title { font-size: 28px !important; }
    .banner-subtitle { font-size: 14px !important; }
    .section-products .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .product-grid-v2 { grid-template-columns: repeat(2, 1fr) !important; }
    .quick-entry-grid { grid-template-columns: 1fr !important; }
    .about-intro-grid { grid-template-columns: 1fr !important; }
    .about-intro-stats { grid-template-columns: repeat(2, 1fr) !important; }
    .rd-grid { grid-template-columns: 1fr !important; }
    .honors-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .philosophy-grid { grid-template-columns: 1fr !important; }
    .about-v2-intro, .about-v2-rd { flex-direction: column; }
    .about-v2-intro-img, .about-v2-rd-img { width: 100%; }
}

/* ========== 新版首页样式 ========== */

/* Hero Banner 轮播 */
.hero-banner { position: relative; height: 520px; overflow: hidden; }
.banner-slider { position: relative; width: 100%; height: 100%; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; display: block; }
.banner-slide.active { opacity: 1; z-index: 1; }
.banner-slide.active .banner-text-wrap { animation: bannerTextIn 0.8s ease 0.3s both; }
@keyframes bannerTextIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(15,52,96,0.85) 0%, rgba(15,52,96,0.4) 60%, rgba(15,52,96,0.2) 100%); }
.banner-content { position: relative; z-index: 2; color: #fff; width: 100%; max-width: none; height: 100%; display: flex; align-items: center; justify-content: center; padding-top: 60px; }
.banner-content .container { display: block; max-width: 1600px; margin: 0 auto; padding: 0 20px; width: 100%; }
.banner-text-wrap { max-width: 650px; margin: 0 auto; text-align: center; }
.banner-title { font-size: 44px; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.banner-subtitle { font-size: 17px; line-height: 1.8; margin-bottom: 36px; opacity: 0.92; }
.banner-cta { display: flex; gap: 16px; justify-content: center; }
.btn { display: inline-block; padding: 12px 32px; border-radius: 4px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; border: none; text-align: center; }
.btn-primary { background: #0F3460; color: #fff; }
.btn-primary:hover { background: #1a5276; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: #0F3460; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer; z-index: 3; transition: background 0.3s; }
.banner-arrow:hover { background: rgba(255,255,255,0.4); }
.banner-prev { left: 20px; }
.banner-next { right: 20px; }
.banner-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.banner-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.banner-dot.active { background: #fff; width: 32px; border-radius: 6px; }

/* 通用Section */
.section { padding: 70px 0; }
.section-alt { background: #f8f9fb; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section-header.center { flex-direction: column; align-items: center; text-align: center; }
.section-label { display: inline-block; font-size: 13px; color: #0F3460; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: 32px; color: #0F3460; font-weight: 700; margin: 0; }
.section-header.center .section-title { margin-bottom: 12px; }
.section-desc { color: #666; font-size: 15px; max-width: 600px; }
.section-more { color: #0F3460; font-size: 14px; font-weight: 500; }
.section-more:hover { text-decoration: underline; }

/* 热门产品卡片 */
.section-products .product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; overflow: hidden; transition: all 0.3s; }
.product-card:hover { border-color: #0F3460; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(15,52,96,0.1); }
.product-card-link { display: block; }
.product-image-wrap { height: 220px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px; }
.product-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.5s; }
.product-card:hover .product-image { transform: scale(1.05); }
.product-info { padding: 20px; }
.product-name { font-size: 17px; color: #0F3460; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.product-model { font-size: 13px; color: #999; margin-bottom: 10px; font-family: 'Courier New', monospace; }
.product-summary { font-size: 14px; color: #666; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 快速入口 */
.section-quick-entry { padding: 50px 0; background: #0F3460; }
.quick-entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quick-entry-card { display: flex; align-items: center; gap: 20px; padding: 28px; background: rgba(255,255,255,0.08); border-radius: 6px; color: #fff; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.1); }
.quick-entry-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.quick-entry-icon { flex-shrink: 0; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.15); border-radius: 8px; }
.quick-entry-card h3 { font-size: 18px; margin-bottom: 4px; font-weight: 600; }
.quick-entry-card p { font-size: 13px; opacity: 0.8; line-height: 1.5; }

/* 最新资讯 */
.section-news .news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; overflow: hidden; transition: all 0.3s; }
.news-card:hover { border-color: #0F3460; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(15,52,96,0.1); }
.news-card-link { display: block; }
.news-image-wrap { position: relative; height: 180px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; }
.news-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.5s; }
.news-card:hover .news-image { transform: scale(1.05); }
.news-cat-tag { position: absolute; top: 12px; left: 12px; background: #0F3460; color: #fff; padding: 4px 12px; border-radius: 3px; font-size: 12px; font-weight: 500; }
.news-info { padding: 20px; }
.news-title { font-size: 16px; color: #0F3460; font-weight: 600; margin-bottom: 10px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-summary { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-date { font-size: 13px; color: #999; }

/* ========== 新版关于页面样式 ========== */

/* 页面Banner */
.page-banner { background: linear-gradient(135deg, #0F3460 0%, #1a5276 100%); color: #fff; padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 40px 40px; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner-title { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
.page-banner-subtitle { font-size: 16px; opacity: 0.85; }

/* 公司简介 */
.section-about-intro { padding: 80px 0; }
.about-intro-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.about-title { font-size: 28px; color: #0F3460; font-weight: 700; margin-bottom: 24px; line-height: 1.4; }
.about-content { font-size: 15px; color: #555; line-height: 2; }
.about-content p { margin-bottom: 16px; }
.about-intro-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 28px 20px; text-align: center; transition: all 0.3s; }
.stat-card:hover { border-color: #0F3460; box-shadow: 0 4px 16px rgba(15,52,96,0.1); }
.stat-number { font-size: 36px; font-weight: 700; color: #0F3460; margin-bottom: 8px; font-family: 'Courier New', monospace; }
.stat-label { font-size: 14px; color: #666; }

/* 研发实力 */
.section-rd { padding: 80px 0; }
.rd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.rd-text p { font-size: 15px; color: #555; line-height: 2; margin-bottom: 16px; }
.rd-features { margin-top: 24px; }
.rd-feature-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 14px; color: #444; }
.rd-feature-icon { flex-shrink: 0; width: 22px; height: 22px; background: #0F3460; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 2px; }
.rd-image { border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.rd-image img { width: 100%; height: auto; display: block; }

/* 企业荣誉 */
.section-honors { padding: 80px 0; }
.honors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.honor-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; overflow: hidden; transition: all 0.3s; }
.honor-card:hover { border-color: #0F3460; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(15,52,96,0.1); }
.honor-image-wrap { height: 240px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 10px; }
.honor-image-wrap img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.honor-title { padding: 16px; font-size: 14px; color: #0F3460; font-weight: 600; text-align: center; line-height: 1.5; }

/* 经营理念 */
.section-philosophy { padding: 80px 0; }
.philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.philosophy-item { text-align: center; padding: 40px 30px; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; transition: all 0.3s; }
.philosophy-item:hover { border-color: #0F3460; box-shadow: 0 8px 24px rgba(15,52,96,0.1); transform: translateY(-4px); }
.philosophy-icon { width: 72px; height: 72px; margin: 0 auto 20px; background: rgba(15,52,96,0.08); color: #0F3460; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.philosophy-item h3 { font-size: 20px; color: #0F3460; font-weight: 700; margin-bottom: 12px; }
.philosophy-item p { font-size: 14px; color: #666; line-height: 1.8; }

/* ===== 产品中心新版 ===== */
.product-center-section { padding: 30px 0 60px; background: #f7f9fc; }
.breadcrumb { font-size: 14px; color: #666; margin-bottom: 20px; }
.breadcrumb a { color: #2563eb; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.product-center-layout { display: flex; gap: 24px; align-items: flex-start; }
.product-sidebar { width: 220px; flex-shrink: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 4px; padding: 16px 0; }
.sidebar-title { font-size: 16px; font-weight: 600; color: #1f2937; padding: 0 20px 12px; border-bottom: 1px solid #f0f0f0; margin-bottom: 8px; }
.category-tree { list-style: none; margin: 0; padding: 0; }
.category-tree li { margin: 0; }
.category-tree a { display: block; padding: 10px 20px; color: #4b5563; text-decoration: none; font-size: 14px; transition: all 0.15s; border-left: 3px solid transparent; }
.category-tree a:hover { background: #eff6ff; color: #2563eb; }
.category-tree a.active { background: #eff6ff; color: #2563eb; border-left-color: #2563eb; font-weight: 500; }

/* 产品分类树形菜单（多级） */
.category-tree-wrapper { padding: 0 8px; }
.category-tree-level { list-style: none; margin: 0; padding: 0; }
.category-tree-item { margin: 0; }
.category-tree-node { display: flex; align-items: center; padding: 0; position: relative; }
.category-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 10px;
    color: #9ca3af;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
    user-select: none;
    margin-left: 8px;
}
.category-toggle:hover { color: #2563eb; }
.category-toggle.expanded { transform: rotate(90deg); }
.category-toggle-placeholder {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 8px;
}
.category-tree-link {
    flex: 1;
    display: block;
    padding: 9px 12px 9px 6px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    margin-left: 4px;
}
.category-tree-link:hover { background: #eff6ff; color: #2563eb; }
.category-tree-link.active { background: #eff6ff; color: #2563eb; border-left-color: #2563eb; font-weight: 500; }
.category-children { overflow: hidden; transition: max-height 0.3s ease; }
.category-children.hidden { display: none; }
.product-main { flex: 1; min-width: 0; }
.product-main-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.product-main-title { font-size: 24px; font-weight: 700; color: #1f2937; margin: 0; }
.product-main-meta { font-size: 14px; color: #6b7280; }
.product-main-meta strong { color: #2563eb; }
.product-search-form { margin-left: auto; display: flex; gap: 0; }
.product-search-form input { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 4px 0 0 4px; font-size: 14px; width: 220px; outline: none; }
.product-search-form input:focus { border-color: #2563eb; }
.product-search-form button { padding: 8px 20px; background: #2563eb; color: #fff; border: none; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 14px; }
.product-search-form button:hover { background: #1d4ed8; }
.product-grid-v2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card-v2 { background: #fff; border: 1px solid #e5e7eb; border-radius: 4px; overflow: hidden; transition: all 0.2s; }
.product-card-v2:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: #2563eb; }
.product-card-v2-link { text-decoration: none; color: inherit; display: block; }
.product-card-v2-img { width: 100%; height: 220px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 10px; }
.product-card-v2-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.3s; }
.product-card-v2:hover .product-card-v2-img img { transform: scale(1.05); }
.product-card-v2-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #999; font-size: 14px; }
.product-card-v2-body { padding: 14px 16px 18px; }
.product-card-v2-model { margin-bottom: 6px; }
.product-card-v2-model a { color: #2563eb; font-size: 14px; font-weight: 500; text-decoration: none; }
.product-card-v2-model a:hover { text-decoration: underline; }
.product-card-v2-name { font-size: 16px; font-weight: 600; color: #1f2937; margin: 0 0 8px; line-height: 1.4; }
.product-card-v2-summary { font-size: 13px; color: #6b7280; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-empty { text-align: center; padding: 80px 0; color: #999; background: #fff; border-radius: 4px; }

/* ===== 产品详情核心特点(图2样式) ===== */
.features-section { padding: 40px 0; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border: 1px solid #e5e7eb; border-radius: 4px; background: #fff; }
.feature-icon { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; margin-top: 1px; }
.feature-text { font-size: 14px; color: #374151; line-height: 1.6; }
.feature-text strong { color: #1f2937; font-weight: 600; }

/* ===== 配置清单表格 ===== */
.package-table { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; }
.package-table th { background: #f3f4f6; padding: 12px 16px; text-align: left; font-size: 14px; font-weight: 600; color: #374151; border: 1px solid #e5e7eb; }
.package-table td { padding: 10px 16px; font-size: 14px; color: #4b5563; border: 1px solid #e5e7eb; }
.package-table tr:nth-child(even) td { background: #f9fafb; }
.package-table .col-index { width: 60px; text-align: center; }
.package-table .col-qty { width: 80px; text-align: center; }

/* ===== 应用场景标签(图3样式) ===== */
.applications-tags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.application-tag { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 4px; background: #fff; font-size: 13px; color: #4b5563; }
.application-tag-icon { color: #2563eb; font-size: 16px; flex-shrink: 0; }

/* ===== 关于我们新版(图4样式) ===== */
.about-v2-section { padding: 30px 0 60px; background: #f7f9fc; }
.about-v2-title { font-size: 28px; font-weight: 700; color: #1f2937; margin: 0 0 30px; }
.about-v2-block { margin-bottom: 40px; }
.about-v2-block-title { font-size: 20px; font-weight: 600; color: #1f2937; margin: 0 0 20px; padding-left: 12px; border-left: 4px solid #2563eb; }
.about-v2-intro { display: flex; gap: 40px; align-items: flex-start; }
.about-v2-intro-text { flex: 1; font-size: 15px; color: #4b5563; line-height: 2; }
.about-v2-intro-img { width: 600px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.about-v2-intro-img img { width: 100%; height: auto; display: block; }
.about-v2-qualification { border: 2px dashed #d1d5db; border-radius: 4px; padding: 40px 20px; text-align: center; color: #9ca3af; font-size: 15px; background: #fff; }
.about-v2-rd { display: flex; gap: 40px; align-items: flex-start; }
.about-v2-rd-img { width: 600px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.about-v2-rd-img img { width: 100%; height: auto; display: block; }
.about-v2-rd-text { flex: 1; font-size: 15px; color: #4b5563; line-height: 2; }

/* ===== 友情链接 ===== */
/* 友情链接 - 仿照嘉立创横向排列风格，菲康配色，与footer深色背景统一 */
.friend-links-section {
    padding: 16px 0;
    background: transparent;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}
.friend-links-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
}
.friend-links-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    margin-right: 20px;
}
.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
    gap: 0;
}
.friend-link-item {
    color: #aaa;
    font-size: 13px;
    text-decoration: none;
    padding: 4px 16px;
    transition: color 0.15s ease;
    white-space: nowrap;
}
.friend-link-item:hover {
    color: #fff;
    text-decoration: underline;
}
.friend-link-item.hidden-link {
    display: none;
}
.friend-links-list.expanded .friend-link-item.hidden-link {
    display: inline-block;
}
.friend-links-toggle {
    background: none;
    border: none;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: auto;
    flex-shrink: 0;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}
.friend-links-toggle:hover {
    color: #fff;
}
.friend-links-toggle .toggle-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
    display: inline-block;
}
.friend-links-toggle.expanded .toggle-arrow {
    transform: rotate(180deg);
}

/* ===== 文档/下载中心目录树 ===== */
.doc-center-layout { display: flex; gap: 24px; align-items: flex-start; }
.doc-sidebar { width: 220px; flex-shrink: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 4px; padding: 16px 0; }
.doc-main { flex: 1; min-width: 0; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list-item { padding: 14px 18px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.doc-list-item:last-child { border-bottom: none; }
.doc-list-title { font-size: 15px; color: #1f2937; font-weight: 500; }
.doc-list-title a { color: inherit; text-decoration: none; }
.doc-list-title a:hover { color: #2563eb; }
.doc-list-meta { font-size: 12px; color: #9ca3af; }
.doc-list-download { padding: 6px 14px; background: #2563eb; color: #fff; border-radius: 4px; font-size: 13px; text-decoration: none; }
.doc-list-download:hover { background: #1d4ed8; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .product-grid-v2 { grid-template-columns: repeat(2, 1fr); }
    .about-v2-intro, .about-v2-rd { flex-direction: column; }
    .about-v2-intro-img, .about-v2-rd-img { width: 100%; }
    .applications-tags { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .product-center-layout { flex-direction: column; }
    .product-sidebar { width: 100%; }
    .product-grid-v2 { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .product-search-form { margin-left: 0; width: 100%; }
    .product-search-form input { flex: 1; }
}

/* ========================================
   手机端全面适配 (Mobile Responsive)
   ======================================== */

/* --- 平板竖屏 / 大手机 (≤768px) --- */
@media (max-width: 768px) {
    /* 通用 */
    .container { padding: 0 15px; }
    .section { padding: 40px 0; }
    .section-title { margin-bottom: 25px; }
    .section-title h2 { font-size: 24px; }
    .section-title p { font-size: 14px; }
    
    /* 导航栏 */
    .mobile-top-bar { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
    .mobile-top-bar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 10px; }
    .mobile-top-bar .logo { flex: 1; min-width: 0; }
    .mobile-top-bar .logo img { height: 32px; }
    .mobile-top-bar .logo-text { font-size: 14px; }
    .mobile-top-bar .header-taobao { flex-shrink: 0; }
    .mobile-top-bar .taobao-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; background: linear-gradient(135deg,#ff6a00,#ee0a24); color: #fff; border-radius: 4px; text-decoration: none; font-size: 12px; font-weight: 500; }
    .desktop-only { display: none !important; }
    body { padding-top: 56px; }
    .site-header { padding: 8px 0; position: static !important; top: auto !important; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
    .header-inner { flex-wrap: wrap; gap: 8px; }
    .logo { flex: 1; }
    .logo-text { font-size: 16px; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .main-nav ul { flex-wrap: nowrap; justify-content: flex-start; gap: 0; }
    .main-nav li { flex-shrink: 0; }
    .main-nav a { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
    .header-search { order: 2; width: 100%; }
    .header-search form { width: 100%; }
    .header-search input { flex: 1; min-width: 0; }
    
    /* 轮播图 */
    .banner { min-height: 300px; }
    .banner-slide { min-height: 300px; }
    .banner-content { padding: 20px; max-width: 100%; }
    .banner-content h1 { font-size: 22px; margin-bottom: 10px; }
    .banner-content p { font-size: 14px; margin-bottom: 15px; line-height: 1.5; }
    .banner-btn { padding: 10px 24px; font-size: 14px; }
    
    /* 产品网格 */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-card-body { padding: 12px; }
    .product-card-body h3 { font-size: 14px; }
    .product-card-body .model { font-size: 12px; }
    .product-card-body p { font-size: 12px; line-height: 1.4; }
    
    /* 产品详情页 */
    .product-detail { flex-direction: column; gap: 20px; }
    .product-gallery { width: 100%; }
    .product-gallery .main-img { width: 100%; }
    .product-gallery .main-img img { width: 100%; height: auto; }
    .product-info { width: 100%; }
    .product-info h1 { font-size: 20px; }
    .product-section { padding: 20px 0; }
    .product-section h2 { font-size: 18px; }
    
    /* 表格适配 */
    .param-table, .config-table { font-size: 13px; }
    .param-table th, .param-table td, .config-table th, .config-table td { padding: 8px 10px; }
    
    /* 下载中心 */
    .download-center-layout { flex-direction: column; }
    .download-sidebar { width: 100%; }
    .download-list { grid-template-columns: 1fr; }
    .download-card { padding: 15px; }
    
    /* 下载详情页 */
    .download-detail-layout { flex-direction: column; gap: 20px; }
    .download-detail-main, .download-detail-sidebar { width: 100%; }
    
    /* 资讯列表 - 横向长方形标签布局 */
    .news-grid { grid-template-columns: 1fr; gap: 10px; }
    .news-list { gap: 10px; }
    .news-item { flex-direction: row !important; gap: 10px; padding: 10px; align-items: center; }
    .news-item .cover { width: 90px !important; height: 65px !important; flex-shrink: 0 !important; padding: 3px; }
    .news-item h3 { font-size: 13px; margin-bottom: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .news-item .meta { font-size: 10px; margin-bottom: 3px; }
    .news-item p { font-size: 11px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    /* 首页资讯卡片横向布局 */
    .news-card { display: flex !important; flex-direction: row !important; align-items: stretch; padding: 0; }
    .news-card-link { display: flex !important; flex-direction: row !important; width: 100% !important; }
    .news-image-wrap { width: 90px !important; height: 65px !important; flex-shrink: 0 !important; padding: 3px; }
    .news-info { flex: 1 !important; padding: 8px 10px; min-width: 0; }
    .news-title { font-size: 13px; margin-bottom: 3px; -webkit-line-clamp: 2; }
    .news-summary { font-size: 11px; margin-bottom: 3px; -webkit-line-clamp: 1; }
    .news-date { font-size: 10px; }
    .news-cat-tag { top: 4px; left: 4px; padding: 2px 6px; font-size: 10px; }
    
    /* 资讯详情 */
    .news-detail { padding: 20px 0; }
    .news-detail h1 { font-size: 22px; }
    .news-detail-content { font-size: 15px; line-height: 1.8; }
    .news-detail-content img { max-width: 100%; height: auto; }
    
    /* 关于我们 */
    .about-layout { flex-direction: column; gap: 20px; }
    .about-content, .about-image { width: 100%; }
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .about-stat-item { padding: 15px; }
    .about-stat-number { font-size: 24px; }
    
    /* 联系我们 */
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-info { padding-right: 0; border-right: none; border-bottom: 1px solid #e8e8e8; padding-bottom: 25px; }
    .contact-form { padding-left: 0; }
    .contact-form .form-row { flex-direction: column; gap: 0; }
    
    /* 搜索结果页 */
    .search-layout { flex-direction: column; }
    .search-sidebar { width: 100%; }
    .search-results { width: 100%; }
    .search-result-item { padding: 15px; }
    .search-result-item h3 { font-size: 16px; }
    
    /* 页脚 */
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .friend-links-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .friend-links-label { margin-right: 0; }
    
    /* 按钮 */
    .btn { padding: 8px 16px; font-size: 13px; }
    .btn-primary { padding: 10px 20px; font-size: 14px; }
    
    /* 图片 */
    img { max-width: 100%; height: auto; }
    
    /* 表格横向滚动 */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-responsive table { min-width: 500px; }
}

/* --- 手机 (≤480px) --- */
@media (max-width: 480px) {
    /* 通用 */
    .container { padding: 0 12px; }
    .section { padding: 30px 0; }
    .section-title h2 { font-size: 20px; }
    .section-title p { font-size: 13px; }
    
    /* 导航栏 */
    .logo-text { font-size: 14px; }
    .logo img { height: 28px; }
    .main-nav a { padding: 6px 10px; font-size: 13px; }
    
    /* 轮播图 */
    .banner { min-height: 250px; }
    .banner-slide { min-height: 250px; }
    .banner-content h1 { font-size: 18px; }
    .banner-content p { font-size: 13px; }
    .banner-btn { padding: 8px 20px; font-size: 13px; }
    
    /* 产品网格 */
    .product-grid { grid-template-columns: 1fr; gap: 12px; }
    
    /* 资讯列表 - 小屏手机进一步优化 */
    .news-item { gap: 10px; padding: 10px; }
    .news-item .cover { width: 90px; height: 65px; }
    .news-item h3 { font-size: 13px; margin-bottom: 4px; }
    .news-item .meta { font-size: 10px; }
    .news-item p { font-size: 11px; }
    .news-card { gap: 0; }
    .news-image-wrap { width: 90px; height: 65px; }
    .news-info { padding: 8px 10px; }
    .news-title { font-size: 13px; }
    .news-summary { font-size: 11px; }
    .news-date { font-size: 10px; }
    
    /* 产品详情 */
    .product-info h1 { font-size: 18px; }
    .product-section h2 { font-size: 16px; }
    
    /* 关于我们 */
    .about-stats { grid-template-columns: 1fr; }
    
    /* 页脚 */
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    
    /* 表单 */
    .contact-form input, .contact-form textarea, .contact-form select {
        font-size: 14px; /* 防止iOS缩放 */
        padding: 10px 12px;
    }
    
    /* 按钮加大点击区域 */
    .btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
}

/* --- 小屏手机 (≤360px) --- */
@media (max-width: 360px) {
    .container { padding: 0 10px; }
    .section-title h2 { font-size: 18px; }
    .banner-content h1 { font-size: 16px; }
    .product-card-body h3 { font-size: 13px; }
    .main-nav a { padding: 6px 8px; font-size: 12px; }
}

/* --- 横屏手机优化 --- */
@media (max-width: 768px) and (orientation: landscape) {
    .banner { min-height: 200px; }
    .banner-slide { min-height: 200px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- 打印样式 --- */
@media print {
    .site-header, .footer, .banner-nav, .no-print { display: none !important; }
    .container { max-width: 100%; padding: 0; }
    body { font-size: 12px; color: #000; }
    a { text-decoration: none; color: #000; }
}

/* ========================================
   资料中心样式 (Docs Center)
   ======================================== */

/* 资料中心布局 */
.docs-layout {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

/* 左侧边栏 */
.docs-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    position: sticky;
    top: 80px;
}

.docs-sidebar-title {
    padding: 0 20px 15px;
    font-size: 16px;
    font-weight: 700;
    color: #0F3460;
    border-bottom: 2px solid #0F3460;
    margin-bottom: 10px;
}

.docs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav-item {
    position: relative;
}

.docs-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.docs-nav-link:hover {
    background: #f5f7fa;
    color: #0F3460;
}

.docs-nav-link.active {
    background: #e8f0fe;
    color: #0F3460;
    border-left-color: #0F3460;
    font-weight: 600;
}

.docs-nav-link .icon {
    margin-right: 8px;
    font-size: 16px;
}

.docs-nav-link .arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s;
}

.docs-nav-item.expanded > .docs-nav-link .arrow {
    transform: rotate(90deg);
}

/* 子菜单 */
.docs-subnav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: #fafbfc;
}

.docs-nav-item.expanded > .docs-subnav {
    display: block;
}

.docs-subnav .docs-nav-link {
    padding-left: 45px;
    font-size: 13px;
}

.docs-subnav .docs-subnav .docs-nav-link {
    padding-left: 65px;
}

/* 主内容区 */
.docs-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 30px 40px;
}

/* 面包屑 */
.docs-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #999;
}

.docs-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.docs-breadcrumb a:hover {
    color: #0F3460;
}

.docs-breadcrumb .separator {
    color: #ddd;
}

.docs-breadcrumb .current {
    color: #0F3460;
    font-weight: 500;
}

/* 文档标题 */
.docs-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
}

.docs-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #999;
}

.docs-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 文档内容 */
.docs-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4 {
    color: #1a1a1a;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.docs-content h1 { font-size: 24px; }
.docs-content h2 { font-size: 20px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.docs-content h3 { font-size: 17px; }
.docs-content h4 { font-size: 15px; }

.docs-content p {
    margin-bottom: 15px;
}

.docs-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.docs-content th,
.docs-content td {
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    text-align: left;
}

.docs-content th {
    background: #f5f7fa;
    font-weight: 600;
    color: #0F3460;
}

.docs-content tr:nth-child(even) {
    background: #fafbfc;
}

.docs-content code {
    background: #f5f7fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: #e83e8c;
    font-family: 'Consolas', 'Monaco', monospace;
}

.docs-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 15px 0;
    font-size: 13px;
    line-height: 1.6;
}

.docs-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.docs-content blockquote {
    border-left: 4px solid #0F3460;
    background: #f5f7fa;
    padding: 12px 20px;
    margin: 15px 0;
    color: #555;
    border-radius: 0 4px 4px 0;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.docs-content li {
    margin-bottom: 8px;
}

.docs-content a {
    color: #0F3460;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.docs-content a:hover {
    border-bottom-color: #0F3460;
}

/* 附件下载 */
.docs-attachments {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #eee;
}

.docs-attachments-title {
    font-size: 18px;
    font-weight: 600;
    color: #0F3460;
    margin-bottom: 15px;
}

.docs-attachment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-attachment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.docs-attachment-item:hover {
    background: #e8f0fe;
    border-color: #0F3460;
}

.docs-attachment-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.docs-attachment-info {
    flex: 1;
    min-width: 0;
}

.docs-attachment-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.docs-attachment-meta {
    font-size: 12px;
    color: #999;
}

.docs-attachment-download {
    padding: 6px 15px;
    background: #0F3460;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.docs-attachment-download:hover {
    opacity: 0.9;
}

/* 右侧页面内目录 */
.docs-toc {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.docs-toc-title {
    font-size: 14px;
    font-weight: 600;
    color: #0F3460;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0F3460;
}

.docs-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-toc-item {
    margin-bottom: 5px;
}

.docs-toc-link {
    display: block;
    padding: 5px 10px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    line-height: 1.4;
}

.docs-toc-link:hover {
    color: #0F3460;
    background: #f5f7fa;
}

.docs-toc-link.active {
    color: #0F3460;
    border-left-color: #0F3460;
    font-weight: 500;
}

.docs-toc-item.level-3 .docs-toc-link {
    padding-left: 25px;
    font-size: 12px;
}

.docs-toc-item.level-4 .docs-toc-link {
    padding-left: 40px;
    font-size: 12px;
}

/* 上一篇/下一篇 */
.docs-pagination {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.docs-pagination-item {
    flex: 1;
    max-width: 45%;
}

.docs-pagination-item.next {
    text-align: right;
    margin-left: auto;
}

.docs-pagination-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.docs-pagination-link {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid #e9ecef;
}

.docs-pagination-link:hover {
    background: #e8f0fe;
    border-color: #0F3460;
    color: #0F3460;
}

/* 资料中心首页 */
.docs-home-hero {
    background: linear-gradient(135deg, #0F3460 0%, #1a5276 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 8px;
}

.docs-home-hero h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.docs-home-hero p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.docs-home-search {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.docs-home-search input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
}

.docs-home-search button {
    padding: 12px 30px;
    background: #ff6a00;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
}

.docs-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.docs-category-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.docs-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15,52,96,0.12);
    border-color: #0F3460;
}

.docs-category-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.docs-category-name {
    font-size: 18px;
    font-weight: 600;
    color: #0F3460;
    margin-bottom: 10px;
}

.docs-category-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.docs-category-count {
    font-size: 12px;
    color: #999;
}

.docs-category-link {
    display: inline-block;
    margin-top: 10px;
    color: #0F3460;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.docs-category-link:hover {
    text-decoration: underline;
}

/* 最新文档 */
.docs-latest {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.docs-latest-title {
    font-size: 20px;
    font-weight: 600;
    color: #0F3460;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0F3460;
}

.docs-latest-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.docs-latest-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.docs-latest-item:last-child {
    border-bottom: none;
}

.docs-latest-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.docs-latest-info {
    flex: 1;
    min-width: 0;
}

.docs-latest-name {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    margin-bottom: 3px;
    display: block;
}

.docs-latest-name:hover {
    color: #0F3460;
}

.docs-latest-meta {
    font-size: 12px;
    color: #999;
}

.docs-latest-views {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

/* 资料中心响应式 */
@media (max-width: 1024px) {
    .docs-toc {
        display: none;
    }
}

@media (max-width: 768px) {
    .docs-layout {
        flex-direction: column;
        padding: 15px 0;
        gap: 15px;
    }
    
    .docs-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        padding: 15px 0;
    }
    
    .docs-main {
        padding: 20px;
    }
    
    .docs-title {
        font-size: 22px;
    }
    
    .docs-content {
        font-size: 14px;
    }
    
    .docs-home-hero {
        padding: 30px 15px;
    }
    
    .docs-home-hero h1 {
        font-size: 24px;
    }
    
    .docs-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-pagination {
        flex-direction: column;
    }
    
    .docs-pagination-item {
        max-width: 100%;
    }
    
    .docs-pagination-item.next {
        text-align: left;
        margin-left: 0;
    }
}
