/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局变量 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --text-color: #555;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* 段落样式 */
p {
    margin-bottom: 1rem;
}

/* 链接样式 */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* 联系方式按钮样式 */
.btn-qq,
.btn-weixin,
.btn-taobao {
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 20px;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.btn-qq {
    background-color: #12b7f5;
}

.btn-qq:hover {
    background-color: #0da5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.3);
}

.btn-weixin {
    background-color: #07c160;
}

.btn-weixin:hover {
    background-color: #05b057;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.btn-taobao {
    background-color: #ff4400;
}

.btn-taobao:hover {
    background-color: #e63e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 0, 0.3);
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    margin-right: 1rem;
    border-radius: 50%;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 2rem;
}

.nav ul li a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.nav ul li a:hover {
    color: var(--secondary-color);
}

/* 英雄区域样式 */
.hero {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 8rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

/* 部分标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* 关于我们样式 */
.about {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.about-info {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 业务范围样式 */
.services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.service-item img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

/* 产品展示样式 */
.products {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.taobao-link {
    text-align: center;
    margin-top: 2rem;
}

/* 联系我们样式 */
.contact {
    padding: 6rem 0;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-item {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    flex: 1;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 消息提示样式 */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid #f5c6cb;
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-info p {
    color: #ccc;
    margin: 0;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.footer-links ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav ul li {
        margin: 0 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about,
    .services,
    .products,
    .contact {
        padding: 4rem 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item,
.product-item {
    animation: fadeInUp 0.6s ease-out;
}

.service-item:nth-child(2),
.product-item:nth-child(2) {
    animation-delay: 0.2s;
}

.service-item:nth-child(3),
.product-item:nth-child(3) {
    animation-delay: 0.4s;
}

.service-item:nth-child(4) {
    animation-delay: 0.6s;
}

.service-item:nth-child(5) {
    animation-delay: 0.8s;
}

.service-item:nth-child(6) {
    animation-delay: 1s;
}