@import 'common.css';
@import 'reset.css';

/* 全局样式 */
:root {
    --primary-color: #FF6B00;
    --primary-hover: #E65C00;
    --secondary-color: #1A73E8;
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #777777;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {

    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-outline{
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}



/* Hero 区域 */
.hero-section {
    padding: 180px 0px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../images/banner/home.jpg');
    background-size: cover;
    background-position: top;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}


.hero-subtitle {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 35px;
    font-weight: 600;
}

.hero-description {
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 关键特性区域 */
.key-features-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -40px auto 50px;
    color: var(--text-medium);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.feature-item {
    background-color: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}

.feature-inner {
    padding: 40px;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.feature-item h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.feature-item p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 0;
}

.value-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-list li {
    margin-bottom: 20px;
    padding-left: 28px;
    position: relative;
    color: var(--text-medium);
}

.value-list li:before {
    content: "\f00c";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.value-list li span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

/* 核心优势部分 */
.advantages-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.advantage-item {
    background-color: var(--bg-white);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #ebe9e9;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.advantage-item:hover .advantage-icon {
    background-color: rgba(255, 107, 0, 0.2);
    transform: scale(1.1);
}

.advantage-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.advantage-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.advantage-item p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.90rem;
}

/* 产品展示部分 - 扁平化国际风格 */
.products-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

/* 产品分类样式 */
.product-category {
    margin-bottom: 80px;
}

.product-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.category-title:before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 特色产品样式 */
.product-item.featured {
    margin-bottom: 60px;
}

.product-row {
    display: flex;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-row:hover {
    box-shadow: var(--shadow-md);
}

.product-image {
    flex: 0 0 35%;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-content {
    flex: 0 0 65%;
    padding: 40px;
}

.product-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.product-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.product-feature {
    background-color: rgba(255, 107, 0, 0.05);
    padding: 20px;
    margin: 20px 0;
    border-left: 3px solid var(--primary-color);
}

.feature-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.feature-tag i {
    margin-right: 5px;
}

.product-feature p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 0;
}

/* 普通产品网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-grid .product-item {
    background-color: var(--bg-white);
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
}

.product-grid .product-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.product-grid .product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-grid .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-grid .product-item:hover .product-overlay {
    opacity: 1;
}

.product-grid .product-overlay .product-desc {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.product-grid .product-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    padding: 15px;
    text-align: center;
    background: #fff;
}

/* 响应式调整 */
@media (max-width: 1100px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content h1 span {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .product-row {
        flex-direction: column;
    }

    .product-image,
    .product-content {
        flex: 0 0 100%;
    }

    .product-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .product-grid .product-image {
        height: 180px;
    }

    .product-grid .product-item h4 {
        font-size: 1rem;
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: 130px 0 70px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h1 span {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .feature-inner {
        padding: 30px;
    }

    .advantage-item {
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-info,
    .footer-contact,
    .footer-links {
        width: 100%;
        margin-bottom: 40px;
    }
}


/* 核心优势部分 - 添加光效果 */
.advantage-item {
    background-color: var(--bg-white);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #ebe9e9;
    position: relative;
    overflow: hidden;
    /* 确保光效果不会溢出 */
}

/* 添加光效果元素 */
.advantage-item .light-effect {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    /* 确保鼠标事件穿透到卡片 */
    opacity: 0;
    transition: opacity 0.3s;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.advantage-item .advantage-icon,
.advantage-item h3,
.advantage-item p {
    position: relative;
    z-index: 2;
    /* 确保内容显示在光效果上方 */
}