/* 全局样式 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header h2 {
    margin: 1rem 0 0;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}


/* 主要内容区域 */
main {
    background-color: white;
}

section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 1rem auto;
}

/* 关于我们部分 */
#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    color: #666;
}

/* 产品卡片样式 */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.qr-code {
    width: 150px;
    height: 150px;
    margin: 1rem auto;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header h2 {
        font-size: 1.2rem;
    }
    
    section {
        padding: 0 1rem;
        margin: 2rem auto;
    }
} 

a {
    color: white;
    text-decoration: none; /* 可选：去掉下划线 */
}

a:hover {
    color: #ddd; /* 可选：悬停时的颜色 */
}

.footer-table {
    width: 70%;
    margin-top: 1rem;
    margin: 1rem auto;
    border-collapse: collapse;
    font-size: 15px;
}

.footer-table td {
    padding: 0.5rem;
    color: white;
}

.footer-table td:first-child {
    text-align: left;
}

.footer-table td:last-child {
    text-align: right;
}


