* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.back-link {
    display: inline-block;
    padding: 15px 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    background-color: #f8f9fa;
    width: 100%;
    border-bottom: 1px solid #eee;
}

.back-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
}

.article-header {
    padding: 20px 40px 0;
}

h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    color: #7f8c8d;
    font-size: 0.9rem;
    padding: 15px 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
    margin-bottom: 25px;
}

.meta-item {
    margin-right: 20px;
    white-space: nowrap;
}

.article-content {
    padding: 0 40px 40px;
    line-height: 1.8;
    color: #34495e;
    font-size: 1.05rem;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.article-content h3 {
    color: #2c3e50;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.article-content ul, 
.article-content ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* 产品购买链接模块样式 */
.product-purchase {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-image {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 5px;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-price-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.purchase-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.purchase-button:hover {
    background-color: #0056b3;
}

/* PC端优化 */
@media (min-width: 768px) {
    .article-meta {
        justify-content: flex-start;
    }
}

/* 移动端优化 */
@media (max-width: 767px) {
    body {
        background-color: #fff;
    }
    
    .container {
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .back-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .article-header {
        padding: 15px 20px 0;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .article-meta {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
        margin-bottom: 20px;
    }
    
    .meta-item {
        margin-right: 0;
    }
    
    .article-content {
        padding: 0 20px 30px;
        font-size: 1rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
        margin: 25px 0 12px;
    }
    
    /* 移动端产品购买模块调整 */
    .product-purchase {
        padding: 15px;
    }
    
    .product-image {
        max-width: 100px;
        max-height: 100px;
        width: auto;
        height: auto;
    }
    
    .product-name {
        font-size: 1.1rem;
        margin-bottom: 10px;
        text-align: left;
    }
    
    .product-price-label {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-actions {
        justify-content: flex-start;
    }
    
    .purchase-button {
        padding: 8px 16px;
    }
}