/* ===========================
   佛山欧若拉照明有限公司 - 企业官网样式
   =========================== */

/* --- 全局 --- */
:root {
    --primary: #E53935;
    --primary-dark: #C62828;
    --primary-light: #EF5350;
    --dark: #1a1a1a;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* --- 导航栏 --- */
.navbar {
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 44px;
    transition: transform 0.3s ease;
}

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

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

/* --- 英雄区域/轮播图 --- */
.hero-carousel {
    margin-top: 68px;
}

.hero-carousel .carousel-item {
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
}

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

.hero-carousel .carousel-caption {
    bottom: 15%;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem 2.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
}

.hero-carousel .carousel-caption h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-carousel .carousel-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin: 0 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* --- 通用 Section --- */
.section-padding {
    padding: 5rem 0;
}

/* --- 页面标题 --- */
.page-header {
    margin-top: 68px;
}

/* --- 统计卡片 --- */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card h3 {
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary);
}

/* --- 服务卡片 --- */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

.card-img-top {
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* --- 品牌 Logo --- */
.brand-logo {
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-3px);
}

.brand-logo img {
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.brand-logo:hover img {
    filter: grayscale(0%);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-section h2 {
    font-weight: 700;
}

/* --- 页脚 --- */
.footer {
    background-color: #1a1a1a;
    padding: 3rem 0 1.5rem;
}

.footer h5,
.footer h6 {
    color: var(--white);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--white);
}

.footer hr {
    opacity: 0.2;
}

/* --- 筛选按钮 --- */
.filter-btn {
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* --- 联系页卡片 --- */
.contact-info .d-flex {
    transition: transform 0.2s ease;
}

.contact-info .d-flex:hover {
    transform: translateX(5px);
}

/* --- 响应式 --- */
@media (max-width: 991.98px) {
    .hero-carousel .carousel-item {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-carousel .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .hero-carousel .carousel-caption p {
        font-size: 0.95rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel .carousel-item {
        height: 40vh;
        min-height: 300px;
    }
    
    .hero-carousel .carousel-caption {
        bottom: 10%;
        padding: 1rem 1.5rem;
    }
    
    .hero-carousel .carousel-caption h1 {
        font-size: 1.4rem;
    }
    
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }
    
    .navbar-brand img {
        height: 36px;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* --- 动画 --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}
