* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: #f5f5f5;
    line-height: 1.5;
}

.wm-container {
    padding: 40px 20px 120px;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}

/* 输入框 */
.wm-input-area {
    margin-top: 28px;
    margin-bottom: 30px;
    position: relative;
}

.wm-textarea {
    width: 100%;
    padding: 20px 24px;
    border-radius: 20px;
    background: #fff;
    font-size: 16px;
    border: 1px solid #eee;
    min-height: 140px;
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: border 0.2s;
}

.wm-textarea:focus {
    border-color: #066f15d4;
}

::placeholder {
    color: #999;
    font-size: 15px;
}

/* 按钮组 */
.wm-type-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.wm-selector-item {
    flex: 1;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    font-size: 17px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.wm-selector-item:hover {
    background: #f8f8f8;
    transform: scale(0.98);
}

.wm-selector-item.active {
    background: #066f15d4;
    color: #fff;
    border-color: #066f15d4;
}

/* 教程按钮 */
.wm-tutorial-btn-box {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.wm-tutorial-btn {
    font-size: 16px;
    padding: 8px 16px;
    background: #8eb995d4;
    color: #fff;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.wm-tutorial-btn:hover {
    background: #066f15d4;
}

/* 结果区域 */
.wm-result-area {
    margin-top: 20px;
}

.wm-result-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* 图片列表 */
.wm-image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.wm-image-item {
    width: calc(50% - 8px);
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wm-preview-img {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 14px;
    cursor: pointer;
}

.wm-save-btn {
    width: 100%;
    height: 44px;
    line-height: 44px;
    background: #8eb995d4;
    color: #222;
    border-radius: 22px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.wm-save-btn:hover {
    background: #066f15d4;
    color: #fff;
}

/* 视频 Tab */
.wm-video-tab-nav {
    display: flex;
    background: #fff;
    border-radius: 18px;
    margin-bottom: 18px;
    border: 1px solid #eee;
}

.wm-tab-item {
    flex: 1;
    height: 54px;
    line-height: 54px;
    text-align: center;
    font-size: 16px;
    position: relative;
    cursor: pointer;
}

.wm-tab-item.active {
    font-weight: 600;
}

.wm-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

.wm-video-tab-content {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.wm-content-box {
    margin-bottom: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.wm-content-text {
    font-size: 16px;
    color: #333;
    line-height: 1.7;
    word-break: break-all;
}

.wm-copy-btn {
    width: 100%;
    height: 50px;
    line-height: 50px;
    background: #333;
    color: #fff;
    border-radius: 25px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.wm-copy-btn:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

/* 封面图 */
.wm-cover-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wm-cover-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
    cursor: pointer;
}

.wm-cover-save-btn {
    width: 60% !important;
}

/* 教程页面样式 */
.wm-title-area {
    margin-bottom: 40px;
}

.wm-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.wm-sub-title {
    font-size: 17px;
    color: #666;
}

.wm-step-item {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wm-step-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.wm-step-num {
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #e43737;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    margin-right: 12px;
}

.wm-step-text {
    font-size: 19px;
    font-weight: 500;
    color: #222;
}

.wm-step-image {
    width: 100%;
    border-radius: 12px;
}

.wm-tip-box {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    margin-top: 16px;
    border: 1px solid #eee;
}

.wm-tip-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
}

.wm-tip-content {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}


/* 新增视频播放与下载样式 */
.wm-video-player-box {
    width: 100%;
    background: #fcfcfc;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.wm-video-btn-group .wm-copy-btn {
    height: 46px;
    line-height: 46px;
    font-size: 15px;
    border-radius: 23px;
}
.wm-video-btn-group .wm-download-btn:hover {
    opacity: 0.9;
}

/* 顶部工具栏 */

.wm-topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:10px;
    flex-wrap:wrap;
}

/* 返回按钮 */
.wm-back-btn{
    height:42px;
    padding:0 18px;
    border-radius:21px;
    background:#fff;
    border:1px solid #eee;
    color:#333;
    font-size:16px;
    display:flex;
    align-items:center;
    transition:.2s;
    text-decoration:none;
}
.wm-back-btn:hover{
    background:#f8f8f8;
    border-color:#ddd;
}

/* 授权码 */
.wm-auth-input{
    width:100%;
    height:44px;
    border:none;
    outline:none;
    background:#fff;
    border-radius:22px;
    padding:0 18px;
    border:1px solid #eee;
    font-size:14px;
    transition:.2s;
}
.wm-auth-input:focus{
    border-color:#066f15d4;
    box-shadow:0 0 0 4px rgba(6,111,21,.08);
}

/* 教程按钮 */
.wm-tutorial-btn{
    height:42px;
    padding:0 18px;
    border:none;
    border-radius:21px;
    background:#066f15d4;
    color:#fff;
    font-size:16px;
    cursor:pointer;
    transition:.2s;
}
.wm-tutorial-btn:hover{
    opacity:.92;
}

/* 顶部区域 */
.wm-header-area{
    margin-bottom: 10px;
}
.wm-topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}

/* 授权码区域 */
.wm-auth-wrapper{
    width:100%;
}
.wm-auth-label{
    font-size:14px;
    color:#666;
    margin-bottom:10px;
    padding-left:4px;
}
.wm-auth-input{
    width:100%;
    height:48px;
    border:none;
    outline:none;
    background:#fff;
    border-radius:16px;
    padding:0 18px;
    border:1px solid #eee;
    font-size:14px;
    transition:.2s;
}
.wm-auth-input:focus{
    border-color:#066f15d4;
    box-shadow:0 0 0 4px rgba(6,111,21,.08);
}

/* 移动端 */
@media (max-width:640px){
    .wm-topbar{
        flex-direction:column;
        align-items:stretch;
        gap:12px;
    }
    .wm-back-btn,
    .wm-tutorial-btn{
        width:100%;
        justify-content:center;
        flex:1;
    }
}

/* ====================== 交流群二维码样式 ====================== */
.qrcode-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.qrcode-trigger {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #066f15d4;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    text-align: center;
    line-height: 1.2;
    padding: 4px;
}
.qrcode-trigger:hover {
    transform: scale(1.05);
}
.qrcode-popup {
    width: 200px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    text-align: center;
    position: relative;
    display: none;
    animation: fadeIn 0.2s ease;
}
.qrcode-popup.show {
    display: block;
}
.qrcode-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    width: 24px;
    height: 24px;
    line-height: 24px;
}
.qrcode-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}
.qrcode-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
}
.qrcode-tip {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
    .qrcode-float {
        right: 12px;
        bottom: 12px;
    }
    .qrcode-trigger {
        width: 44px;
        height: 44px;
        font-size: 11px;
    }
    .qrcode-popup {
        width: 170px;
    }
    .qrcode-image {
        width: 140px;
        height: 140px;
    }
}