/* ========================================
   基础样式重置与通用样式
   ======================================== */

/* 重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* 防御性约束：防止图片在容器失效时撑破屏幕 */
    object-fit: contain;
}

/* 导航栏 Logo 强制约束 */
.logo-img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--link-hover);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* 容器 */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* 头部导航 - 安吉尔风格 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: var(--color-white);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.logo-en {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-secondary);
    letter-spacing: 1px;
}

.logo-img {
    height: 40px;
    width: auto;
}


.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

/* ========================================
   导航下拉面板 - 安吉尔风格
   ======================================== */

.nav-item.has-dropdown {
    position: relative;
}

.nav-item.has-dropdown > .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .nav-arrow,
.nav-item.has-dropdown.active .nav-arrow {
    transform: rotate(180deg);
}

/* 下拉面板 */
.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 100vw;
    max-width: 1200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.nav-item.has-dropdown:hover .dropdown-panel,
.nav-item.has-dropdown.active .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-panel-inner {
    padding: 32px 40px;
}

/* 6列网格布局 */
.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

/* 卡片样式 */
.dropdown-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.dropdown-card:hover {
    transform: translateY(-4px);
}

.dropdown-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: box-shadow 0.3s ease;
}

.dropdown-card:hover .dropdown-card-image {
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
}

.dropdown-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dropdown-card:hover .dropdown-card-image img {
    transform: scale(1.05);
}

.dropdown-card-image svg {
    width: 48px;
    height: 48px;
}

.dropdown-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.dropdown-card:hover .dropdown-card-title {
    color: var(--color-primary);
}

/* ========================================
   产品中心下拉 - 安吉尔风格
   ======================================== */

/* 左侧分类栏 */
.series-sidebar {
    width: 180px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    padding-right: 24px;
}

.series-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    margin-bottom: 4px;
}

.series-item:hover {
    background: rgba(0, 102, 204, 0.06);
    color: var(--text-primary);
}

.series-item.active {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    color: var(--color-primary);
    font-weight: 600;
}

.series-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 204, 0.08);
    border-radius: 8px;
    flex-shrink: 0;
}

.series-item.active .series-icon {
    background: var(--color-primary);
}

.series-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.series-name {
    font-size: 14px;
    white-space: nowrap;
}

/* 右侧产品网格容器 */
.product-grid-container {
    flex: 1;
    padding-left: 32px;
}

.product-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-grid.active {
    display: grid;
}

/* 产品卡片 */
.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fafbfc;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.12);
    border-color: rgba(0, 102, 204, 0.2);
    background: #fff;
}

.product-card-image {
    position: relative;
    aspect-ratio: 11 / 8;
    background: #f0f4f8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: auto;
    height: 85%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder svg {
    width: 40px;
    height: 40px;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 12px 12px 4px;
    line-height: 1.4;
}

.product-model {
    font-size: 11px;
    color: var(--text-muted);
}

.product-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(0, 102, 204, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 12px;
}

/* 底部查看全部 */
.dropdown-footer {
    padding: 16px 40px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.06) 0%, rgba(0, 102, 204, 0.02) 100%);
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: var(--color-primary);
    color: #fff;
}

.view-all-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.view-all-link:hover svg {
    transform: translateX(4px);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* 页脚 - 深色简约风格 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    color: #fff;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    padding: 70px 0 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: -11px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    max-width: 280px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '›';
    font-size: 16px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}

.footer-links a:hover::before {
    color: #667eea;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    stroke: #667eea;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #667eea;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-badge svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.3);
}

/* 响应式页脚 */
@media (max-width: 991px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 50px 0 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 40px 0 32px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* 响应式页脚 */
@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 40px 0 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 0 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* 响应式 */
@media (max-width: 991px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* 移动端导航下拉面板 */
    .nav-item.has-dropdown {
        position: relative;
    }

    .dropdown-panel {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item.has-dropdown.active .dropdown-panel {
        max-height: 600px;
    }

    .dropdown-panel-inner {
        padding: 16px 20px;
    }

    .dropdown-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .dropdown-card-image {
        aspect-ratio: 1 / 1;
    }

    .dropdown-card-image svg {
        width: 32px;
        height: 32px;
    }

    .dropdown-card-title {
        font-size: 12px;
    }

    /* 移动端导航展开 */
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px 20px 24px;
        border-bottom: 1px solid var(--border-color);
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .nav.active .nav-item.has-dropdown > .nav-link {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav.active > .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-arrow {
        transition: transform 0.3s ease;
    }

    .nav-item.has-dropdown.active .nav-arrow {
        transform: rotate(180deg);
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* 移动端产品下拉适配 */
@media (max-width: 991px) {
    .product-dropdown .dropdown-panel-inner {
        flex-direction: column;
        padding: 16px 20px;
    }
    
    .series-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .series-item {
        padding: 8px 12px;
        margin-bottom: 0;
        font-size: 12px;
    }
    
    .series-icon {
        width: 28px;
        height: 28px;
    }
    
    .series-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .product-grid-container {
        padding-left: 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-grid.active {
        display: grid;
    }
    
    .product-name {
        font-size: 12px;
        padding: 8px 8px 4px;
    }
    
    .product-model {
        font-size: 10px;
        padding: 0 8px;
    }
    
    .product-tag {
        font-size: 9px;
        padding: 2px 6px;
        margin: 6px 8px 8px;
    }
    
    .dropdown-footer {
        padding: 12px 20px;
    }
    
    .view-all-link {
        font-size: 12px;
        padding: 8px 16px;
    }
}

@media (max-width: 767px) {
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .footer-col {
        gap: 8px;
    }
}

/* ========================================
   面包屑导航 - SEO优化
   ======================================== */
.breadcrumb {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--color-primary);
}

.breadcrumb-item.current {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-separator {
    color: #adb5bd;
    font-size: 12px;
}

/* 面包屑结构化数据隐藏 */
.breadcrumb-jsonld {
    display: none;
}
