/* ========================================
   芯一光电 - 页面专用样式
   ======================================== */

/* ========== 页面横幅 ========== */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0 40px;
    position: relative;
}
.page-banner h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}
.breadcrumb-item a { color: rgba(255,255,255,0.8); }
.breadcrumb-item.active { color: rgba(255,255,255,0.6); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ========== 关于我们页面 ========== */
.culture-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.culture-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.culture-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 16px;
}
.culture-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}
.culture-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* 时间轴 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}
.timeline-dot {
    position: absolute;
    left: 24px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.timeline-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}
.timeline-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* 数据卡片 */
.data-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.data-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.data-num {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}
.data-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== 产品中心页面 ========== */
.sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    position: sticky;
    top: 100px;
}
.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li { margin-bottom: 6px; }
.category-list a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-light);
    border-radius: 4px;
    transition: var(--transition);
}
.category-list a:hover,
.category-list a.active {
    background: var(--primary-light);
    color: var(--primary);
}
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-light) 0%, #d0e2ff 100%);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}
.sidebar-cta h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.sidebar-cta p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* 产品工具栏 */
.product-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.toolbar-info {
    font-size: 14px;
    color: var(--text-light);
}
.toolbar-info span {
    font-weight: 600;
    color: var(--primary);
}
.toolbar-actions .form-select {
    width: auto;
    min-width: 140px;
    font-size: 14px;
    border-color: var(--border);
}

/* 产品卡片 */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.product-img {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-placeholder i {
    font-size: 48px;
    color: var(--border);
}
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
}
.product-badge.hot {
    background: #ff6b6b;
}
.product-info {
    padding: 20px;
}
.product-brand {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}
.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}
.product-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}
.product-actions {
    display: flex;
    gap: 8px;
}
.product-actions .btn {
    flex: 1;
    font-size: 13px;
    padding: 6px 12px;
}

/* 分页 */
.pagination .page-link {
    border-color: var(--border);
    color: var(--text-light);
    font-size: 14px;
}
.pagination .page-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ========== 联系我们页面 ========== */
.contact-card {
    background: var(--white);
    padding: 24px 20px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.contact-card-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}
.contact-card h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.contact-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* 询价表单 */
.inquiry-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.inquiry-form .form-label {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.inquiry-form .form-control {
    border-color: var(--border);
    font-size: 14px;
    padding: 8px 12px;
}
.inquiry-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0,82,204,0.25);
}

/* 为什么选择我们 */
.why-list { margin-top: 20px; }
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.why-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.why-icon {
    font-size: 24px;
    color: var(--primary);
    margin-top: 2px;
}
.why-item h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.why-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* 地图占位 */
.map-placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ef 100%);
    height: 200px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.map-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}
.map-placeholder span {
    font-size: 14px;
    margin-bottom: 4px;
}
.map-placeholder p {
    font-size: 13px;
    margin: 0;
}

/* ========== 品牌代理页面 ========== */
.brand-detail-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}
.brand-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.brand-logo-large {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}
.brand-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}
.brand-info .brand-english {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.brand-info .brand-country {
    font-size: 13px;
    color: var(--text-light);
}
.brand-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ========== 应用领域页面 ========== */
.application-detail {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}
.application-detail h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
}
.application-detail p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}
.application-products {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.application-products h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}
.application-products ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.application-products li {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}
.application-products li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ========== 新闻动态页面 ========== */
.news-detail {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.news-detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--secondary);
}
.news-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}
.news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}
.news-detail-content p {
    margin-bottom: 20px;
}
.news-detail-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 16px;
    color: var(--secondary);
}
.news-detail-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.news-detail-content li {
    margin-bottom: 8px;
}

/* ========== 新闻页面 ========== */
.news-item {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    transition: var(--transition);
}
.news-item:hover {
    box-shadow: var(--shadow-hover);
}
.news-img {
    height: 160px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ef 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.news-placeholder i {
    font-size: 48px;
    color: var(--border);
}
.news-body .news-cat {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.news-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
}
.news-body h3 a {
    color: var(--text);
    transition: var(--transition);
}
.news-body h3 a:hover {
    color: var(--primary);
}
.news-body .news-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.news-body .news-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.news-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 热门新闻 */
.hot-news {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hot-news li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.hot-news li:last-child { border-bottom: none; }
.hot-news a {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    flex: 1;
    transition: var(--transition);
}
.hot-news a:hover { color: var(--primary); }
.hot-views {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* 分类统计 */
.category-stats {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-stats li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-light);
}
.category-stats li:last-child { border-bottom: none; }
.stat-count {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 订阅表单 */
.subscribe-form .form-control {
    font-size: 14px;
    border-color: var(--border);
}
.subscribe-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0,82,204,0.25);
}

/* ========== 应用领域页面 ========== */
.app-icon-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.app-icon-header i {
    font-size: 32px;
    color: var(--primary);
}
.app-icon-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
}
.cta-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}
.cta-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}
.cta-section .btn-light {
    font-weight: 600;
    padding: 10px 30px;
}

/* ========== 产品详情页 ========== */
.detail-img-main {
    position: relative;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ef 100%);
    border-radius: var(--radius);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-placeholder-lg i {
    font-size: 96px;
    color: var(--border);
}
.detail-info { padding-left: 10px; }
.detail-brand {
    display: inline-block;
    font-size: 13px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 12px;
}
.detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--secondary);
}
.detail-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
}
.detail-meta {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}
.meta-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.meta-row:last-child { border-bottom: none; }
.meta-label {
    width: 100px;
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.meta-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}
.detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.detail-tip {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 详情Tab */
.detail-tabs .nav-tabs {
    border-bottom: 2px solid var(--border);
}
.detail-tabs .nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    border: none;
    padding: 12px 24px;
}
.detail-tabs .nav-link.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    background: transparent;
}
.tab-content {
    padding: 30px 0;
}
.param-table td:first-child {
    width: 160px;
    font-weight: 500;
    color: var(--text-muted);
}
.param-table td {
    font-size: 14px;
    padding: 10px 16px;
}
.tab-desc-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--secondary);
}
.tab-desc-content h4:first-child { margin-top: 0; }
.tab-desc-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
}
.tab-desc-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.tab-desc-content li {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 6px;
    line-height: 1.6;
}
.tab-docs-content .doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.doc-item i {
    font-size: 32px;
    color: #dc3545;
}
.doc-item i.bi-file-earmark-code { color: var(--primary); }
.doc-item div { flex: 1; }
.doc-item h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}
.doc-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ========== 响应式调整 ========== */
@media (max-width: 991px) {
    .page-banner { padding: 40px 0 30px; }
    .page-banner h1 { font-size: 28px; }
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 40px; }
    .timeline-dot { left: 16px; }
    .sidebar { position: static; margin-bottom: 30px; }
    .product-toolbar { flex-direction: column; gap: 12px; align-items: stretch; }
    .toolbar-actions .form-select { width: 100%; }
    .brand-header { flex-direction: column; text-align: center; gap: 12px; }
    .brand-logo-large { width: 60px; height: 60px; font-size: 24px; }
    .news-detail { padding: 30px 20px; }
    .news-detail-title { font-size: 24px; }
    .detail-img-main { height: 300px; }
    .detail-title { font-size: 24px; }
    .detail-actions { flex-direction: column; }
    .detail-tabs .nav-link { padding: 10px 16px; font-size: 14px; }
}

@media (max-width: 767px) {
    .page-banner h1 { font-size: 24px; }
    .culture-card { padding: 20px; }
    .contact-card { padding: 20px 16px; }
    .inquiry-form { padding: 20px; }
    .why-item { gap: 12px; }
    .why-icon { font-size: 20px; }
    .product-img { height: 150px; }
    .product-placeholder i { font-size: 36px; }
    .news-detail { padding: 20px 16px; }
    .news-detail-title { font-size: 20px; }
    .news-meta { flex-direction: column; gap: 8px; }
    .detail-img-main { height: 240px; }
    .product-placeholder-lg i { font-size: 64px; }
    .detail-info { padding-left: 0; margin-top: 20px; }
    .detail-title { font-size: 22px; }
    .meta-label { width: 80px; }
    .doc-item { flex-direction: column; text-align: center; }
    .cta-section { padding: 40px 0; }
    .cta-section h2 { font-size: 22px; }
    .news-item .row { flex-direction: column; }
    .news-img { height: 140px; }
}

@media (max-width: 575px) {
    .page-banner { padding: 30px 0 20px; }
    .page-banner h1 { font-size: 20px; }
    .data-card { padding: 20px 12px; }
    .data-num { font-size: 28px; }
    .product-actions { flex-direction: column; }
    .product-actions .btn { width: 100%; }
    .detail-img-main { height: 200px; }
    .product-placeholder-lg i { font-size: 48px; }
    .detail-title { font-size: 20px; }
    .detail-meta { padding: 14px; }
    .meta-row { flex-direction: column; gap: 2px; }
    .meta-label { width: auto; }
    .detail-tabs .nav-link { padding: 8px 12px; font-size: 13px; }
    .param-table td:first-child { width: 100px; }
    .app-icon-header h3 { font-size: 18px; }
    .app-icon-header i { font-size: 24px; }
    .application-detail { padding: 20px; }
    .brand-detail-card { padding: 20px; }
}