/* 全局样式 */
:root {
    --primary-color: #4e73df;
    --primary-dark: #3a5ccc;
    --primary-light: #7a97e8;
    --secondary-color: #1cc88a;
    --secondary-dark: #17a673;
    --secondary-light: #3dd598;
    --dark-color: #5a5c69;
    --dark-light: #8a8c99;
    --light-color: #f8f9fc;
    --light-dark: #e8e9f2;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
    --gray-100: #f8f9fc;
    --gray-200: #eaecf4;
    --gray-300: #dddfeb;
    --gray-400: #d1d3e2;
    --gray-500: #b7b9cc;
    --gray-600: #858796;
    --gray-700: #6e707e;
    --gray-800: #5a5c69;
    --gray-900: #3a3b45;
    --transition-speed: 0.3s;
    --border-radius-sm: 5px;
    --border-radius: 10px;
    --border-radius-lg: 15px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-900);
    padding-top: 80px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
    transition: all var(--transition-speed);
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
}

.navbar-brand img {
    margin-right: 10px;
    border-radius: 50%;
    transition: transform var(--transition-speed);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all var(--transition-speed);
    position: relative;
    color: var(--gray-700) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all var(--transition-speed);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* 内容区域样式 */
.content-container {
    min-height: calc(100vh - 80px);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section {
    padding: 100px 0 80px;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color), var(--primary-dark));
    border-radius: 3px;
}

/* 首页内容卡片 */
.content-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    height: 100%;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-speed);
    z-index: 2;
}

.content-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--gray-200);
}

.content-card:hover::before {
    opacity: 1;
}

.content-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.content-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-light);
    transition: width var(--transition-speed);
}

.content-card:hover h3::after {
    width: 60px;
}

.content-card p {
    color: var(--gray-700);
    line-height: 1.7;
}

/* 新闻和公告样式 */
.news-item, .announcement-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all var(--transition-speed);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.news-item {
    border-left-color: var(--primary-color);
}

.announcement-item {
    border-left-color: var(--warning-color);
}

.news-item:hover, .announcement-item:hover {
    transform: translateY(-5px) translateX(3px);
    box-shadow: var(--box-shadow-hover);
}

.news-item::after, .announcement-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    transition: all var(--transition-speed);
    z-index: 1;
}

.news-item::after {
    border-color: transparent var(--primary-light) transparent transparent;
}

.announcement-item::after {
    border-color: transparent var(--warning-color) transparent transparent;
}

.news-title, .announcement-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
    transition: color var(--transition-speed);
    font-size: 1.2rem;
}

.news-item:hover .news-title {
    color: var(--primary-color);
}

.announcement-item:hover .announcement-title {
    color: var(--warning-color);
}

.news-meta, .announcement-meta {
    font-size: 0.85rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-meta span, .announcement-meta span {
    display: flex;
    align-items: center;
}

.news-meta span i, .announcement-meta span i {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* 产品展示样式 */
.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: all var(--transition-speed);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--gray-200);
}

.product-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

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

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-info {
    padding: 25px;
    position: relative;
}

.product-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-color);
    transition: color var(--transition-speed);
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

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

.product-card:hover .product-title::after {
    width: 60px;
}

.product-meta {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-meta span {
    display: flex;
    align-items: center;
}

.product-meta span i {
    margin-right: 5px;
}

/* 产品标签样式 */
.product-tags, .product-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.product-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: white;
    transition: all var(--transition-speed);
}

.product-tag:nth-child(2n) {
    background-color: var(--secondary-color);
}

.product-tag:nth-child(3n) {
    background-color: var(--info-color);
}

.product-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.product-detail-tags {
    margin-top: 10px;
}

.product-detail-tags .product-tag {
    font-size: 0.85rem;
    padding: 4px 10px;
}

.product-description {
    color: var(--gray-700);
    line-height: 1.6;
}

/* 产品详情页样式 */
.product-detail-container {
    padding: 100px 0 80px;
    animation: fadeIn 0.5s ease-in-out;
}

.product-detail-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    object-fit: contain;
    max-height: 500px;
}

/* 添加图片容器样式，确保图片垂直居中 */
.col-lg-6:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.col-lg-6:first-child img {
    max-height: 100%;
    object-fit: contain;
}

.product-detail-image:hover {
    transform: scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.product-detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.product-detail-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

.product-detail-meta {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-detail-meta span {
    display: flex;
    align-items: center;
}

.product-detail-meta span i {
    margin-right: 5px;
}

.product-detail-description {
    margin-bottom: 35px;
    line-height: 1.8;
    color: var(--gray-700);
    font-size: 1.05rem;
}

#product-detail-actions .btn {
    padding: 10px 20px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed);
}

#product-detail-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#back-to-products {
    padding: 8px 16px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed);
    border-color: var(--primary-color);
}

#back-to-products:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

/* 人员名单样式 */
.member-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all var(--transition-speed);
    border-top: 4px solid transparent;
    position: relative;
}

.member-card.status-active {
    border-top-color: var(--secondary-color);
}

/* 成员状态和等级样式 */
.member-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.member-status, .member-level {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.member-status.status-active {
    background-color: var(--secondary-light);
    color: white;
}

.member-status.status-working {
    background-color: var(--info-color);
    color: white;
}

.member-status.status-suspended {
    background-color: var(--warning-color);
    color: white;
}

/* 成员等级样式 */
.member-level.level-management {
    background-color: var(--primary-color);
    color: white;
}

.member-level.level-department-head {
    background-color: var(--primary-light);
    color: white;
}

.member-level.level-team-leader {
    background-color: var(--info-color);
    color: white;
}

.member-level.level-deputy-leader {
    background-color: var(--info-light, #5dcbde);
    color: white;
}

.member-level.level-member {
    background-color: var(--gray-500);
    color: white;
}

/* 成员职务样式 */
.member-position {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-bottom: 10px;
    font-weight: 500;
}

/* 成员详情样式 */
.member-detail-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.member-detail-position {
    font-size: 1rem;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 10px;
}

.member-status.status-left {
    background-color: var(--gray-400);
    color: white;
}

/* 成员层级样式 */
.member-level.level-management {
    background-color: var(--primary-light);
    color: white;
}

.member-level.level-department {
    background-color: var(--info-color);
    color: white;
}

.member-level.level-regular {
    background-color: var(--gray-300);
    color: white;
}

.member-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--box-shadow-hover);
}

.member-name {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-color);
    transition: color var(--transition-speed);
}

.member-card:hover .member-name {
    color: var(--primary-color);
}

.member-position {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

/* 联系我们样式 */
.contact-item {
    text-align: center;
    transition: all var(--transition-speed);
}

.contact-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition-speed);
}

.contact-item:hover i {
    transform: scale(1.2);
}

.contact-item h3 {
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* 模态窗口样式 */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    color: white;
    border-bottom: none;
    padding: 1.2rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-body {
    padding: 1.5rem;
    color: var(--gray-800);
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

.modal-footer .btn {
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed);
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInLeft {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .section {
        padding: 80px 0 60px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .content-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .section-title {
        margin-bottom: 40px;
    }
    
    .product-card {
        margin-bottom: 25px;
    }
    
    .member-card {
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    
    .section {
        padding: 70px 0 50px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-image {
        height: 160px;
    }
    
    .content-card {
        padding: 20px;
    }
}

.member-card:hover .member-name {
    color: var(--primary-color);
}

.member-position {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}