/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 导航栏样式 */
.navbar {
    background-color: #1c2149;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 2.6rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* 首页横幅样式 */
.hero {
    background: linear-gradient(135deg, #1c2149 0%, #2a5298 50%, #3498db 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 新闻区域样式 */
.news, .industry-news {
    padding: 50px 0;
    background-color: #fff;
}

.news:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h2 {
    font-size: 2rem;
    color: #2c3e50;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.news-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.news-item .date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-item p {
    color: #555;
    line-height: 1.7;
}

/* 公司介绍页面样式 */
.about {
    padding: 50px 0;
    background-color: #fff;
}

.about h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    color: #3498db;
    margin: 30px 0 15px;
    font-size: 1.8rem;
}

.about-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content ul {
    color: #555;
    line-height: 1.8;
    margin-left: 25px;
    margin-bottom: 20px;
}

/* 产品介绍页面样式 */
.products {
    padding: 0;
    background-color: #fff;
    position: relative;
}

/* 宣传页风格的蓝色渐变背景 */
.promo-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3498db 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #fff 0%, transparent 100%);
    z-index: 1;
}

.promo-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.promo-header h2 {
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* 产品详情容器 */
.product-detail-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* 宣传页风格的章节标题 */
.promo-section {
    margin-bottom: 50px;
}

.promo-section h3 {
    color: #6c3483;
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #6c3483;
}

/* 宣传页风格的列表样式 */
.promo-list {
    list-style: none;
    padding-left: 20px;
}

.promo-list li {
    margin-bottom: 15px;
    position: relative;
}

.promo-list li::before {
    content: '●';
    color: #6c3483;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

/* 应用场景列表样式 */
.application-list {
    list-style: none;
    padding-left: 20px;
}

.application-list li {
    margin-bottom: 20px;
    position: relative;
}

.application-list li::before {
    content: '▶';
    color: #6c3483;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

/* 图片容器带说明文字 */
.promo-image-container {
    text-align: center;
    margin: 40px 0;
}

.promo-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.promo-image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* 芯片标题样式 */
.chip-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 页脚联系方式样式 */
.contact-footer {
    background: linear-gradient(135deg, #1c2149 0%, #2a5298 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.contact-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-footer .contact-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.contact-footer .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

/* 产品列表网格布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.product-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.product-item h2 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.product-item p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.product-features h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.product-features ul {
    color: #555;
    line-height: 1.8;
    margin-left: 25px;
}

/* 产品详情页面样式 */
.product-detail {
    max-width: 1000px;
    margin: 0 auto;
}

/* 产品图片样式 */
.product-image {
    text-align: center;
    margin: 30px 0;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    max-height: 400px;
}

/* 芯片结构示意图样式 */
.chip-structure {
    text-align: center;
    margin: 30px 0;
}

.chip-structure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    max-height: 500px;
}

/* 芯片尺寸图样式 */
.chip-dimensions {
    text-align: center;
    margin: 30px 0;
}

.chip-dimensions img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    max-height: 300px;
}

/* 系统框图样式 */
.system-block-diagram {
    text-align: center;
    margin: 30px 0;
}

.system-block-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    max-height: 400px;
}

/* 评估板图片样式 */
.evaluation-board-image {
    text-align: center;
    margin: 30px 0;
}

.evaluation-board-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    max-height: 400px;
}

/* 图片占位符样式 */
.image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 为不同类型的图片占位符设置不同高度 */
.product-image .image-placeholder {
    max-height: 400px;
    height: 400px;
}

.chip-structure .image-placeholder {
    max-height: 500px;
    height: 500px;
}

.chip-dimensions .image-placeholder {
    max-height: 300px;
    height: 300px;
}

.system-block-diagram .image-placeholder {
    max-height: 400px;
    height: 400px;
}

.evaluation-board-image .image-placeholder {
    max-height: 400px;
    height: 400px;
}

.image-placeholder-text {
    color: #666;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
    z-index: 1;
}

/* 确保图片加载后覆盖占位符 */
.image-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

.product-detail h2 {
    color: #3498db;
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
}

.product-overview, .product-advantages, .product-specs,
.product-applications, .evaluation-board {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-overview h3, .product-advantages h3,
.product-specs h3, .product-applications h3,
.evaluation-board h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.product-overview p, .product-advantages p,
.evaluation-board p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 规格参数表格样式 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-table th, .specs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.specs-table th {
    background-color: #3498db;
    color: #fff;
    font-weight: bold;
}

.specs-table tr:nth-child(even) {
    background-color: #fff;
}

.specs-table tr:hover {
    background-color: #e8f4fc;
}

/* 应用场景样式 */
.application-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.application-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.application-item h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.application-item p {
    color: #555;
    line-height: 1.8;
}

/* 页脚样式 */
.footer {
    background-color: #1c2149;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 0;
}

/* 联系我们页面样式 */
.contact {
    padding: 50px 0;
    background-color: #fff;
}

.contact h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    color: #3498db;
    margin: 40px 0 25px;
    font-size: 1.8rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.contact-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-item p {
    color: #555;
    line-height: 1.8;
}

.contact-form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 20px;
    }
    
    .nav-links li {
        margin: 0 15px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .news-grid, .products-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
    }
}
