.translation-toggle-container {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.translation-buttons {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.translation-btn {
    background: #fff;
    border: 2px solid #2271b1;
    color: #2271b1;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
}

.translation-btn.active {
    background: #2271b1;
    color: white;
}

.translation-btn:hover:not(.active) {
    background: #f0f6fc;
    border-color: #135e96;
}

.translation-btn.active:hover {
    background: #135e96;
    border-color: #135e96;
}

.translation-content > div {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.translation-content > div.content-active {
    display: block;
}

.chinese-content {
    font-family: "Microsoft YaHei", "SimHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.8;
}

.japanese-content {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic Pro", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.8;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 确保Woocommerce样式正常 */
.translation-content .woocommerce-product-details__short-description {
    margin: 0;
}

.translation-content p {
    margin-bottom: 1em;
}

.translation-content ul, .translation-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.translation-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.translation-content table, .translation-content th, .translation-content td {
    border: 1px solid #ddd;
}

.translation-content th, .translation-content td {
    padding: 8px 12px;
    text-align: left;
}