/* 通用样式重置 */
.wm-alert,
.wm-box,
.wm-fieldset,
.wm-btn,
.wm-tabs-wrapper,
.wm-accordion,
.wm-expandable,
.wm-embed-card {
    box-sizing: border-box;
    margin: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* 一、提示框样式 */
.wm-alert {
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    position: relative;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wm-alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.wm-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.wm-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.wm-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* 二、文本框样式 */
.wm-fieldset {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: #f9f9f9;
    position: relative;
}

.wm-fieldset-title {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #fff;
    padding: 0 15px;
    font-weight: bold;
    color: #555;
    font-size: 16px;
}

.wm-fieldset-content {
    margin-top: 10px;
    color: #333;
}

/* 虚线文本框 */
.wm-box {
    padding: 20px;
    border-radius: 6px;
    margin: 15px 0;
    background: #fff;
    position: relative;
}

.wm-box-dashed {
    border: 2px dashed #ccc;
    background: #fafafa;
}

.wm-box-red-border {
    border: 2px solid #f5c6cb;
    background: #f8d7da;
    color: #721c24;
}

.wm-box-yellow-border {
    border: 2px solid #ffeeba;
    background: #fff3cd;
    color: #856404;
}

.wm-box-blue-border {
    border: 2px solid #bee5eb;
    background: #d1ecf1;
    color: #0c5460;
}

.wm-box-green-border {
    border: 2px solid #c3e6cb;
    background: #d4edda;
    color: #155724;
}

/* 三、按钮样式 */
.wm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.wm-action-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-width: 120px;
}

.wm-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.wm-btn-large {
    padding: 16px 32px;
    font-size: 16px;
    min-width: 160px;
}

.wm-btn-align-left {
    margin-right: auto;
}

.wm-btn-align-center {
    margin-left: auto;
    margin-right: auto;
}

.wm-btn-align-right {
    margin-left: auto;
}

/* Steam按钮样式 */
.wm-steam-button {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: white;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
}

.wm-icon-cart {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1.003 1.003 0 0020 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"/></svg>') no-repeat center;
    background-size: contain;
}

.wm-steam-badge {
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wm-icon-steam {
    width: 14px;
    height: 14px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M11.979 0C5.678 0 .511 4.86.022 11.037l6.432 2.658c.545-.371 1.203-.59 1.912-.59.063 0 .125.004.188.006l2.861-4.142V8.91c0-2.495 2.028-4.524 4.524-4.524 2.494 0 4.524 2.029 4.524 4.524s-2.03 4.524-4.524 4.524c-1.242 0-2.368-.506-3.184-1.323l-4.522 2.647c.04.543.224 1.04.5 1.464l5.443-2.788c.013.082.042.164.042.252 0 1.04-.846 1.884-1.884 1.884-.433 0-.834-.148-1.153-.394l-5.553 2.843c.938 1.357 2.479 2.279 4.229 2.279 2.762 0 5-2.239 5-5 0-.268-.023-.532-.062-.792l4.598-2.953c1.332.706 2.3 2.069 2.3 3.646 0 2.294-1.86 4.154-4.154 4.154-1.807 0-3.354-1.155-3.937-2.77l-4.497 2.8c-.24.06-.488.097-.741.097-2.74 0-4.962-2.221-4.962-4.961 0-.236.017-.469.049-.698L1.856 10.6C3.076 16.447 8.064 21 14 21c7.732 0 14-6.268 14-14S21.732 0 14 0h-2.021zM7 13c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2z"/></svg>') no-repeat center;
    background-size: contain;
}

/* Git按钮样式 */
.wm-git-button {
    background: linear-gradient(135deg, #24292e 0%, #444d56 100%);
    color: white;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
}

.wm-icon-git {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>') no-repeat center;
    background-size: contain;
}

/* 微信公众号保护内容样式 */
.wm-wechat-protected {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px dashed #36c;
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.wm-wechat-notice {
    background: #fff;
    border-left: 4px solid #f56c6c;
    padding: 12px 20px;
    margin-bottom: 20px;
    text-align: left;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f56c6c;
    font-weight: 600;
}

.wm-icon-warning {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f56c6c"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>') no-repeat center;
    background-size: contain;
}

.wm-password-form {
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wm-input {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.wm-input:focus {
    outline: none;
    border-color: #36c;
    box-shadow: 0 0 0 3px rgba(51, 102, 204, 0.1);
}

.wm-button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.wm-btn-submit {
    background: linear-gradient(135deg, #36c 0%, #6b9 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
}

.wm-btn-link {
    background: transparent;
    color: #36c;
    border: 2px solid #36c;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.wm-arrow {
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2336c"><path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/></svg>') no-repeat center;
    background-size: contain;
}

.wm-wechat-instruction {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    font-size: 14px;
    color: #666;
}

.wm-wechat-name {
    color: #36c;
    font-weight: bold;
}

.wm-keyword {
    background: #ffeb3b;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    color: #333;
}

.wm-protected-content {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.wm-icon-lock {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><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"/></svg>') no-repeat center;
    background-size: contain;
}

/* 四、内容隐藏样式 */
.wm-hidden-notice {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px solid #fc8181;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: #c53030;
    font-weight: 600;
}

.wm-hidden-notice a {
    color: #3182ce;
    text-decoration: none;
    border-bottom: 2px dotted #3182ce;
    transition: all 0.3s;
}

.wm-hidden-notice a:hover {
    color: #2c5282;
    border-bottom-style: solid;
}

.wm-revealed-content {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border: 2px solid #9ae6b4;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.wm-revealed-content::before {
    content: "已解锁";
    position: absolute;
    top: 5px;
    right: 5px;
    background: #38a169;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
}

