:root {
    --primary: #1a3a6c;       /* 深蓝主色 */
    --secondary: #2c5282;     /* 中蓝辅助色 */
    --accent: #4c7db5;        /* 浅蓝强调色 */
    --light: #f0f4f8;         /* 浅灰背景 */
    --dark: #0d1b2a;          /* 深灰文字 */
    --gray: #718096;          /* 中灰文字 */
    --light-gray: #e2e8f0;    /* 浅灰边框 */
    --white: #ffffff;         /* 纯白背景 */
    --warning: #e67e22;       /* 橙色（产品咨询按钮） */
    --lang-bg: #f8fafc;       /* 语言切换背景色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 产品页面头部 - 替换为滚动图片轮播 */
.product-header {
    height: 400px; /* 固定高度 */
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

/* 轮播图容器 */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 轮播图片 */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播文字叠加层 */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.carousel-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
}

.carousel-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.carousel-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* 产品列表样式 - 修改为单列布局 */
.product-list {
    display: grid;
    grid-template-columns: 1fr; /* 修改为单列 */
    gap: 60px; /* 增加间距 */
    margin-bottom: 100px;
}

.product-item {
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
}

/* 🔥 这里去掉了蓝色边框！只保留上浮效果 */
.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    /* 原来的蓝色边框已删除 */
}

.product-item-img {
    height: 300px; /* 增加图片高度 */
    overflow: hidden;
    position: relative;
    background: var(--light);
}

.product-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    min-height: 100%;
}

.product-item:hover .product-item-img img {
    transform: scale(1.08);
}

.product-item-content {
    padding: 40px 30px;
}

.product-item-spec {
    color: var(--accent);
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.product-item-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.4;
    transition: color 0.3s ease;
    border-bottom: 2px solid var(--light);
    padding-bottom: 15px;
}

/* 🔥 去掉标题变蓝色的效果 */
.product-item:hover .product-item-title {
    /* 原来的蓝色已删除 */
}

.product-item-desc {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.product-item-features {
    margin-bottom: 30px;
}

.product-item-features h4 {
    font-size: 17px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.product-item-features ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-item-features li {
    background: var(--light);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    color: var(--secondary);
    font-weight: 500;
}

/* 产品规格表样式 */
.product-specs-table {
    margin: 30px 0;
    overflow-x: auto;
}

.product-specs-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-specs-table th,
.product-specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.product-specs-table th {
    background: var(--light);
    color: var(--primary);
    font-weight: 600;
}

.product-specs-table tr:hover {
    background: var(--light);
}

.product-specs-table td {
    color: var(--dark);
}

/* 产品详细描述样式 */
.product-full-desc {
    margin-top: 30px;
    color: var(--gray);
    line-height: 1.8;
}

.product-full-desc h3 {
    color: var(--primary);
    margin: 25px 0 15px;
    font-size: 20px;
    font-weight: 700;
}

.product-full-desc p {
    margin-bottom: 15px;
}

/* 管理入口按钮 */
.admin-entry {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: block;
}

.admin-entry.hidden {
    display: none;
}

.admin-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 20px;
}

.admin-btn:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 - 优化版 */
@media (min-width: 769px) {
    .header-container {
        justify-content: flex-start;
    }

    .logo {
        margin-right: auto;
    }

    nav {
        margin-right: 20px;
    }

    .language-switcher {
        margin-left: 0;
    }
}

@media (max-width: 992px) {
    .product-header {
        height: 300px;
        margin-bottom: 60px;
    }
    .carousel-content h1 {
        font-size: 2.5rem;
    }
    .logo {
        font-size: 20px;
    }
    .logo-img {
        width: 205px;
        height: 65px;
    }
    .product-item-img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 15px;
        color: var(--dark);
    }

    nav a:hover,
    nav a.active {
        background-color: var(--light-gray);
        color: var(--primary);
    }

    .logo {
        font-size: 18px;
        gap: 8px;
        max-width: 60%;
    }

    .logo-img {
        width: 205px;
        height: 65px;
    }

    .language-switcher {
        position: absolute;
        top: 50%;
        right: 50px;
        transform: translateY(-50%);
    }

    .lang-btn span {
        display: none;
    }

    .lang-btn {
        padding: 6px 10px;
    }

    .product-header {
        height: 250px;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .product-item-content {
        padding: 30px 20px;
    }

    .product-item-title {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .product-header {
        height: 200px;
    }

    .carousel-content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .carousel-content p {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 16px;
        max-width: 50%;
    }

    .logo-img {
        width: 205px;
        height: 65px;
    }

    .language-switcher {
        right: 40px;
    }

    .product-item-img {
        height: 200px;
    }

    .admin-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .product-specs-table th,
    .product-specs-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}