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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #121212;
}

/* 头部样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo {
    width: 150px;
    height: 50px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

nav {
    margin-left: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #64b5f6;
}

/* 主要内容区域 */
main {
    margin-top: 80px;
    height: calc(100vh - 80px);
    overflow: hidden;
    background-color: #121212;
}

.section {
    display: none;
    height: 100%;
    padding: 2rem;
    overflow-y: auto;
    background-color: #121212;
}

.section.active {
    display: block;
}

/* 标题样式 */
h2 {
    color: #64b5f6;
    margin-bottom: 2rem;
    text-align: center;
}

/* 产品展示区域 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.product-card {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    border: 1px solid #333;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #64b5f6;
}

.product-card h3 {
    color: #64b5f6;
    margin-bottom: 1rem;
}

/* 公司介绍区域 */
#about {
    position: relative;
    min-height: 100%;
}

#about::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/bg_us.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: 1;
}

#about::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.85);
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 10px;
    border: 1px solid #333;
    color: #e0e0e0;
}

.about-content h2 {
    color: #64b5f6;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    text-align: left;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 联系表单 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #1e1e1e;
    border-radius: 10px;
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e0e0e0;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #2d2d2d;
    color: #e0e0e0;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #64b5f6;
}

textarea {
    height: 150px;
    resize: vertical;
}

button {
    background: #64b5f6;
    color: #121212;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    font-weight: 500;
}

button:hover {
    background: #42a5f5;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 1rem;
    background: #1e1e1e;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #333;
}

.footer-text {
    font-size: 0.9rem;
    color: #888;
    margin: 0.2rem 0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64b5f6;
}

/* 联系我们区域 */
#contact {
    position: relative;
    min-height: 100%;
    background: #121212;
}

.contact-container {
    display: flex;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    height: calc(100vh - 100px);
}

.contact-image {
    flex: 0 0 450px;
    overflow: hidden;
    border-radius: 12px;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info {
    background: rgba(30, 30, 30, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.contact-info h3 {
    color: #64b5f6;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: rgba(45, 45, 45, 0.9);
    border-radius: 8px;
    transition: transform 0.3s;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    color: #64b5f6;
}

.contact-details h4 {
    color: #64b5f6;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.contact-details p {
    color: #e0e0e0;
    font-size: 0.95rem;
}

.message-section {
    background: rgba(30, 30, 30, 0.9);
    padding: 1.2rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.message-section h3 {
    color: #64b5f6;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.message-section .form-group {
    margin-bottom: 0.8rem;
}

.message-section label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.message-section input,
.message-section textarea {
    padding: 0.5rem;
    font-size: 0.9rem;
}

.message-section textarea {
    height: 80px;
}

.message-section button {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 响应式设计补充 */
@media (max-width: 1200px) {
    .contact-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }

    .contact-image {
        flex: 0 0 250px;
    }

    .contact-main {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0.8rem;
    }

    .contact-image {
        flex: 0 0 180px;
    }

    .contact-info,
    .message-section {
        padding: 1rem;
    }

    .contact-item {
        padding: 0.6rem;
    }

    .contact-icon {
        font-size: 1.1rem;
    }

    .contact-details h4 {
        font-size: 0.95rem;
    }
}

/* 产品介绍样式 */
#products {
    position: relative;
    min-height: 100%;
}

#products::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/bg_product.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: 1;
}

#products::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.85);
    z-index: 1;
}

.product-intro {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.product-header {
    text-align: center;
    margin-bottom: 3rem;
}

.product-subtitle {
    color: #64b5f6;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.product-slogan {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.highlight {
    color: #e0e0e0;
}

.highlight-blue {
    color: #64b5f6;
    font-weight: bold;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.product-item {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: rgba(30, 30, 30, 0.9);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    border-color: #64b5f6;
}

.product-item.reverse {
    flex-direction: row-reverse;
}

.product-image {
    flex: 0 0 400px;
    text-align: center;
}

.product-image h4 {
    color: #64b5f6;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.product-image img {
    width: 350px;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.product-desc {
    flex: 1;
    padding: 1rem;
}

.product-desc h3 {
    color: #64b5f6;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-desc ul {
    list-style: none;
    padding: 0;
}

.product-desc li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.product-desc li:before {
    content: "•";
    color: #64b5f6;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* 响应式设计补充 */
@media (max-width: 1200px) {
    .product-item {
        flex-direction: column;
        text-align: center;
    }

    .product-item.reverse {
        flex-direction: column;
    }

    .product-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .product-desc {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .product-intro {
        padding: 1rem;
    }

    .product-subtitle {
        font-size: 1.4rem;
    }

    .product-slogan {
        font-size: 1.1rem;
    }

    .product-image img {
        width: 100%;
        max-width: 300px;
    }

    .product-desc li {
        font-size: 1rem;
    }
} 