/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'PingFang SC', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: #f8f9fa;
    font-size: 16px;
}

/* div 和 section 统一样式 */
div, section {
    /* 确保所有div和section使用相同的盒模型 */
    box-sizing: border-box;
    /* 统一的文本渲染 */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 布局容器统一样式 */
div.container, section.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 内容区域统一样式 */
div[class*="content"], section[class*="content"] {
    position: relative;
    z-index: 1;
}

/* 卡片类元素统一样式 */
div[class*="card"], section[class*="card"] {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

div[class*="card"]:hover, section[class*="card"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.15);
    border-color: #3498db;
}

/* section 特定样式 */
section {
    /* 确保section作为语义化容器的基础样式 */
    display: block;
    position: relative;
}

/* 页面区域section统一样式 */
section[class*="section"], section[class*="content"] {
    padding: 60px 0;
}

/* 网格布局统一样式 */
div[class*="grid"], section[class*="grid"] {
    display: grid;
    gap: 30px;
}

/* 列表布局统一样式 */
div[class*="list"], section[class*="list"] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 导航栏 */
.navbar {
    background: #1a2c42;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: #3498db;
}

.nav-menu a.active {
    color: #3498db;
}

/* Banner焦点图 */
.hero-banner {
    background: linear-gradient(135deg, #1a2c42 0%, #2c3e50 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(52, 152, 219, 0.05) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(52, 152, 219, 0.05) 50%, transparent 52%);
    background-size: 30px 30px;
    opacity: 0.5;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 32px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #3498db;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* 产品推荐区域 */
.featured-products {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a2c42;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.product-category {
    margin-bottom: 4rem;
}

.product-category h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.product-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: #3498db;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.15);
    border-color: #3498db;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px dashed #dee2e6;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #1a2c42;
    font-weight: 600;
}

.product-info p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price-tag {
    color: #3498db;
    font-weight: 600;
    font-size: 1.1rem;
}

/* 底部 */
.footer {
    background: #1a2c42;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* 关于页面样式 */
.about-content {
    padding: 60px 0;
    background-color: white;
}

.about-section {
    margin-bottom: 50px;
}

.about-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.about-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tech-category {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.tech-category h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tech-category ul {
    list-style: none;
    padding: 0;
}

.tech-category li {
    padding: 8px 0;
    color: #555;
    padding-left: 20px;
    position: relative;
}

.tech-category li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3498db;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.advantage-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.advantage-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 联系页面样式 */
.contact-content {
    padding: 60px 0;
    background-color: white;
}

.contact-main {
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.contact-card h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.contact-wechat {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.qr-code-large {
    text-align: center;
}

.qr-code-large img {
    width: 250px;
    height: 250px;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
}

.qr-code-large p {
    color: #7f8c8d;
    font-size: 1rem;
}

.wechat-info {
    flex: 1;
}

.wechat-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.wechat-id-text {
    font-size: 1.5rem;
    color: #3498db;
    font-weight: bold;
    margin-bottom: 15px;
}

.contact-tips {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.contact-tips p {
    margin: 10px 0;
    color: #555;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    font-size: 2.5rem;
}

.contact-detail h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-detail p {
    color: #555;
    font-size: 1.1rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.faq-item {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
}


/* 社交媒体链接 */
.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-weight: 500;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-2px);
    color: white;
}

/* 响应式 - 社交链接 */
@media (max-width: 768px) {
    .social-links {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
    }
}
