﻿/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --two-color: #A70000;
    --primary-color: #E60012;
    --secondary-color: #f5f5f5;
    --text-color: #333333;
    --light-text: #ffffff;
    --blue-color: #4169e1;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn.primary:hover {
    background-color: #40a9ff;
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn.secondary:hover {
    background-color: rgba(24, 144, 255, 0.1);
}

/* 头部导航 */
header {
    background-color: var(--light-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    padding: 15px 20px;
}

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

.logo img {
    height: 40px;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 导航菜单 */
.main-nav {
    display: none;
    width: 100%;
    padding-top: 15px;
}

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

.main-nav ul {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

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

.main-nav ul li a {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.main-nav ul li a:hover, .main-nav ul li a.active {
    color: var(--primary-color);
}

/* 桌面端样式 */
@media (min-width: 769px) {
    .main-nav ul {
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .main-nav ul li {
        margin: 0 0 0 30px;
    }
}

/* 英雄区域 */
.hero {
    background-color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slogan {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center;
}
.slogan img {
    width: 60%;
}

.slogan-left {
    text-align: right;
    margin-right: 20px;
    color: var(--text-color);
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.slogan-right {
    text-align: left;
    margin-left: 20px;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.brand img {
    max-width: 400px;
}

/* 主要内容区域 */
.main-content {
    padding: 0 40px ;
}

.card-row {
    display: flex;
    gap: 30px;
    margin: 0px;
    padding-top: 40px;
}

.card {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 0px;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: block;
}

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

.card-image {
    padding: 1% 3%;
    width: 100%;
    
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 20px;
}

.card-title {
    padding: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

/* 行业DM部分 */
.industry-dm {
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.industry-dm h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    order: 2;
    margin-top: 20px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    order: 1;
    padding:5%;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s ease;
}

.icon-item:hover {
    transform: translateY(-3px);
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.icon-box:hover {
    transform: scale(1.05);
}

.icon-box img {
    width: 90px;
    height: 90px;
}

.icon-item p {
    font-size: 14px;
}

/* 页脚 */
footer {
    background-color: #f5f5f5;
    padding: 20px 0;
    margin-top: 40px;
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.copyright p {
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .icon-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .card-row {
        flex-direction: column;
    }
    
    .icon-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .slogan {
        flex-direction: column;
    }
    .slogan img {
        width: 100%;
    }
    .hero{
        padding: 40px 0;
    }
    .icon-box img{
        height: auto;
        width: 100%;
    }
    
    .slogan-left, .slogan-right {
        margin: 0;
        text-align: center;
    }
    
    .brand img {
        max-width: 300px;
    }
    .main-content{
        padding: 0;
    }
    .slogan{
        margin-bottom: 0px;
    }
    
    .icon-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 375px) {
    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 汉堡菜单动画 */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
} 