/* 全局样式 */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --info-color: #17a2b8;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #003d7a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
}

.search-box .form-control {
    border-radius: 20px 0 0 20px;
}

.search-box .btn {
    border-radius: 0 20px 20px 0;
}

.nav-icons i {
    font-size: 1.3rem;
}

/* 英雄区域样式 */
.hero-section {
    padding: 80px 0;
    background-color: #f0f8ff;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero-section h2 {
    color: var(--secondary-color);
    font-weight: 500;
}

.hero-buttons {
    margin-top: 30px;
}

.hero-image {
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: translateY(-10px);
}

/* 服务特色样式 */
.features-section {
    background-color: #fff;
}

.feature-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* 产品卡片样式 */
.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: bottom 0.3s ease;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-category {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    margin-bottom: 10px;
    color: #ffc107;
}

.product-rating span {
    color: var(--secondary-color);
    margin-left: 5px;
    font-size: 0.8rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.new-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--danger-color);
}

.old-price {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: line-through;
}

/* 装机方案样式 */
.solution-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.solution-image {
    position: relative;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.solution-card:hover .solution-image img {
    transform: scale(1.05);
}

.solution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover .solution-overlay {
    opacity: 1;
}

.solution-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.solution-desc {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.solution-price {
    font-weight: 700;
    color: var(--danger-color);
}

/* 客户评价样式 */
.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: #ffc107;
}

.testimonial-text {
    font-style: italic;
    color: #555;
}

.testimonial-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.testimonial-name {
    font-size: 1rem;
    font-weight: 600;
}

.testimonial-info {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* 品牌合作样式 */
.brand-item {
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 订阅区域样式 */
.newsletter-section {
    background-color: var(--primary-color);
    color: #fff;
}

.newsletter-form .form-control {
    border-radius: 30px 0 0 30px;
    height: 50px;
}

.newsletter-form .btn {
    border-radius: 0 30px 30px 0;
    height: 50px;
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-color);
    color: #fff;
}

.footer h4, .footer h5 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-image {
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .feature-card, .product-card, .solution-card, .testimonial-card {
        margin-bottom: 20px;
    }
}