/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e60012;
    --text-color: #333;
    --bg-dark: #1a1a1a;
    --bg-light: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 头部导航样式 */
.header {
    background: var(--bg-dark);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 20px;
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    transition: var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover {
    color: #fff;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.nav-btn {
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 15px;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.nav-btn.primary {
    background: var(--primary-color);
    color: #fff;
}

.nav-btn.primary:hover {
    background: #cc0000;
    border-color: #cc0000;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .main-nav li {
        margin: 0 15px;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 70px;
    }

    .menu-toggle {
        display: block;
        order: -1;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 15px 0;
    }

    .nav-buttons {
        display: none;
    }
}

/* 轮播图样式 */
.hero-slider {
    margin-top: 80px;
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.slide {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.slide-content p {
    font-size: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
}

.hero-slider:hover .slider-controls button {
    opacity: 1;
}

.slider-controls button:hover {
    background: #fff;
    color: #e60012;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(230, 0, 18, 0.2);
}

.slider-controls .prev {
    left: 30px;
}

.slider-controls .next {
    right: 30px;
}

.slider-controls button i {
    font-size: 28px;
    line-height: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 如果Font Awesome加载失败，使用备选箭头 */
.slider-controls .prev i:empty::before {
    content: "❮";
}

.slider-controls .next i:empty::before {
    content: "❯";
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
        margin-top: 120px;
        border-radius: 0 0 20px 20px;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 18px;
    }

    .slider-controls button {
        width: 45px;
        height: 45px;
    }

    .slider-controls .prev {
        left: 15px;
    }

    .slider-controls .next {
        right: 15px;
    }

    .slider-controls button i {
        font-size: 20px;
    }
}

/* 产品展示样式 */
.products {
    padding: 80px 0;
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px;
    font-size: 24px;
}

.product-card p {
    padding: 0 20px;
    color: #666;
}

.btn {
    display: inline-block;
    margin: 20px;
    padding: 10px 30px;
    background: #e60012;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #cc0000;
}

/* 技术创新样式 */
.technology {
    padding: 80px 0;
    background: #fff;
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.tech-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tech-item i {
    font-size: 48px;
    color: #e60012;
    margin: 20px 0;
}

.tech-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.tech-item p {
    color: #666;
    line-height: 1.6;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.social-links a {
    color: #fff;
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #e60012;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .main-nav {
        margin-top: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav li {
        margin: 10px 0;
    }

    .hero-slider {
        height: 400px;
        margin-top: 120px;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 18px;
    }

    .slider-controls button {
        width: 45px;
        height: 45px;
    }

    .slider-controls button i {
        font-size: 20px;
    }
}

/* 使命和愿景样式 */
.mission-vision {
    margin-top: 20px;
    padding: 0;
    background: var(--bg-light);
}

.mission-vision .container {
    max-width: 100%;
    padding: 0;
}

.mission-vision-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.mission-box, .vision-box {
    background: #fff;
    position: relative;
    display: flex;
    min-height: 600px;
    transition: transform 0.3s ease;
}

.mission-box:hover, .vision-box:hover {
    transform: translateY(-10px);
}

.mv-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.mv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.mission-box:hover .mv-image img,
.vision-box:hover .mv-image img {
    transform: scale(1.05);
}

.mv-content {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    font-size: 36px;
    color: #fff;
}

.mission-box h2, .vision-box h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.mission-box > .mv-content > p, 
.vision-box > .mv-content > p {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 500;
    text-align: center;
}

.detail-text {
    text-align: left;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 15px;
    margin-top: auto;
}

.detail-text p {
    color: var(--text-color);
    margin: 15px 0;
    font-size: 18px;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.detail-text p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* 响应式设计补充 */
@media (max-width: 1200px) {
    .mission-box, .vision-box {
        min-height: 500px;
    }

    .mv-content {
        padding: 40px 30px;
    }
}

@media (max-width: 992px) {
    .mission-vision-content {
        grid-template-columns: 1fr;
    }

    .mission-box, .vision-box {
        flex-direction: column;
        min-height: auto;
    }

    .mv-image {
        height: 300px;
    }

    .mv-content {
        padding: 40px 20px;
    }

    .icon-box {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .icon-box i {
        font-size: 28px;
    }

    .mission-box h2, .vision-box h2 {
        font-size: 28px;
    }

    .mission-box > .mv-content > p, 
    .vision-box > .mv-content > p {
        font-size: 20px;
    }

    .detail-text {
        padding: 20px;
    }

    .detail-text p {
        font-size: 16px;
        margin: 10px 0;
    }
}

/* 数据展示样式 */
.company-data {
    position: relative;
    padding: 80px 0;
    background: url('../images/data-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    overflow: hidden;
}

.data-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.company-data .container {
    position: relative;
    z-index: 2;
}

.company-intro {
    text-align: center;
    margin-bottom: 60px;
}

.company-intro h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.company-intro h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 500;
}

.company-intro p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.data-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.data-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.data-number {
    margin-bottom: 20px;
}

.data-number .number {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-right: 5px;
}

.data-number .unit {
    font-size: 20px;
    color: var(--primary-color);
}

.data-item p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1200px) {
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .company-intro h2 {
        font-size: 32px;
    }

    .company-intro h3 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .company-data {
        padding: 60px 0;
    }

    .company-intro h2 {
        font-size: 28px;
    }

    .company-intro h3 {
        font-size: 22px;
    }

    .company-intro p {
        font-size: 16px;
    }

    .data-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .data-item {
        padding: 20px;
    }

    .data-number .number {
        font-size: 36px;
    }

    .data-number .unit {
        font-size: 18px;
    }

    .data-item p {
        font-size: 16px;
    }
} 