:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --dark-bg: #2c3e50;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 2.25rem;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* 轮播图样式 */
.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    width: 33.33%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: var(--white);
    background-color: rgba(0,0,0,0.5);
    padding: 1rem;
    max-width: 500px;
}

/* 切换按钮样式 */
.toggle-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn:hover {
    background-color: #2980b9;
}

.toggle-btn.active {
    background-color: #27ae60;
}

/* 轮播图指示器 */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-indicators span.active {
    background-color: var(--white);
}

.slider-indicators span:hover {
    background-color: var(--white);
}

/* 深色主题 */
.dark-theme {
    --primary-color: #1a1a1a;
    --secondary-color: #27ae60;
    --text-color: #f0f0f0;
    --light-bg: #2d2d2d;
    --dark-bg: #1a1a1a;
}

.dark-theme header {
    background-color: var(--dark-bg);
}

.dark-theme .slide-content {
    background-color: rgba(0,0,0,0.7);
}

/* 通用页面样式 */
.page-header {
    padding: 2rem;
    text-align: center;
    background-color: var(--light-bg);
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* 产品卡片样式 */
.product-card, .solution-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card h2, .solution-card h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 关于我们页面样式 */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.company-intro, .history, .team {
    margin-bottom: 2rem;
}

.history ul {
    margin-left: 1.5rem;
}

.history li {
    margin-bottom: 0.5rem;
}

/* 联系我们页面样式 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.contact-form {
    grid-column: span 2;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.map {
    grid-column: span 2;
    height: 400px;
    margin-bottom: 2rem;
}

.map iframe {
    width: 100%;
    height: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
    }

    .slider {
        height: 300px;
    }

    .slide-content {
        bottom: 20px;
        left: 20px;
        max-width: 80%;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form, .map {
        grid-column: span 1;
    }
}