/**
 * X-Shortcode 前端样式 - 美化版
 */

/* 基础样式，增加选择器特异性，防止主题样式覆盖 */
body .x-shortcode-error {
    padding: 15px;
    background-color: #ffeeee;
    border: 1px solid #ffcccc;
    color: #cc0000;
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: 14px;
}

/* 提示框样式 */
body .x-notice {
    padding: 18px 20px;
    margin: 15px 0;
    border-radius: 6px;
    border-left: 5px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-size: 15px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

body .x-notice:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

body .x-notice-info {
    background-color: #e8f7ff;
    border-color: #56b6eb;
    color: #0c5781;
}

body .x-notice-success {
    background-color: #edfcf3;
    border-color: #6bd196;
    color: #2c7450;
}

body .x-notice-warning {
    background-color: #fff9ec;
    border-color: #ffbe4d;
    color: #975e00;
}

body .x-notice-error {
    background-color: #fff0f0;
    border-color: #ff7575;
    color: #c82c2c;
}

/* 按钮样式 */
body .x-button {
    display: inline-block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    margin: 6px 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    width: auto;
}

body .x-button:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    text-decoration: none !important;
    filter: brightness(110%);
    color: #fff !important;
}

body .x-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body .x-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

body .x-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

body .x-button-blue {
    background-color: #3498db;
    color: #fff !important;
    background-image: linear-gradient(135deg, #3498db, #2980b9);
}

body .x-button-blue:hover {
    background-image: linear-gradient(135deg, #41a0ea, #3498db);
    color: #fff !important;
}

body .x-button-green {
    background-color: #2ecc71;
    color: #fff !important;
    background-image: linear-gradient(135deg, #2ecc71, #27ae60);
}

body .x-button-green:hover {
    background-image: linear-gradient(135deg, #40de84, #2ecc71);
    color: #fff !important;
}

body .x-button-red {
    background-color: #e74c3c;
    color: #fff !important;
    background-image: linear-gradient(135deg, #e74c3c, #c0392b);
}

body .x-button-red:hover {
    background-image: linear-gradient(135deg, #f76353, #e74c3c);
    color: #fff !important;
}

body .x-button-yellow {
    background-color: #f39c12;
    color: #fff !important;
    background-image: linear-gradient(135deg, #f39c12, #d35400);
}

body .x-button-yellow:hover {
    background-image: linear-gradient(135deg, #ffb02e, #f39c12);
    color: #fff !important;
}

body .x-button-black {
    background-color: #34495e;
    color: #fff !important;
    background-image: linear-gradient(135deg, #34495e, #2c3e50);
}

body .x-button-black:hover {
    background-image: linear-gradient(135deg, #46637f, #34495e);
    color: #fff !important;
}

body .x-button-small {
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 4px;
}

body .x-button-medium {
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 6px;
}

body .x-button-large {
    font-size: 16px;
    padding: 14px 24px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

/* 按钮容器样式，添加此样式可以更好地组织多个按钮 */
body .x-buttons-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

body .x-buttons-container .x-button {
    margin: 0;
}

/* 标签页样式 */
body .x-tabs-container {
    margin: 25px 0;
    font-family: inherit;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.07);
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.1);
}

body .x-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: #f9f9f9;
    overflow-x: auto;
    scrollbar-width: thin;
    flex-wrap: nowrap;
}

body .x-tabs-nav::-webkit-scrollbar {
    height: 5px;
}

body .x-tabs-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body .x-tabs-nav::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

/* 标签页标题 - 增强选择器特异性 */
html body .x-tabs-nav li.x-tab-title {
    background: initial;
    padding: 14px 22px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    color: #555 !important;
    transition: all 0.3s ease;
    position: relative;
    border-right: 1px solid rgba(0,0,0,0.05);
    margin: 0;
    text-decoration: none !important;
}

html body .x-tabs-nav li.x-tab-title:hover,
html body .x-tabs-nav li.x-tab-title:focus,
html body .x-tabs-nav li.x-tab-title:active {
    background-color: rgba(0,0,0,0.03);
    color: #333 !important;
    text-decoration: none !important;
}

html body .x-tabs-nav li.x-tab-title.active,
html body .x-tabs-nav li.x-tab-title.active:hover,
html body .x-tabs-nav li.x-tab-title.active:focus,
html body .x-tabs-nav li.x-tab-title.active:active {
    background-color: #fff;
    color: #2980b9 !important;
    border-bottom: 2px solid #3498db;
    text-decoration: none !important;
}

html body .x-tabs-nav li.x-tab-title.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

body .x-tabs-content {
    padding: 20px;
    background-color: #fff;
    min-height: 100px;
}

body .x-tab-content {
    display: none;
    animation: fadeEffect 0.5s;
}

body .x-tab-content.active {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0; transform: translateY(5px);}
    to {opacity: 1; transform: translateY(0);}
}

/* 折叠面板样式 */
body .x-accordion {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.1);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

body .x-accordion-item {
    border-bottom: 1px solid rgba(0,0,0,0.07);
    position: relative;
    z-index: 1;
}

body .x-accordion-item:last-child {
    border-bottom: none;
}

/* 折叠面板头部 - 增强选择器特异性 */
html body .x-accordion-header {
    padding: 16px 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    color: #444 !important;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    text-decoration: none !important;
}

html body .x-accordion-header:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 300;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    color: #3498db !important;
    text-shadow: 0 1px 0 rgba(0,0,0,0.05);
    line-height: 1;
}

html body .x-accordion-header.active {
    background-color: #f2f9ff;
    color: #2980b9 !important;
    text-decoration: none !important;
}

html body .x-accordion-header.active:after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
    color: #3498db !important;
}

html body .x-accordion-header:hover {
    background-color: #edf7ff;
    color: #2980b9 !important;
    text-decoration: none !important;
}

html body .x-accordion-header:hover:after {
    transform: translateY(-50%) scale(1.1);
    color: #41a0ea !important;
    text-decoration: none !important;
}

body .x-accordion-content {
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background-color: #fff;
    animation: slideDown 0.4s ease-out;
    line-height: 1.5;
    overflow: hidden;
    will-change: height, opacity;
    transform: translate3d(0, 0, 0);
}

@keyframes slideDown {
    from {opacity: 0; transform: translateY(-15px);}
    to {opacity: 1; transform: translateY(0);}
}

/* 动画效果增强 - 确保动画平滑 */
.x-accordion-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.x-accordion-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.x-accordion-exit {
    opacity: 1;
    transform: translateY(0);
}

.x-accordion-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 350ms ease-in, transform 350ms ease-in;
}

/* 引用框样式 */
body .x-quote {
    margin: 25px 0;
    padding: 25px 30px;
    background-color: #f9f9f9;
    border-left: 5px solid #3498db;
    position: relative;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

body .x-quote:before {
    content: '"';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 60px;
    color: rgba(0,0,0,0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

body .x-quote p {
    margin: 0 0 10px 0;
    font-style: italic;
    color: #444;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

body .x-quote cite {
    display: block;
    font-size: 90%;
    color: #777;
    text-align: right;
    margin-top: 10px;
    font-weight: 600;
}

body .x-quote cite:before {
    content: '— ';
}

/* 单独的标签样式 */
body .x-standalone-tab {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
}

body .x-standalone-tab .x-tab-title {
    padding: 14px 20px;
    background-color: #f2f9ff;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    color: #2980b9;
}

body .x-standalone-tab .x-tab-content {
    padding: 20px !important;
    display: block !important;
    background-color: #fff;
}

/* 下载按钮样式 */
body .x-download-button {
    position: relative;
    padding-left: 45px !important;
    text-decoration: none !important;
    color: #fff !important;
}

body .x-download-button:hover {
    text-decoration: none !important;
    color: #fff !important;
}

body .x-download-button .dashicons {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    transition: all 0.3s ease;
    color: #fff !important;
}

body .x-download-button:hover .dashicons {
    transform: translateY(-50%) scale(1.2);
    color: #fff !important;
}

/* 可见性控制样式 - 统一样式 */
body .x-login-required,
body .x-comment-required,
body .x-password-required {
    background-color: #fffef4;
    border: 1px solid #ffe285;
    border-radius: 6px;
    padding: 15px 12px;
    margin: 15px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body .x-login-required:hover,
body .x-comment-required:hover,
body .x-password-required:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* 锁图标作为背景 */
body .x-login-required:before,
body .x-comment-required:before,
body .x-password-required:before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><linearGradient id="gold-grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23ffd556" /><stop offset="100%" stop-color="%23e6a700" /></linearGradient></defs><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z" fill="url(%23gold-grad)" stroke="%23e6a700" stroke-width="0.5" /></svg>');
    background-size: contain;
    position: absolute;
    top: -5px;
    right: -5px;
    opacity: 0.15;
    transform: rotate(10deg);
    z-index: 0;
    transition: all 0.3s ease;
}

body .x-login-required:hover:before,
body .x-comment-required:hover:before,
body .x-password-required:hover:before {
    transform: rotate(0) scale(1.05);
    opacity: 0.25;
}

body .x-login-required p,
body .x-comment-required p,
body .x-password-required p {
    margin: 0 0 8px 0;
    color: #664d03;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* 按钮样式 */
body .x-login-required a,
body .x-comment-required a,
body .x-password-submit {
    display: inline-block;
    background-color: #e6a700;
    color: #fff !important;
    border-radius: 4px;
    padding: 8px 15px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(230, 167, 0, 0.2);
    position: relative;
    z-index: 1;
    margin-top: 5px;
}

body .x-login-required a:hover,
body .x-comment-required a:hover,
body .x-password-submit:hover {
    background-color: #d99e00;
    box-shadow: 0 3px 6px rgba(230, 167, 0, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
}

body .x-login-required a:active,
body .x-comment-required a:active,
body .x-password-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(230, 167, 0, 0.1);
}

/* 密码输入框 */
body .x-password-form {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

body .x-password-input-wrapper {
    display: flex;
    width: 100%;
    margin-top: 5px;
    min-height: 39px;
}

body .x-password-input {
    flex: 1;
    border: 1px solid #ffe285;
    border-radius: 4px 0 0 4px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    transition: all 0.2s ease;
    height: 100%;
}

body .x-password-input:focus {
    outline: none;
    border-color: #e6a700;
    box-shadow: 0 0 0 3px rgba(230, 167, 0, 0.15);
}

body .x-password-submit {
    border-radius: 0 4px 4px 0;
    margin-top: 0;
    padding: 8px 15px;
    height: 100%;
}

body .x-password-error {
    color: #dc3545;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 500;
}

body .x-password-loading {
    margin-top: 10px;
    color: #664d03;
    font-size: 13px;
}

body .x-password-loading .dashicons {
    animation: x-spin 2s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}

@keyframes x-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 内容展示 */
body .x-login-content,
body .x-comment-content,
body .x-password-content {
    animation: x-fade-in 0.5s ease-in-out;
    background-color: #f2fbf6;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #d5f2e3;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

/* 解锁图标 */
body .x-login-content:before,
body .x-comment-content:before,
body .x-password-content:before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><linearGradient id="green-grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%234fd675" /><stop offset="100%" stop-color="%2325b350" /></linearGradient></defs><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h2c0-1.66 1.34-3 3-3s3 1.34 3 3v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z" fill="url(%23green-grad)"/></svg>');
    background-size: contain;
    position: absolute;
    top: -5px;
    right: -5px;
    opacity: 0.15;
    transform: rotate(10deg);
    z-index: 0;
    transition: all 0.3s ease;
}

@keyframes x-fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 模态框样式 */
body .x-modal-container {
    display: inline-block;
    margin: 5px 0;
}

body .x-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    overflow-y: auto;
    padding: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    align-items: center;
    justify-content: center;
    opacity: 0;
}

body .x-modal-content {
    background-color: #fff;
    margin: 0 auto;
    max-width: 600px;
    width: calc(100% - 40px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: xModalFadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

body .x-modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    background-color: #f9f9f9;
    background-image: linear-gradient(to bottom, #ffffff, #f5f7fa);
}

body .x-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-right: 30px;
    letter-spacing: 0.3px;
}

body .x-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    font-size: 0;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

body .x-modal-close:before,
body .x-modal-close:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: #999;
    top: 50%;
    left: 50%;
    transition: all 0.3s ease;
}

body .x-modal-close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

body .x-modal-close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

body .x-modal-close:hover {
    background-color: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

body .x-modal-close:hover:before,
body .x-modal-close:hover:after {
    background-color: #333 !important;
}

body .x-modal-body {
    padding: 25px;
    color: #444;
    line-height: 1.6;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    flex: 1;
    max-height: calc(90vh - 60px);
}

body .x-modal-body::-webkit-scrollbar {
    width: 8px;
}

body .x-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

body .x-modal-body::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 4px;
}

body .x-modal-body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,0,0,0.2);
}

body .x-modal-body p:first-child {
    margin-top: 0;
}

body .x-modal-body p:last-child {
    margin-bottom: 0;
}

/* 优化模态框中的内容排版 */
body .x-modal-body h1, 
body .x-modal-body h2, 
body .x-modal-body h3, 
body .x-modal-body h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

body .x-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 10px 0;
}

body .x-modal-body ul, 
body .x-modal-body ol {
    padding-left: 20px;
}

/* 优化模态框中的按钮 */
body .x-modal-body .x-button {
    margin-top: 15px;
}

/* 模态框动画效果 - 移除缩放动画 */
@keyframes xModalFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body .x-modal {
        padding: 0;
    }
    
    body .x-modal-content {
        width: calc(100% - 30px);
        max-width: 100%;
        border-radius: 10px;
        margin: 15px;
    }
    
    body .x-modal-body {
        padding: 20px;
    }
}

/* 清除主题可能添加的浮动 */
body .x-tabs-container:after,
body .x-tabs-nav:after,
body .x-accordion:after,
body .x-accordion-item:after {
    content: "";
    display: table;
    clear: both;
}

/* 下载框样式 */
body .x-download-box {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    background-color: #f9f9f9;
    border: 1px solid #eaeaea;
}

body .x-download-box-header {
    padding: 15px 20px;
    background-color: #f2f7fb;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body .x-download-box-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
}

body .x-download-box-title .dashicons {
    margin-right: 10px;
    color: #3498db;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

body .x-download-box-body {
    padding: 20px;
}

body .x-download-box-description {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

body .x-download-box-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

body .x-download-box-item {
    margin-bottom: 10px;
    border-bottom: 1px dashed #eaeaea;
    padding-bottom: 10px;
}

body .x-download-box-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

body .x-download-box-item-name {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}

body .x-download-box-item-name .dashicons {
    margin-right: 5px;
    color: #3498db;
}

body .x-download-box-item-description {
    margin: 5px 0 10px 0;
    color: #666;
    font-size: 14px;
}

body .x-download-box-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #3498db;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 5px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

body .x-download-box-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

body .x-download-box-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    color: #fff !important;
    text-decoration: none !important;
}

body .x-download-box-button:hover:before {
    transform: translateX(0);
}

body .x-download-box-button.baidu {
    background-color: #2b5aed;
}

body .x-download-box-button.baidu:hover {
    background-color: #3e6bff;
}

body .x-download-box-button.aliyun {
    background-color: #ff6a00;
}

body .x-download-box-button.aliyun:hover {
    background-color: #ff7f20;
}

body .x-download-box-button.weiyun {
    background-color: #2ab9e7;
}

body .x-download-box-button.weiyun:hover {
    background-color: #40c7f4;
}

body .x-download-box-button.lanzou {
    background-color: #4aca85;
}

body .x-download-box-button.lanzou:hover {
    background-color: #5fdc98;
}

body .x-download-box-button.tianyi {
    background-color: #f97d1d;
}

body .x-download-box-button.tianyi:hover {
    background-color: #ff8e36;
}

body .x-download-box-button.onedrive {
    background-color: #0078d4;
}

body .x-download-box-button.onedrive:hover {
    background-color: #0a86e8;
}

body .x-download-box-button.google {
    background-color: #4285f4;
}

body .x-download-box-button.google:hover {
    background-color: #5a96ff;
}

body .x-download-box-button.dropbox {
    background-color: #0061ff;
}

body .x-download-box-button.dropbox:hover {
    background-color: #1c74ff;
}

body .x-download-box-button.other {
    background-color: #7f8c8d;
}

body .x-download-box-button.other:hover {
    background-color: #95a5a6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body .x-download-box-links {
        flex-direction: column;
    }
    
    body .x-download-box-button {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
}

/* 添加额外的选择器特异性以覆盖主题样式 */
html body .x-button,
html body .x-button:hover,
html body .x-button:active,
html body .x-button:focus {
    text-decoration: none !important;
}

html body .x-button-blue,
html body .x-button-green,
html body .x-button-red,
html body .x-button-yellow,
html body .x-button-black {
    color: #fff !important;
}

html body .x-button-blue:hover,
html body .x-button-green:hover,
html body .x-button-red:hover,
html body .x-button-yellow:hover,
html body .x-button-black:hover {
    color: #fff !important;
}

/* 模态框触发按钮增强 */
html body .x-modal-trigger {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html body .x-modal-trigger:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

html body .x-modal-trigger:focus:not(:active):after {
    animation: ripple 1.2s ease-out;
}

html body .x-modal-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

html body .x-modal-trigger:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 模态框打开时的页面效果 */
body.x-modal-open {
    overflow: hidden;
}

body.x-modal-open .x-modal {
    animation: modalFadeIn 0.3s forwards;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

/* 高亮文字样式 */
body .x-highlight {
    padding: 2px 5px;
    display: inline;
    line-height: 1.5;
    position: relative;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* 不同颜色的高亮 */
body .x-highlight-yellow {
    background: #fef9a7;
    color: #644d00;
    box-shadow: 0 0 0 0.1em #fef9a7;
}

body .x-highlight-green {
    background: #d5f5e3;
    color: #1d7a46;
    box-shadow: 0 0 0 0.1em #d5f5e3;
}

body .x-highlight-blue {
    background: #d4e6f1;
    color: #1a5276;
    box-shadow: 0 0 0 0.1em #d4e6f1;
}

body .x-highlight-red {
    background: #f9d7d7;
    color: #943126;
    box-shadow: 0 0 0 0.1em #f9d7d7;
}

body .x-highlight-pink {
    background: #fcdfef;
    color: #ad4090;
    box-shadow: 0 0 0 0.1em #fcdfef;
}

body .x-highlight-purple {
    background: #e8daef;
    color: #6c3483;
    box-shadow: 0 0 0 0.1em #e8daef;
}

body .x-highlight-orange {
    background: #fce3cf;
    color: #b9611f;
    box-shadow: 0 0 0 0.1em #fce3cf;
}

body .x-highlight-gray {
    background: #eaecee;
    color: #424949;
    box-shadow: 0 0 0 0.1em #eaecee;
}

/* 圆角高亮样式 */
body .x-highlight-rounded {
    border-radius: 3px;
    box-shadow: none;
    padding: 2px 6px;
}

/* Emoji表情样式 */
body .x-emoji {
    display: inline-block;
    vertical-align: middle;
    font-style: normal !important;
    line-height: 1.1;
    transition: transform 0.2s ease;
}

body .x-emoji:hover {
    transform: scale(1.2);
}

/* Emoji大小 */
body .x-emoji-small {
    font-size: 1em;
}

body .x-emoji-normal {
    font-size: 1.5em;
}

body .x-emoji-large {
    font-size: 2em;
}

/* 倒计时样式 */
body .x-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    font-family: inherit;
}

body .x-countdown-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

body .x-countdown-blocks {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

body .x-countdown-blocks .x-countdown-item {
    margin: 0 10px 10px;
    text-align: center;
    min-width: 80px;
}

body .x-countdown-blocks .x-countdown-days,
body .x-countdown-blocks .x-countdown-hours,
body .x-countdown-blocks .x-countdown-minutes,
body .x-countdown-blocks .x-countdown-seconds {
    background-color: #4a90e2;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    padding: 15px 5px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.2);
    min-width: 70px;
    display: block;
    margin-bottom: 5px;
    line-height: 1.2;
}

body .x-countdown-blocks .x-countdown-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
}

/* 新增过期文本样式 */
body .x-countdown-blocks .x-countdown-expired {
    background-color: #e74c3c;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2);
    min-width: 180px;
    text-align: center;
    line-height: 1.4;
    margin: 10px 0;
    animation: fadeInPulse 0.5s ease-in-out;
}

/* 简单样式倒计时 */
body .x-countdown-simple .x-countdown-simple-display {
    font-size: 24px;
    font-weight: 600;
    background-color: #f5f7fa;
    padding: 15px 25px;
    border-radius: 6px;
    border: 1px solid #ebeef5;
    color: #444;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.4;
}

/* 内联样式倒计时 */
body .x-countdown-inline .x-countdown-inline-display {
    font-size: 18px;
    font-weight: 600;
    color: #4a90e2;
    line-height: 1.4;
}

/* 添加一个显示过期文本的淡入脉动动画 */
@keyframes fadeInPulse {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    body .x-countdown-blocks .x-countdown-days,
    body .x-countdown-blocks .x-countdown-hours,
    body .x-countdown-blocks .x-countdown-minutes,
    body .x-countdown-blocks .x-countdown-seconds {
        font-size: 22px;
        padding: 10px 5px;
        min-width: 50px;
    }
    
    body .x-countdown-blocks .x-countdown-item {
        margin: 0 5px 10px;
        min-width: 60px;
    }
    
    body .x-countdown-simple .x-countdown-simple-display {
        font-size: 18px;
        padding: 10px 15px;
    }
    
    /* 移动设备中过期文本的样式 */
    body .x-countdown-blocks .x-countdown-expired {
        font-size: 16px;
        padding: 12px 20px;
        min-width: 150px;
    }
}

/* 内容切换器样式 */
body .x-toggle {
    margin: 15px 0;
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

body .x-toggle-title {
    padding: 12px 15px;
    background-color: #f7f7f7;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    transition: background-color 0.3s ease;
    color: #333;
    user-select: none;
}

body .x-toggle-title:hover {
    background-color: #f0f0f0;
}

body .x-toggle-title.active {
    background-color: #edf7ff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

body .x-toggle-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    position: relative;
}

body .x-toggle-icon:before,
body .x-toggle-icon:after {
    content: '';
    position: absolute;
    background-color: #666;
    transition: transform 0.3s ease;
}

body .x-toggle-icon:before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

body .x-toggle-icon:after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

body .x-toggle-title.active .x-toggle-icon:after {
    transform: rotate(90deg);
    opacity: 0;
}

body .x-toggle-content {
    padding: 15px;
    background-color: #fff;
    overflow: hidden;
}

/* 切换器颜色变体 */
body .x-toggle-blue .x-toggle-title.active {
    background-color: #edf7ff;
    color: #3498db;
}

body .x-toggle-green .x-toggle-title.active {
    background-color: #edf7ed;
    color: #2ecc71;
}

body .x-toggle-red .x-toggle-title.active {
    background-color: #fdeded;
    color: #e74c3c;
}

body .x-toggle-yellow .x-toggle-title.active {
    background-color: #fffded;
    color: #f39c12;
}

body .x-toggle-purple .x-toggle-title.active {
    background-color: #f5edfd;
    color: #9b59b6;
}

body .x-toggle-gray .x-toggle-title.active {
    background-color: #f7f7f7;
    color: #555;
}

/* 响应式表格样式 */
body .x-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

body .x-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    color: #333;
    margin: 20px 0;
}

body .x-table th,
body .x-table td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: top;
}

body .x-table th {
    background-color: #f7f7f7;
    font-weight: 600;
    text-transform: none;
    color: #333;
    border-bottom: 2px solid #e1e1e1;
}

body .x-table-bordered {
    border: 1px solid #e1e1e1;
}

body .x-table-bordered th,
body .x-table-bordered td {
    border: 1px solid #e1e1e1;
}

body .x-table-striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

body .x-table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

/* 响应式表格移动设备样式 */
@media (max-width: 768px) {
    body .x-table-responsive .x-table {
        border: 0;
    }
    
    body .x-table-responsive .x-table thead {
        display: none;
    }
    
    body .x-table-responsive .x-table tr {
    display: block;
        margin-bottom: 15px;
        border: 1px solid #e1e1e1;
        border-radius: 5px;
        overflow: hidden;
    }
    
    body .x-table-responsive .x-table td {
        display: block;
    text-align: right;
        font-size: 14px;
        border-bottom: 1px solid #e1e1e1;
        position: relative;
        padding: 10px 15px 10px 35%;
    }
    
    body .x-table-responsive .x-table td:last-child {
        border-bottom: 0;
    }
    
    body .x-table-responsive .x-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 10px;
        width: 30%;
        padding-right: 10px;
        text-align: left;
        font-weight: 600;
        color: #555;
    }
    
    body .x-table-responsive .x-table-striped tbody tr:nth-child(odd) {
        background-color: transparent;
    }
    
    body .x-table-responsive .x-table-striped tbody tr td:nth-child(odd) {
        background-color: #f9f9f9;
    }
}

/* 提示工具样式 */
body .x-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted #666;
    color: inherit;
}

body .x-tooltip:before,
body .x-tooltip:after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

body .x-tooltip:before {
    content: attr(data-tooltip);
    width: auto;
    max-width: 300px;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-10px);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body .x-tooltip:after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

/* 自定义宽度处理 - 不再使用attr，因为它不支持单位转换 */
body .x-tooltip[data-width]:before {
    width: 300px; /* 默认宽度作为回退方案 */
    max-width: 300px;
    width: var(--tooltip-width, 300px);
    max-width: var(--tooltip-width, 300px);
}

/* 黑色主题 */
body .x-tooltip-dark:before {
    background-color: #333;
    color: #fff;
}

/* 浅色主题 */
body .x-tooltip-light:before {
    background-color: #fff;
    color: #333;
    border: 1px solid #e1e1e1;
}

/* 顶部位置 */
body .x-tooltip[data-position="top"]:before {
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

body .x-tooltip[data-position="top"]:after {
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
}

body .x-tooltip-dark[data-position="top"]:after {
    border-color: #333 transparent transparent transparent;
}

body .x-tooltip-light[data-position="top"]:after {
    border-color: #e1e1e1 transparent transparent transparent;
}

/* 右侧位置 */
body .x-tooltip[data-position="right"]:before {
    top: 50%;
    left: calc(100% + 10px);
    transform: translateY(-50%) translateX(-10px);
}

body .x-tooltip[data-position="right"]:after {
    top: 50%;
    left: calc(100% + 4px);
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
}

body .x-tooltip-dark[data-position="right"]:after {
    border-color: transparent #333 transparent transparent;
}

body .x-tooltip-light[data-position="right"]:after {
    border-color: transparent #e1e1e1 transparent transparent;
}

/* 底部位置 */
body .x-tooltip[data-position="bottom"]:before {
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
}

body .x-tooltip[data-position="bottom"]:after {
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
}

body .x-tooltip-dark[data-position="bottom"]:after {
    border-color: transparent transparent #333 transparent;
}

body .x-tooltip-light[data-position="bottom"]:after {
    border-color: transparent transparent #e1e1e1 transparent;
}

/* 左侧位置 */
body .x-tooltip[data-position="left"]:before {
    top: 50%;
    right: calc(100% + 10px);
    transform: translateY(-50%) translateX(10px);
}

body .x-tooltip[data-position="left"]:after {
    top: 50%;
    right: calc(100% + 4px);
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
}

body .x-tooltip-dark[data-position="left"]:after {
    border-color: transparent transparent transparent #333;
}

body .x-tooltip-light[data-position="left"]:after {
    border-color: transparent transparent transparent #e1e1e1;
}

/* 悬停状态 */
body .x-tooltip:hover:before,
body .x-tooltip:hover:after {
    opacity: 1;
    visibility: visible;
}

body .x-tooltip[data-position="top"]:hover:before {
    transform: translateX(-50%) translateY(0);
}

body .x-tooltip[data-position="right"]:hover:before {
    transform: translateY(-50%) translateX(0);
}

body .x-tooltip[data-position="bottom"]:hover:before {
    transform: translateX(-50%) translateY(0);
}

body .x-tooltip[data-position="left"]:hover:before {
    transform: translateY(-50%) translateX(0);
}

/* 分享可见样式 */
body .x-share-required {
    background-color: #fffef4;
    border: 1px solid #ffe285;
    border-radius: 6px;
    padding: 15px 12px;
    margin: 15px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body .x-share-required:before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><linearGradient id="share-grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23ff9d4d" /><stop offset="100%" stop-color="%23ff7e00" /></linearGradient></defs><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z" fill="url(%23share-grad)" stroke="%23ff7e00" stroke-width="0.5" /></svg>');
    background-size: contain;
    position: absolute;
    top: -5px;
    right: -5px;
    opacity: 0.15;
    transform: rotate(10deg);
    z-index: 0;
    transition: all 0.3s ease;
}

body .x-share-required:hover:before {
    transform: rotate(0) scale(1.05);
    opacity: 0.25;
}

body .x-share-required p {
    margin: 0 0 12px 0 !important;
    color: #664d03;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* 分享按钮容器 */
body .x-share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

/* 分享按钮样式 */
body .x-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body .x-share-button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

body .x-share-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 平台特定样式 */
body .x-share-weibo {
    background-color: #e6162d;
}
body .x-share-weibo .x-share-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.9,15c0,4.9-5.6,8.9-12.5,8.9S-4.1,19.9-4.1,15c0-4.9,5.6-8.9,12.5-8.9C15.3,6.1,20.9,10.1,20.9,15z M9.1,0c2.2,0,4,1.8,4,4v3.5c6.2,0.9,10.9,4.5,10.9,8.8c0,5-5.9,9-13.2,9S-2.4,21.3-2.4,16.3c0-3.5,3.1-6.5,7.5-8c-0.1-0.3-0.1-0.7-0.1-1V4C5,1.8,6.8,0,9.1,0z" fill="%23fff"/></svg>');
}

body .x-share-wechat {
    background-color: #09bb07;
}
body .x-share-wechat .x-share-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4.2,10c0-4.5,4.6-8.1,10.3-8.1S24.8,5.5,24.8,10c0,4.5-4.6,8.1-10.3,8.1c-1.2,0-2.3-0.2-3.4-0.5l-3.1,1.7c-0.2,0.1-0.4,0-0.5-0.2c0-0.1,0-0.1,0-0.2l0.8-2.4C5.5,15.3,4.2,12.8,4.2,10z" fill="%23fff"/></svg>');
}

body .x-share-qq {
    background-color: #12b7f5;
}
body .x-share-qq .x-share-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,2c5.5,0,10,4.5,10,10s-4.5,10-10,10S2,17.5,2,12S6.5,2,12,2z M16.5,13.3c0.4-0.8,0.5-1.7,0.3-2.6c-0.2-0.9-0.7-1.6-1.4-2.2c-0.7-0.6-1.6-0.9-2.5-0.9c-0.9,0-1.8,0.3-2.5,0.9c-0.7,0.6-1.2,1.3-1.4,2.2c-0.2,0.9-0.1,1.8,0.3,2.6c0.4,0.8,1.1,1.4,1.9,1.8c0.8,0.4,1.7,0.5,2.6,0.3c0.9-0.2,1.6-0.7,2.2-1.4C16.1,14.1,16.4,13.7,16.5,13.3z" fill="%23fff"/></svg>');
}

body .x-share-qzone {
    background-color: #ffce00;
    color: #333;
}
body .x-share-qzone .x-share-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.8,14.2c-0.2-0.2-0.5-0.2-0.7,0l-4.5,4.5c-0.2,0.2-0.2,0.5,0,0.7l4.5,4.5c0.2,0.2,0.5,0.2,0.7,0l4.5-4.5c0.2-0.2,0.2-0.5,0-0.7L20.8,14.2z M12,2c5.5,0,10,4.5,10,10s-4.5,10-10,10S2,17.5,2,12S6.5,2,12,2z M15.9,8.2c0.2-0.2,0.5-0.2,0.7,0l3.6,3.6c0.2,0.2,0.2,0.5,0,0.7l-3.6,3.6c-0.2,0.2-0.5,0.2-0.7,0l-3.6-3.6c-0.2-0.2-0.2-0.5,0-0.7L15.9,8.2z" fill="%23333"/></svg>');
}

body .x-share-twitter {
    background-color: #1da1f2;
}
body .x-share-twitter .x-share-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22.5,6c-0.8,0.3-1.6,0.6-2.5,0.7c0.9-0.5,1.6-1.4,1.9-2.4c-0.8,0.5-1.8,0.9-2.7,1.1c-0.8-0.8-1.9-1.3-3.1-1.3c-2.3,0-4.2,1.9-4.2,4.2c0,0.3,0,0.6,0.1,0.9C8.3,8.8,5.1,7.1,3,4.6C2.6,5.3,2.4,6,2.4,6.8c0,1.5,0.7,2.8,1.8,3.5c-0.7,0-1.3-0.2-1.9-0.5v0.1c0,2,1.4,3.7,3.3,4.1c-0.3,0.1-0.7,0.1-1.1,0.1c-0.3,0-0.5,0-0.8-0.1c0.5,1.7,2.1,2.9,3.9,2.9c-1.4,1.1-3.2,1.8-5.1,1.8c-0.3,0-0.7,0-1-0.1c1.9,1.2,4.1,1.9,6.4,1.9c7.7,0,11.9-6.4,11.9-11.9c0-0.2,0-0.4,0-0.5C21.1,7.6,21.9,6.9,22.5,6z" fill="%23fff"/></svg>');
}

body .x-share-facebook {
    background-color: #4267b2;
}
body .x-share-facebook .x-share-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.9,2H3.1C2.5,2,2,2.5,2,3.1v17.8c0,0.6,0.5,1.1,1.1,1.1h9.6v-7.8h-2.6v-3h2.6V9.4c0-2.6,1.6-4,3.9-4c1.1,0,2.1,0.1,2.3,0.1v2.7h-1.6c-1.3,0-1.5,0.6-1.5,1.5v1.9h3l-0.4,3h-2.6V22h5.1c0.6,0,1.1-0.5,1.1-1.1V3.1C22,2.5,21.5,2,20.9,2z" fill="%23fff"/></svg>');
}

/* 微信二维码弹窗 */
body .x-wechat-qrcode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

body .x-wechat-qrcode-inner {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 260px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

body .x-wechat-qrcode h3 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #333;
}

body .x-wechat-qrcode-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .x-wechat-qrcode-tip {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

body .x-wechat-qrcode-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
}

body .x-wechat-qrcode-close:hover {
    background-color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transform: rotate(90deg);
}

/* 分享成功后内容样式 */
body .x-share-content {
    animation: x-fade-in 0.5s ease-in-out;
    background-color: #f2fbf6;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #d5f2e3;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

body .x-share-content:before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><linearGradient id="green-grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%234fd675" /><stop offset="100%" stop-color="%2325b350" /></linearGradient></defs><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z" fill="url(%23green-grad)" stroke="%2325b350" stroke-width="0.5" /></svg>');
    background-size: contain;
    position: absolute;
    top: -5px;
    right: -5px;
    opacity: 0.15;
    transform: rotate(10deg);
    z-index: 0;
    transition: all 0.3s ease;
} 

/* 分享确认按钮 */
body .x-share-confirm {
    display: inline-block;
    background-color: #25b350;
    color: #fff !important;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(37, 179, 80, 0.3);
    margin-top: 5px;
}

body .x-share-confirm:hover {
    background-color: #1e9542;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 179, 80, 0.4);
    text-decoration: none;
}

body .x-share-confirm:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(37, 179, 80, 0.2);
}

body .x-share-status {
    margin: 0 0 12px 0 !important;
    color: #664d03;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

/* 微信分享完成按钮 */
body .x-wechat-qrcode-confirm {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

body .x-wechat-done {
    color: #25b350;
    font-weight: 500;
    text-decoration: none;
}

body .x-wechat-done:hover {
    text-decoration: underline;
}

/* 分享步骤动画 */
body .x-share-step {
    transition: all 0.3s ease-in-out;
    width: 100%;
}

body .x-share-step.fadeOutUp {
    opacity: 0;
    transform: translateY(-20px);
}

body .x-share-step.fadeInUp {
    animation: x-fadeInUp 0.5s ease forwards;
}

@keyframes x-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 等级可见样式 */
body .x-role-required {
    background-color: #fffef4;
    border: 1px solid #ffe285;
    border-radius: 6px;
    padding: 15px 12px;
    margin: 15px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body .x-role-required:before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><linearGradient id="share-grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23ff9d4d" /><stop offset="100%" stop-color="%23ff7e00" /></linearGradient></defs><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z" fill="url(%23share-grad)" stroke="%23ff7e00" stroke-width="0.5"/></svg>');
    background-size: contain;
    position: absolute;
    top: -5px;
    right: -5px;
    opacity: 0.15;
    transform: rotate(10deg);
    z-index: 0;
    transition: all 0.3s ease;
}

body .x-role-required:hover:before {
    transform: rotate(0) scale(1.05);
    opacity: 0.25;
}

body .x-role-required p {
    margin: 0 0 12px 0 !important;
    color: #664d03;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

body .x-role-required a {
    color: #ff7e00;
    text-decoration: none;
    font-weight: 600;
}

body .x-role-required a:hover {
    text-decoration: underline;
}

body .x-role-content {
    animation: x-fade-in 0.5s ease-in-out;
    background-color: #f2fbf6;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #d5f2e3;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

body .x-role-content:before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><linearGradient id="green-grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%234fd675" /><stop offset="100%" stop-color="%2325b350" /></linearGradient></defs><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z" fill="url(%23green-grad)" stroke="%2325b350" stroke-width="0.5"/></svg>');
    background-size: contain;
    position: absolute;
    top: -5px;
    right: -5px;
    opacity: 0.15;
    transform: rotate(10deg);
    z-index: 0;
    transition: all 0.3s ease;
}

/* 动画特效 */
@keyframes modalFadeIn {
    to {opacity: 1; transform: scale(1);}
    from {opacity: 0; transform: scale(0.95);}
}

body .x-highlight {
    padding: 2px 4px;
    margin: 0 2px;
    border-radius: 4px;
    display: inline-block;
}

body .x-share-step.fadeInUp {
    animation: x-fadeInUp 0.4s forwards;
}

@keyframes x-fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
