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

/* 全局样式 */
:root {
    /* 高级配色方案 */
    --primary-color: #1e3a8a; /* 深蓝色，更专业稳重 */
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #38bdf8;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --light-text: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease-in-out;
    --success-color: #27ae60;
}

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

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

/* 导航栏样式 */
nav {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* 导航栏滚动效果 */
nav.scrolled {
    background-color: rgba(30, 58, 138, 0.95);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

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

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    transition: var(--transition);
    margin: 0;
}

nav.scrolled .logo h1 {
    font-size: 20px;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    padding: 8px 0;
    border-radius: 3px;
    position: relative;
}

.nav-links a:hover {
    color: #3498db;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    color: #3498db;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 移动菜单样式 */
@media (max-width: 768px) {
    nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: #2c3e50;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        z-index: 1000;
        padding: 60px 0;
    }
    
    nav .nav-links.mobile-active {
        right: 0;
    }
    
    nav .nav-links li {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    nav .nav-links li a {
        display: block;
        padding: 15px 0;
    }
    
    .logo h1 {
        font-size: 20px;
    }
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* 头部横幅样式 */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="white" stroke-width="0.5" stroke-opacity="0.1"/></svg>');
    opacity: 0.3;
}

header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    position: relative;
}

header p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

/* 公司信息样式 */
.company-info {
    padding: 60px 0;
    background-color: white;
}

.company-info h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--secondary-color);
    position: relative;
}

.company-info h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.info-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #3498db;
}

.info-card h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 28px;
}

.info-card h2::after {
    margin: 10px 0 0 0;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info-item strong {
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 8px;
}

.info-item span {
    color: var(--light-text);
    font-size: 14px;
}

/* 经营范围样式 */
.business-scope {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.business-scope h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--secondary-color);
    position: relative;
}

/* 公司简介 */
.about {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.about h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
    font-size: 32px;
    position: relative;
}

.about h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* 响应式设计：关于页面 */
@media (max-width: 768px) {
    .about {
        padding: 60px 0;
    }
    
    .about h2 {
        font-size: 28px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        height: 250px;
    }
}

/* 首页响应式优化 */
@media (max-width: 768px) {
    .header-content {
        padding: 100px 0;
        text-align: center;
    }
    
    .header-content h1 {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .header-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-item {
        padding: 25px;
    }
    
    .company-info {
        padding: 60px 0;
    }
    
    .company-info .container {
        flex-direction: column;
        text-align: center;
    }
    
    .info-item {
        margin-bottom: 25px;
        margin-right: 0;
    }
}

.business-scope h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.scope-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.scope-content p {
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* 服务展示样式 */
.services {
    padding: 60px 0;
    background-color: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--secondary-color);
    position: relative;
}

.services h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

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

.service-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 3px solid #3498db;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 20px;
}

.service-item p {
    color: var(--light-text);
}

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

.products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: var(--secondary-color);
    position: relative;
}

.products h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* 产品标签切换样式 */
.product-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.product-tabs .tab {
    padding: 10px 20px;
    background-color: #ecf0f1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-size: 16px;
}

.product-tabs .tab:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.product-tabs .tab.active {
    background-color: var(--accent-color);
    color: var(--white);
}

/* 标签内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-item:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-info p {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 15px;
}

/* 响应式设计：产品页面 */
@media (max-width: 768px) {
    .product-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .product-tabs .tab {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .products h2 {
        font-size: 28px;
    }
    
    .products {
        padding: 60px 0;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-img {
        height: 180px;
    }
}

/* 页脚样式 */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-info h3,
.footer-links h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-info p {
    margin-bottom: 10px;
    color: var(--light-text);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

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

/* 表单消息样式 */
.form-message {
    display: none;
    padding: 12px 15px;
    background-color: rgba(39, 174, 96, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 14px;
}

/* 额外的响应式设计样式 */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }
    
    .footer-content {
        text-align: center;
        gap: 30px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 95%;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
    }
    
    .logo h1 {
        margin-bottom: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    header {
        padding: 60px 0;
    }
    
    header h1 {
        font-size: 36px;
    }
    
    header p {
        font-size: 18px;
    }
    
    .company-info h2,
    .business-scope h2,
    .services h2 {
        font-size: 28px;
    }
    
    .license-info {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 28px;
    }
    
    header p {
        font-size: 16px;
    }
    
    .info-card,
    .scope-content {
        padding: 20px;
    }
    
    .service-item {
        padding: 20px;
    }
}