/* 
 * ADI代理网站主样式表
 * 遵循ADI品牌色和专业电子行业设计规范
 */

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

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* 链接样式 */
a {
    text-decoration: none;
    color: #0033a0;
    transition: color 0.3s ease;
}

a:hover {
    color: #00a6d6;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #0033a0;
    color: white;
}

.btn-primary:hover {
    background-color: #002270;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 51, 160, 0.2);
}

.btn-secondary {
    background-color: white;
    color: #0033a0;
    border: 1px solid #0033a0;
}

.btn-secondary:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
}

/* 页眉样式 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: #0f172a;
    color: white;
    padding: 8px 0;
}

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

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-item {
    font-size: 14px;
}

.contact-item i {
    margin-right: 5px;
}

.language-switcher a {
    color: white;
    margin-left: 10px;
    font-size: 14px;
}

.language-switcher a.active {
    text-decoration: underline;
}

.main-header {
    padding: 15px 0;
}

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

.logo h1 {
    color: #0033a0;
    font-size: 24px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0033a0;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0033a0;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄横幅 */
.hero-banner {
    background: linear-gradient(135deg, #0033a0 0%, #00a6d6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 核心优势 */
.core-advantages {
    padding: 80px 0;
    background-color: white;
}

.core-advantages h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #0033a0;
}

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

.advantage-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 51, 160, 0.1);
}

.advantage-card .icon {
    font-size: 48px;
    color: #0033a0;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #0033a0;
}

.advantage-card p {
    color: #64748b;
}

/* 核心产品 */
.core-products {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.core-products h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #0033a0;
}

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

.product-category {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 51, 160, 0.1);
    border-color: #0033a0;
}

.product-category .icon {
    font-size: 48px;
    color: #0033a0;
    margin-bottom: 20px;
}

.product-category h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #0033a0;
}

.product-category p {
    color: #64748b;
}

/* 解决方案 */
.solutions-section {
    padding: 80px 0;
    background-color: white;
}

.solutions-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #0033a0;
}

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

.solution-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 51, 160, 0.1);
    border-color: #0033a0;
}

.solution-card .icon {
    font-size: 48px;
    color: #0033a0;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #0033a0;
}

.solution-card p {
    color: #64748b;
}

/* 最新动态 */
.latest-news {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #0033a0;
}

.view-all {
    color: #0033a0;
    font-weight: 500;
}

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

.news-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 51, 160, 0.1);
}

.news-date {
    color: #00a651;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0033a0;
}

.news-card p {
    color: #64748b;
}

/* 最终行动号召 */
.final-cta {
    background: linear-gradient(135deg, #0033a0 0%, #00a6d6 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 页脚 */
.footer {
    background-color: #0f172a;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #00a6d6;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00a6d6;
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.contact-list i {
    margin-right: 10px;
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1e293b;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #0033a0;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        gap: 15px;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .core-advantages h2,
    .core-products h2,
    .solutions-section h2,
    .latest-news h2 {
        font-size: 1.8rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .final-cta h2 {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav ul {
        display: none;
    }
    
    .main-nav ul.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 60px 0;
    }
    
    .hero-banner h1 {
        font-size: 1.6rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .advantages-grid,
    .products-grid,
    .solutions-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .hero-cta .btn,
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.advantage-card, .product-category, .solution-card, .news-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 无障碍访问优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 聚焦样式 */
a:focus, button:focus, input:focus, textarea:focus, .btn:focus {
    outline: 2px solid #00a6d6;
    outline-offset: 2px;
}