/* 基础样式 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-color: #f4f4f4;
    --accent-color: #2980b9;
}

/* 关于我们页面样式 */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.8;
}

.about-section h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.about-section h2 {
    color: var(--accent-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin: 2rem 0 1rem;
}

.about-section h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.about-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.about-section li {
    margin-bottom: 0.5rem;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    
    nav ul {
        flex-direction: column;
        padding: 0;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
}

header {
    background: #2c3e50; /* 深蓝色背景 */
    color: #fff;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

nav a:hover {
    color: #3498db;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #3498db;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.company-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
}

/* 主背景图样式 */
.hero {
    text-align: center;
    padding: 10rem 2rem;
    background: 
        linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
        url('../images/zhuyebeijing.png') center/cover no-repeat;
    background-blend-mode: overlay;
    position: relative;
}

/* 标题保持白色 */
.hero h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
}

.hero p {
    text-align: center;
    margin: 1.5rem auto;
    max-width: 800px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 移除调试提示 */
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 2rem;
}

.hero .button {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hero .button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 背景图底部留空 */
.hero::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    font-size: 0.8rem;
    text-align: center;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--primary-color);
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 1rem;
}

.footer-section h3 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

/* 产品页面样式 */
.products-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 联系页面样式 */
.contact-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    margin: 0.5rem 0;
    padding: 0.8rem 1rem;
    background: rgba(52, 152, 219, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.social-links a:hover {
    background: rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-links a::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

.social-links a[href*="taobao"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="%23FF4200" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-64 640c-35.3 0-64-28.7-64-64V384c0-35.3 28.7-64 64-64h128c35.3 0 64 28.7 64 64v256c0 35.3-28.7 64-64 64H448zm256-320c-35.3 0-64-28.7-64-64V384c0-35.3 28.7-64 64-64h128c35.3 0 64 28.7 64 64v128c0 35.3-28.7 64-64 64H704z"/><path fill="%23FF4200" d="M512 512c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"/></svg>');
}

.social-links a[href*="bilibili"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="%2300A1D6" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm283.2 436.7c3.1 33.8-3.5 64.8-18.9 91.2-15.4 26.4-38.4 46.5-67.7 58.9-29.3 12.4-62.4 18.7-96.6 18.7H373.9c-34.2 0-67.3-6.2-96.6-18.7-29.3-12.4-52.3-32.5-67.7-58.9-15.4-26.4-22-57.4-18.9-91.2 3.1-33.8 15.8-64.2 36.9-89.7 21.1-25.5 49.6-44.3 83.3-54.5 33.7-10.2 70.1-11.7 106.5-4.4l-38.5-38.5c-3.1-3.1-3.1-8.2 0-11.3l22.6-22.6c3.1-3.1 8.2-3.1 11.3 0L512 429.3l118.5-118.5c3.1-3.1 8.2-3.1 11.3 0l22.6 22.6c3.1 3.1 3.1 8.2 0 11.3l-38.5 38.5c36.4-7.3 72.8-5.8 106.5 4.4 33.7 10.2 62.2 29 83.3 54.5 21.1 25.5 33.8 55.9 36.9 89.7z"/><path fill="%23FFFFFF" d="M512 512c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"/></svg>');
}

.social-links a[href*="douyin"]::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="%23000000" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-64 640c-35.3 0-64-28.7-64-64V384c0-35.3 28.7-64 64-64h128c35.3 0 64 28.7 64 64v256c0 35.3-28.7 64-64 64H448zm256-320c-35.3 0-64-28.7-64-64V384c0-35.3 28.7-64 64-64h128c35.3 0 64 28.7 64 64v128c0 35.3-28.7 64-64 64H704z"/><path fill="%23FF0050" d="M512 512c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"/></svg>');
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 5px;
}

.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;
}

button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #2980b9;
}

/* 移动端菜单样式 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
    }
    
    nav ul.active {
        display: flex;
    }
}

/* 链接所有页面到JS文件 */

.social-icons a {
    display: block;
    color: #fff;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}