/**
 * WooCommerce Custom Product Tabs - Styles
 * Version: 1.0.0
 */

/* 通用标签页内容样式 */
.woo-custom-tab-content {
    padding: 20px 0;
    line-height: 1.8;
    color: #333;
}

.woo-custom-tab-content p {
    margin-bottom: 15px;
}

.woo-custom-tab-content h2,
.woo-custom-tab-content h3,
.woo-custom-tab-content h4 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #222;
}

/* Specifications 标签页样式 */
.specifications-content {
    font-size: 15px;
}

.specifications-content ul,
.specifications-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.specifications-content li {
    margin-bottom: 8px;
}

.specifications-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.specifications-content table th,
.specifications-content table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.specifications-content table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.specifications-content table tr:nth-child(even) {
    background-color: #fafafa;
}

/* FAQ 标签页样式 */
.faq-content {
    font-size: 15px;
}

.faq-content h3 {
    color: #d32f2f;
    font-size: 16px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.faq-content h3:first-child {
    margin-top: 0;
}

.faq-content ul,
.faq-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.faq-content li {
    margin-bottom: 8px;
}

/* Contact Us 标签页样式 */
.contact-us-content {
    padding: 30px 0;
}

.contact-info-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.contact-info-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.15);
}

.contact-icon svg {
    width: 32px;
    height: 32px;
}

.contact-info-item h3 {
    text-align: center !important;
}

.contact-info-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; 
    text-align: center !important;
}

.contact-info-item .contact-icon {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 10px !important;
}

.contact-info-item p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-info-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-info-item {
        min-width: 100%;
    }
}

/* 标签页标题样式优化 */
.woocommerce-tabs ul.tabs li {
    border: 1px solid #d3ced2;
    background-color: #f9f9f9;
    border-radius: 4px 4px 0 0;
    margin: 0 5px 0 0;
}

.woocommerce-tabs ul.tabs li.active {
    background: #fff;
    border-bottom-color: #fff;
}

.woocommerce-tabs ul.tabs li a {
    padding: 12px 20px;
    font-weight: 500;
    color: #555;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #d32f2f;
}

.woocommerce-tabs ul.tabs li:hover a {
    color: #d32f2f;
}

/* 标签页内容区域 */
.woocommerce-Tabs-panel {
    padding: 30px 20px;
    background: #fff;
    border: 1px solid #d3ced2;
    border-top: none;
}

/* 打印样式 */
@media print {
    .contact-info-wrapper {
        display: block;
    }
    
    .contact-info-item {
        page-break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
    }
}

