/* 全局样式 */
:root {
    --primary-color: #005baa; /* 主色调 - 蓝色 */
    --secondary-color: #ff6c00; /* 次要色调 - 橙色 */
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #777777;
    --white: #ffffff;
    --black: #000000;
    --border-color: #dddddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 头部样式 */
header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
}

.contact-link {
    margin-right: 20px;
}

.contact-link a {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.contact-link a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.language-selector {
    display: flex;
    gap: 10px;
}

.language-selector a {
    font-size: 14px;
    color: var(--dark-gray);
    padding: 5px;
}

.language-selector a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* 导航样式 */
#main-nav {
    background-color: var(--primary-color);
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-menu {
    display: flex;
    justify-content: space-between;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
}

.main-menu > li:hover > a {
    background-color: var(--secondary-color);
}

.has-submenu::after {
    content: '\25BC';
    font-size: 10px;
    color: var(--white);
    margin-left: 5px;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 101;
}

.submenu li a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 14px;
    border-bottom: 1px solid var(--medium-gray);
}

.submenu li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.has-submenu:hover .submenu {
    display: block;
}

/* 横幅样式 */
.hero-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 15px;
}

.banner-content {
    max-width: 800px;
}

.banner-content h2 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 业务领域样式 */
.business-areas {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.business-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.business-item:hover {
    transform: translateY(-10px);
}

.business-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-gray);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
}

.aluminum-icon {
    background-image: url('images/aluminum-icon.png');
}

.steel-icon {
    background-image: url('images/steel-icon.png');
}

.alloy-icon {
    background-image: url('images/alloy-icon.png');
}

.custom-icon {
    background-image: url('images/custom-icon.png');
}

.business-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.business-item p {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.more-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
}

.more-link::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.more-link:hover::after {
    margin-left: 10px;
}

/* 公司简介样式 */
.company-intro {
    padding: 80px 0;
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.intro-image {
    flex: 1;
    min-width: 300px;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 新闻动态样式 */
.news-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.news-container {
    background-color: var(--white);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
}

.news-date {
    font-size: 14px;
    color: var(--dark-gray);
    min-width: 100px;
}

.news-title {
    flex: 1;
}

.news-title a {
    font-size: 16px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--secondary-color);
}

.more-news {
    display: block;
    text-align: right;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 10px;
}

.more-news:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 合作伙伴样式 */
.partners-section {
    padding: 80px 0;
}

.partners-content {
    text-align: center;
}

.partners-content p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 16px;
}

.partners-logo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.partner-item {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0);
}

/* 联系我们样式 */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, 
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info {
    background-color: var(--white);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

/* 页脚样式 */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--medium-gray);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    margin-bottom: 15px;
}

.copyright p {
    font-size: 14px;
    color: var(--medium-gray);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--medium-gray);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-right {
        margin-top: 15px;
    }
    
    .main-menu {
        flex-direction: column;
    }
    
    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        width: 100%;
    }
    
    .has-submenu:hover .submenu {
        display: none;
    }
    
    .has-submenu.active .submenu {
        display: block;
    }
    
    .hero-banner {
        height: 400px;
    }
    
    .banner-content h2 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        margin-top: 15px;
    }
} 