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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    max-height: 60px;
}

/* 导航样式 */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 16px;
}

nav a:hover, nav a.active {
    color: #165DFF;
}

/* 语言选择器样式 */
.language-selector {
    margin-left: 20px;
}

.language-selector select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.language-selector select:hover {
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

/* 响应式菜单按钮 */
.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
    color: #333;
    padding: 10px;
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #165DFF 0%, #0040C1 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #165DFF;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0040C1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: #165DFF;
}

/* 产品特性区域 */
.product-features {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

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

.feature-item {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #e9ecef;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #165DFF;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

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

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

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

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

.solution-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.solution-content {
    padding: 30px;
}

.solution-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.solution-content p {
    color: #666;
    margin-bottom: 20px;
}

/* 关于我们区域 */
.about-section {
    padding: 80px 0;
    background-color: white;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 产品中心页面样式 */
.product-banner {
    background: linear-gradient(135deg, #165DFF 0%, #0040C1 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.product-categories {
    padding: 80px 0;
    background-color: white;
}

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

.category-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

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

.category-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-content {
    padding: 30px;
}

.category-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.category-content p {
    color: #666;
    margin-bottom: 20px;
}

/* 关于我们页面样式 */
.about-banner {
    background: linear-gradient(135deg, #165DFF 0%, #0040C1 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.company-profile {
    padding: 80px 0;
    background-color: white;
}

.company-profile p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    max-width: 900px;
    margin: 0 auto;
}

.development-history {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #165DFF;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid #165DFF;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

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

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.timeline-content p {
    color: #666;
}

/* 解决方案页面样式 */
.solution-banner {
    background: linear-gradient(135deg, #165DFF 0%, #0040C1 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.solution-overview {
    padding: 80px 0;
    background-color: white;
}

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

.solution-detail-item {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.solution-detail-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #165DFF;
}

.solution-detail-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.solution-detail-item ul {
    list-style: none;
    padding-left: 0;
}

.solution-detail-item li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
}

.solution-detail-item li::before {
    content: '✓';
    color: #165DFF;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.solution-features {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* 联系我们页面样式 */
.contact-banner {
    background: linear-gradient(135deg, #165DFF 0%, #0040C1 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-content {
    padding: 80px 0;
    background-color: white;
}

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

.contact-info {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.contact-info h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.contact-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.contact-form h3 {
    font-size: 22px;
    margin-bottom: 30px;
    color: #333;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-map {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo img {
    max-height: 80px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: #ccc;
    line-height: 1.6;
}

.footer-content h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 10px;
}

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

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

.quick-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #165DFF;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* 阿拉伯语RTL支持 */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] nav ul {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-selector {
    margin-left: 0;
    margin-right: 20px;
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 50%;
    margin-left: 0;
    margin-right: -1px;
}

[dir="rtl"] .timeline-item:nth-child(odd) {
    left: 50%;
}

[dir="rtl"] .timeline-item:nth-child(even) {
    left: 0;
}

[dir="rtl"] .timeline-item::after {
    right: auto;
    left: -10px;
}

[dir="rtl"] .timeline-item:nth-child(even)::after {
    left: auto;
    right: -10px;
}

[dir="rtl"] .solution-detail-item li {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] .solution-detail-item li::before {
    left: auto;
    right: 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 40px;
    }
    
    .hero-section p {
        font-size: 18px;
    }
    
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 21px;
        right: auto;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
    
    /* RTL响应式调整 */
    [dir="rtl"] .timeline::before {
        right: 31px;
        left: auto;
    }
    
    [dir="rtl"] .timeline-item {
        padding-right: 70px;
        padding-left: 25px;
    }
    
    [dir="rtl"] .timeline-item::after {
        right: 21px;
        left: auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding-top: 80px;
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    nav a {
        display: block;
        padding: 10px 0;
        font-size: 18px;
    }
    
    .language-selector {
        margin-left: 0;
        margin-top: 20px;
        text-align: center;
    }
    
    .hero-section {
        padding: 100px 0;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-grid {
        gap: 30px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    /* RTL导航调整 */
    [dir="rtl"] nav {
        right: auto;
        left: -300px;
    }
    
    [dir="rtl"] nav.active {
        left: 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .feature-item,
    .solution-detail-item,
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

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

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation: fadeIn 0.8s ease forwards;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #165DFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
