/* styles.css */
:root {
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #eef2f9 50%, #f0ebf8 100%);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --text-main: #1a1a2e;
    --text-muted: #6b6c7b;
    --primary-color: #7338E7;
    --primary-glow: rgba(147, 112, 219, 0.3);
    --card-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
    --hover-shadow: 0 12px 40px rgba(92, 59, 153, 0.15);
    --border-radius-lg: 24px;
    --border-radius-pill: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* ====================
   1. 导航栏 (分离式左右对齐)
   ==================== */
.navbar {
    display: flex;
    justify-content: space-between; /* 左右对齐 */
    align-items: center;
    padding: 15px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

/* 左侧 Logo 容器：圆角正方形毛玻璃 */
.nav-logo-box {
    width: 220px;
    height: 62px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 32px; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo-box:hover {
    transform: translateY(-2px);
}

.nav-logo-box img {
    height: 45px;
    margin-right: 5px;
    width: auto; /* 根据你的实际 logo 调整 */
}

/* 右侧导航链接：胶囊毛玻璃 */
.nav-links {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-pill);
    padding: 10px 20px;
    display: flex;
    gap: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 18px;
    border-radius: var(--border-radius-pill);
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.nav-links a.active {
    background: linear-gradient(135deg, #7338E7 0%, #E7C9F0 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(144, 94, 240, 0.4);
    text-shadow: 0 4px 15px rgb(0, 0, 0, 0.4);
}

/* 手机端折叠按钮 */
.menu-toggle {
    display: none;
    width: 62px;
    height: 62px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    color: var(--primary-color);
    font-size: 32px;
    line-height: 1;      /* 强制行高为1，消除文本行间距带来的偏移 */
    text-align: center;
    
    /* 视觉微调 */
    padding-bottom: 7px;
}

/* 响应式：当屏幕宽度小于 1100px 时折叠导航 */
@media (max-width: 1100px) {
    .nav-logo-box {
        border-radius: 18px; 
        width: 200px;
    }

    .navbar { padding: 15px 20px; }
    
    .menu-toggle { display: flex; align-items: center; justify-content: center; } /* 显示汉堡按钮 */
    
    .nav-links {
        position: absolute;
        top: 95px;
        right: 20px;
        flex-direction: column; /* 改为垂直排列 */
        border-radius: 18px; /* 改为普通圆角，非胶囊 */
        padding: 20px;
        gap: 10px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .nav-links a {
        width: 100px;
        text-align: center;
    }
    
    .nav-links.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ====================
   2. 全宽贯穿式 Banner
   ==================== */
.banner-fullwidth {
    position: relative;
    width: 100%; /* 占满屏幕 */
    height: 60vh; /* 高度设为屏幕的60% */
    min-height: 400px;
    overflow: hidden;
    margin-bottom: 60px;
    /* 取消了原来的圆角和卡片阴影 */
}

@media (max-width: 840px) {
    .banner-fullwidth h1 br {
        display: none;
    }
}

.nav-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-pill);
    padding: 10px 40px;
    display: flex;
    gap: 40px;
    box-shadow: var(--card-shadow);
}

.nav-container a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    transition: all 0.3s ease;
}

.nav-container a:hover, .nav-container a.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    box-shadow: 0 2px 10px var(--primary-glow);
}

/* 通用毛玻璃卡片 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 按钮通用样式 */
.btn {
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.btn-primary {
    background: linear-gradient(135deg, #7338E7 10%, #E7C9F0 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(144, 94, 240, 0.4);
    text-shadow: 0 4px 15px rgb(0, 0, 0, 0.4);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(144, 94, 240, 0.4);
    transform: translateY(-4px);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ====================
   产品中心 样式
   ==================== */
.product-page-container {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.product-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: rgba(220, 215, 238, 0.5); /* 浅灰紫色底框 */
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-tab {
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s;
    text-align: center;
}

.product-tab:hover {
    background: rgba(255, 255, 255, 0.6);
}

.product-tab.active {
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-card-horizontal {
    display: flex;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.product-img-box {
    width: 300px;
    flex-shrink: 0;
    background: #e6e6e6; /* 灰底占位 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-box {
    padding: 35px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
}

.product-props {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prop-line {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    display: flex;
    background: #f4f5f7;
    padding: 8px 16px;
    border-radius: 8px;
    align-items: flex-start;
}

.prop-line span {
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
    margin-right: 8px;
}

@media (max-width: 840px) {
    .product-page-container {
        flex-direction: column;
    }
    
    .product-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .product-tab {
        flex: 1 1 40%;
        font-size: 14px;
        padding: 8px 8px;
        display: flex;
        justify-content: center;
        align-items: center;    
    }
    
    .product-content {
        flex-direction: column
    }
    .product-card-horizontal {
        flex-direction: column;
    }
    .product-img-box {
        width: 100%;
        height: 260px;
    }

    .product-info-box {
        padding: 20px 20px;
    }

    .prop-line {
        font-size: 12px;
    }

    .btn-primary {
        font-size: 15px;
        padding: 8px 18px;
    }
}

/* ====================
   Footer 样式
   ==================== */
.site-footer {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0 20px; /* 减小上下 padding，让高度变小 */
    position: relative;
    background-color: #f0ebf8;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;        /* 大屏不换行 */
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 60px;                /* 三列间距 */
}

/* 新增中列 */
.footer-center {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.footer-logo {
    max-width: 140px;
    object-fit: contain;
}

.footer-left {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-tags-row {
    display: flex;
    gap: 12px;
}

.footer-tag {
    flex: 1;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #040381;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.footer-tag.large-tag {
    font-size: 14px;
    padding: 12px 20px;
    flex: none;
    width: 100%;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
}

.footer-logo {
    max-width: 160px; /* 大幅缩小 logo */
    object-fit: contain;
}

.footer-contact {
    width: 100%;
    width: 220px; /* 限制联系方式区域宽度 */
    display: flex;
    flex-direction: column;
}

.contact-line {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 0; /* 上下留出空间，配合线条 */
    border-top: 1px solid rgba(11, 2, 63, 0.1); /* 顶部细线 */
    font-size: 12px;
    color: #7338E7;
}

/* 最后一行加底部细线 */
.contact-line:last-child {
    border-bottom: 1px solid rgba(11, 2, 63, 0.1);
}

.contact-line img {
    width: 90px; /* 控制图标大小 */
    height: 90px;
    object-fit: contain;
}

.contact-line span {
    color: #040381; 
    font-weight: 600;
    font-size: 12px; 
    letter-spacing: 0.5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px; /* 减小间距 */
    padding-top: 20px;
    border-top: 1px solid rgba(11, 2, 63, 0.1);
    color: #0b023f;
    font-size: 12px; /* 缩小字号 */
    opacity: 0.7;
}

@media (max-width: 900px) {

    .footer-container {
        flex-direction: column;
        gap: 60px;
        padding: 0 20px;
    }
    
    .footer-right {
        max-width: 100%;
        width: 100%;
        align-items: center;
    }
    
    .footer-tags-row {
        justify-content: center;
    }
    
    .footer-center {
        order: -1;            /* Logo 置顶 */
        padding: 0;
    }
    
    .footer-logo {
        max-width: 120px;
    }

    .footer-bottom { 
        font-size: 10px; 
    }

}