* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vh: 1vh;
}
        
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%), 
                url('https://picsum.photos/1920/1080?random=f1');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    padding: 30px 20px;
    color: #1d1d1f;
    line-height: 1.47;
    font-weight: 400;
    /* 移动端优化 */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* 改善滚动性能 */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
        
/* 允许文本选择 */
input, textarea, .output-area {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
        
/* 移动端select字体强制优化 */
@media (max-width: 768px) {
    select, select option {
        font-size: 18px !important;
        font-weight: 500 !important;
    }
            
    select {
        min-height: 48px !important;
        padding: 15px 40px 15px 15px !important;
    }
            
    select option {
        padding: 15px !important;
        min-height: 50px !important;
        line-height: 1.5 !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    color: #1d1d1f;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    animation: headerFloat 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes headerFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5px, -5px) rotate(0.5deg); }
    66% { transform: translate(-3px, 3px) rotate(-0.5deg); }
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.header p {
    font-size: 1.3rem;
    color: #86868b;
    font-weight: 400;
}

.tab-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px 20px 20px 20px; /* PC端：顶部圆角，底部直角 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

/* iOS 26 水滴毛玻璃效果（容器级） */
.tab-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: dropletFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes dropletFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(1deg); }
    50% { transform: translate(-5px, 5px) rotate(-1deg); }
    75% { transform: translate(5px, -5px) rotate(0.5deg); }
}

.tab-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.tab-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

/* 统一使用下拉选择器（PC端和移动端） */
.mobile-tab-selector {
    display: none; /* 恢复为仅移动端显示 */
    padding: 20px;
    background: rgba(255, 255, 255, 0.8); /* 与功能区一致的毛玻璃底色 */
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px 16px 0 0;
    box-shadow: none;
    margin-bottom: 0;
}
        
.mobile-tab-selector select {
    width: 100%;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007AFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}
        
.mobile-tab-selector select:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
}
        
.mobile-tab-selector select option {
    font-size: 17px;
    padding: 12px;
    font-weight: 500;
    color: #1d1d1f;
}

.tab-nav {
    display: flex; /* 显示全部tab */
    background: rgba(255, 255, 255, 0.82); /* 与内容区一致，避免色差缝隙 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none; /* 避免与内容区产生分离线 */
    border-radius: 0 !important; /* 强制无圆角 */
    flex-wrap: nowrap; /* 不换行 */
    overflow-x: auto; /* 横向滚动 */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
    position: relative;
    z-index: 2;
    /* 回弹动画支持 */
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    touch-action: pan-x;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-button {
    flex: 0 0 auto; /* 为横向滚动，按钮不拉伸 */
    min-width: 140px;
    padding: 20px 16px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    border-radius: 0 !important; /* 强制无圆角 */
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    transform: none; /* 禁止位移 */
    box-shadow: inset 0 -2px 0 rgba(0,122,255,0.6); /* 使用内部阴影标记悬停，不改变高度 */
}
        
/* 移动端触摸优化 */
.tab-button:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}
        
@media (hover: none) and (pointer: coarse) {
    .tab-button:hover {
        transform: none;
    }
            
    .tab-button:active {
        background: rgba(0, 122, 255, 0.15);
        transform: scale(0.95);
    }
}

.tab-button.active {
    background: rgba(0, 122, 255, 0.12);
    color: #007AFF;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 #007AFF;
    border-radius: 0 !important; /* 强制激活态为直角，避免变圆角 */
}

.tab-button span:first-child {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tab-button:hover span:first-child {
    transform: scale(1.2) rotate(5deg);
}

.tab-content {
    display: none;
    padding: 50px;
    /* 内容区毛玻璃（与其它Tab一致） */
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    margin-top: -1px; /* 物理覆盖1px避免缝隙 */
    z-index: 1;
    overflow: hidden;
}

/* 填补导航与内容之间两侧的圆角空隙 */
.tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
}

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

.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tool-icon {
    font-size: 3rem;
    margin-right: 25px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.tool-description {
    color: #86868b;
    font-size: 1.2rem;
    margin-top: 12px;
    line-height: 1.5;
    font-weight: 400;
}

.input-group {
    margin-bottom: 35px;
}

.input-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: #1d1d1f;
    font-size: 17px;
}

textarea, input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    resize: vertical;
    position: relative;
    color: #1d1d1f;
}

textarea:focus, input[type="text"]:focus, input[type="password"]:focus, select:focus {
    outline: none;
    border-color: #007AFF;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
    transform: translateY(-1px);
}
        
/* 移动端表单优化 */
@media (hover: none) and (pointer: coarse) {
    textarea:focus, input[type="text"]:focus, input[type="password"]:focus, select:focus {
        transform: none;
        box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
    }
            
    textarea:hover, input[type="text"]:hover, input[type="password"]:hover, select:hover {
        transform: none;
        box-shadow: none;
    }
}

textarea:hover, input[type="text"]:hover, input[type="password"]:hover, select:hover {
    border-color: rgba(0, 122, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

textarea {
    min-height: 180px;
}

.button-group {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.btn {
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #007AFF;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
    background: #0056CC;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}
        
/* 移动端按钮触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
            
    .btn:active {
        transform: scale(0.95);
        transition: all 0.1s ease;
    }
            
    .btn-primary:active {
        background: #004BB5;
        transform: scale(0.95);
    }
            
    .btn-secondary:active {
        background: rgba(0, 0, 0, 0.1);
        transform: scale(0.95);
    }
            
    .btn-success:active {
        background: #30D158;
        transform: scale(0.95);
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background: #30D158;
    color: white;
    box-shadow: 0 2px 8px rgba(48, 209, 88, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(48, 209, 88, 0.4);
    background: #28CD41;
}

.btn-success:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.btn span:first-child {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn:hover span:first-child {
    transform: scale(1.1) rotate(5deg);
}

.output-area {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 20px;
    min-height: 150px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    color: #1d1d1f;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 统一的复制提示浮层样式 */
.copy-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}

.output-area::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    animation: outputFloat 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes outputFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(3px, -3px) rotate(0.3deg); }
}

.output-area:hover::before {
    opacity: 1;
}

.output-area:hover {
    border-color: rgba(0, 122, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.output-area:empty::after {
    content: attr(data-placeholder);
    color: #86868b;
    font-style: italic;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* WiFi二维码形状样式 - 微信风格 */
.wifi-qr-square { border-radius: 0; border: 2px solid rgba(0,0,0,0.1);} 
.wifi-qr-rounded { border-radius: 12px; border: 2px solid rgba(0,0,0,0.1);} 
.wifi-qr-rounded-large { border-radius: 20px; border: 2px solid rgba(0,0,0,0.1);} 
.wifi-qr-rounded-small { border-radius: 8px; border: 2px solid rgba(0,0,0,0.1);} 
.wifi-qr-square-thick { border-radius: 0; border: 4px solid rgba(0,0,0,0.2);} 
.wifi-qr-square-thin { border-radius: 0; border: 1px solid rgba(0,0,0,0.1);} 

/* 随机文字形状样式 */
.text-shape-rounded { border-radius: 0 0 16px 16px; width: 100%; height: 40px; display: flex; align-items: center; justify-content: center;}
.text-shape-circle { border-radius: 50%; width: 100%; height: 40px; display: flex; align-items: center; justify-content: center;}
.text-shape-diamond { border-radius: 0; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); width: 100%; height: 40px; display: flex; align-items: center; justify-content: center;}
.text-shape-hexagon { border-radius: 0; clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%); width: 100%; height: 40px; display: flex; align-items: center; justify-content: center;}
.text-shape-star { border-radius: 0; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 100%; height: 40px; display: flex; align-items: center; justify-content: center;}
.text-shape-heart { border-radius: 0; clip-path: polygon(50% 85%, 15% 60%, 15% 35%, 50% 15%, 85% 35%, 85% 60%); width: 100%; height: 40px; display: flex; align-items: center; justify-content: center;}
.text-shape-cloud { border-radius: 0 0 20px 20px; width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; position: relative;}
.text-shape-cloud::before { content: ''; position: absolute; top: -8px; left: 20%; width: 20px; height: 20px; background: inherit; border-radius: 50%;}
.text-shape-cloud::after { content: ''; position: absolute; top: -5px; right: 20%; width: 15px; height: 15px; background: inherit; border-radius: 50%;}

.status {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    display: inline-block;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.status::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.6s ease;}
.status.success { background: rgba(48, 209, 88, 0.1); color: #1d1d1f; border: 1px solid rgba(48, 209, 88, 0.2); box-shadow: 0 2px 8px rgba(48, 209, 88, 0.1);} 
.status.success:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(48, 209, 88, 0.2);} 
.status.error { background: rgba(255, 59, 48, 0.1); color: #1d1d1f; border: 1px solid rgba(255, 59, 48, 0.2); box-shadow: 0 2px 8px rgba(255, 59, 48, 0.1);} 
.status.error:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255, 59, 48, 0.2);} 

/* 移动端优化与横屏等媒体查询已从原文件复制，保持不变 */
@media (max-width: 768px) { /* ... 保留全部原样式（见原文件） ... */ }
@media (max-width: 480px) { /* ... 保留全部原样式（见原文件） ... */ }
@media (max-width: 768px) and (orientation: landscape) { /* ... 保留全部原样式（见原文件） ... */ }


/* ===== 抽离自内联样式的通用类 ===== */
.lang-select-box { position: absolute; top: 20px; right: 20px; }
#languageSelect {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    color: #1d1d1f;
    backdrop-filter: blur(20px);
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23007AFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6,9 12,15 18,9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
    padding-right: 36px;
}

.flex-row { display: flex; gap: 12px; flex-wrap: wrap; }
.align-center { align-items: center; }
.flex-1 { flex: 1; }
.self-center { align-self: center; }
.minw-auto { min-width: auto; }
.minw-180 { min-width: 180px; }
.minw-200 { min-width: 200px; }
.minw-220 { min-width: 220px; }
.minw-280 { min-width: 280px; }
.mt-10 { margin-top: 10px; }
.mt-30 { margin-top: 30px; }
.text-center { text-align: center; }
.hidden { display: none; }
.flex-2 { flex: 2; }

.text-output {
    width: 100%; min-height: 200px; max-height: 600px; padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 12px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; font-size: 15px; line-height: 1.6;
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px); color: #1d1d1f;
    resize: none; overflow-y: auto;
}

/* WiFi QR 区域 */
#wifiQRContainer { text-align: center; }
#wifiQRWrapper { background: white; padding: 20px; border-radius: 16px; display: inline-block; box-shadow: 0 8px 25px rgba(0,0,0,0.1); position: relative; overflow: hidden; }
#wifiQRStylePreview { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); opacity: 0.1; z-index: 1; }
#wifiQRCode { max-width: 300px; max-height: 300px; position: relative; z-index: 2; display: block; }
#wifiQRCustomTextDisplay { width: 300px; padding: 8px 0; font-size: 14px; font-weight: 500; display: none; text-align: center; border-radius: 0 0 16px 16px; margin: -1px auto 0 auto; }
#wifiQRDefaultTip { margin-top: 15px; color: #6c757d; font-size: 14px; }

/* WiFi 兜底模板 */
.qr-fallback { background: white; padding: 20px; border-radius: 16px; display: inline-block; box-shadow: 0 8px 25px rgba(0,0,0,0.1); max-width: 500px; }
.qr-fallback-title { font-size: 16px; font-weight: 600; margin-bottom: 15px; color: #333; }
.qr-fallback-text { background: #f8f9fa; padding: 15px; border-radius: 8px; font-family: monospace; font-size: 14px; word-break: break-all; color: #495057; border: 1px solid #e9ecef; margin-bottom: 15px; }
.qr-fallback-tip { margin-bottom: 15px; color: #6c757d; font-size: 14px; }
.qr-fallback-links { display: flex; gap: 10px; flex-wrap: wrap; }
.qr-fallback-link { padding: 8px 16px; color: white; text-decoration: none; border-radius: 8px; font-size: 14px; }
.qr-link-qrserver { background: #667eea; }
.qr-link-quickchart { background: #28a745; }

