/* 主色调定义 */
:root {
    --primary-dark: #1a3a1a; /* 深绿色 */
    --primary-black: #121212; /* 黑色 */
    --primary-white: #f8f9fa; /* 白色 */
    --secondary-green: #2d5a2d; /* 次深绿色 */
    --accent-gold: #d4af37; /* 点缀金色 */
}

/* 基础样式 */
body {
    background-color: #0a0a0a;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* 深色区域增强 */
.bg-dark, .bg-dark-gradient {
    background-color: #121212 !important;
}

/* 文字对比度优化 */
h1, h2, h3, h4, h5, h6 {
    color: white;
}

.section-title, .section-subtitle {
    color: white;
}

/* 按钮样式统一 */
.btn-primary {
    background-color: var(--primary-dark);
    border-color: var(--accent-gold);
    color: white;
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.2);
    color: white;
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 导航栏样式 */
.navbar {
    background-color: var(--primary-dark) !important;
    border-bottom: 1px solid var(--accent-gold);
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-link {
    transition: color 0.3s ease;
}

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

/* 主要内容区域 */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(rgba(26, 58, 26, 0.8), rgba(18, 18, 18, 0.9)), 
                url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-dark);
    border-color: var(--accent-gold);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-green);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border-color: var(--primary-dark);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--primary-dark);
    border-color: var(--accent-gold);
}

/* 卡片样式 */
.card {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.card-text {
    color: #555;
}

/* 服务卡片样式 */
.service-card {
    background-color: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: #fafafa;
}

.service-card .card-body {
    padding: 2rem;
}

.service-card .card-title {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-card .card-text {
    color: #444;
}

/* 新闻卡片样式 */
.news-card {
    background-color: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: #fafafa;
}

.news-card .card-body {
    padding: 1.5rem;
}

.news-card .card-title {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.news-card .card-text {
    color: #444;
    margin-bottom: 1rem;
}

/* 客户评价卡片 */
.testimonial-item {
    background-color: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-item:hover {
    background-color: #fafafa;
}

.testimonial-content {
    color: #555;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author h5 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.testimonial-author p {
    color: #777;
}

/* 表单样式 */
.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-dark);
    color: white;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-gold);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* 页脚样式 */
footer {
    border-top: 1px solid var(--accent-gold);
}

/* 新增区块样式 */
.section-title {
    color: var(--accent-gold);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--accent-gold);
}

.section-subtitle {
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}

/* 服务卡片 */
.service-card {
    border: none;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--accent-gold);
}

/* 客户评价 */
.testimonial-item {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.testimonial-content {
    background: rgba(255,255,255,0.5);
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    font-style: italic;
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid rgba(255,255,255,0.05);
}

.testimonial-author h5 {
    color: var(--accent-gold);
    margin-bottom: 5px;
}

/* 新闻卡片 */
.news-card {
    border: none;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.news-date {
    color: var(--accent-gold);
    font-size: 14px;
    margin-bottom: 10px;
}

/* 合作伙伴 */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* 地址详情 */
.address-detail p {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.address-detail p:before {
    content: "•";
    color: var(--accent-gold);
    position: absolute;
    left: 0;
}

.address-detail p strong {
    color: var(--accent-gold);
    margin-right: 8px;
}

/* 产品展示区域 - 更新部分 */
.gallery-container {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.product-main-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    max-height: 500px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-thumbnails {
    padding: 15px 0;
}

/* 缩略图画廊 */
.thumbnails-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail-item {
    flex: 0 0 80px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.thumbnail-item.active {
    border-color: var(--accent-gold);
    opacity: 1;
    box-shadow: 0 5px 10px rgba(212, 175, 55, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
}

/* 背景渐变 */
.bg-dark-gradient {
    background: linear-gradient(to bottom, var(--primary-black), var(--primary-dark));
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }

    .testimonial-content {
        padding: 20px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* 产品相册响应式调整 */
    .thumbnails-container {
        gap: 10px;
    }
    
    .thumbnail-item {
        flex: 0 0 60px;
    }
    
    .thumbnail-item img {
        height: 60px;
    }
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}