:root {
    --primary: #43a047;
    --primary-dark: #2e7d32;
    --primary-light: #e8f5e9;
    --danger: #e53935;
    --danger-light: #ffebee;
    --warning: #fb8c00;
    --warning-light: #fff3e0;
    --success: #10b981;
    --success-light: #ecfdf5;
    --gray-100: #f8f9fa;
    --gray-200: #e8e8e8;
    --gray-300: #e0e0e0;
    --gray-400: #d8f3e8;
    --gray-500: #999;
    --gray-600: #666;
    --gray-900: #333;
    --white: #fff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", Arial, sans-serif;
}

body {
    background: linear-gradient(180deg, #f0f4f8 0%, #e8ecf0 50%, #f5f7fa 100%);
    background-attachment: fixed;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 16px;
}

.top-nav { display: none !important; }

.jufu-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 16px 18px;
    margin-bottom: 16px;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 24px rgba(67, 160, 71, 0.3);
    overflow: hidden;
    position: relative;
}
.jufu-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.jufu-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.jufu-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.jufu-menu-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.jufu-menu-btn:hover {
    background: rgba(255,255,255,0.2);
}

.jufu-menu-btn span {
    width: 16px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
}

.jufu-banner {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
    text-align: center;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

.jufu-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.jufu-banner-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

.jufu-tips-card {
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
}
.jufu-tips-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.jufu-tips-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #d8f3e8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    flex-shrink: 0;
}

.jufu-tips-avatar::after {
    content: "🔍";
}

.jufu-tips-content { flex: 1; }

.jufu-tips-title {
    font-size: 14px;
    color: var(--gray-900);
    font-weight: 500;
    margin-bottom: 3px;
}

.jufu-tips-desc {
    font-size: 12px;
    color: var(--gray-500);
}

.jufu-tips-arrow {
    color: var(--primary);
    font-size: 18px;
    font-weight: bold;
}

.main-function-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin: 16px 0;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.04);
}

.main-function-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.main-function-header h1 {
    font-size: 22px;
    color: var(--gray-900);
    margin: 0;
    font-weight: 700;
}

.help-count {
    font-size: 13px;
    color: var(--gray-600);
    background: var(--danger-light);
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(229, 57, 53, 0.2);
}

.help-count strong {
    color: var(--danger);
    font-weight: 700;
    font-size: 16px;
}

.unseal-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gray-100), #f0f0f0);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--gray-900);
    cursor: pointer;
    margin-bottom: 18px;
    text-align: center;
    transition: all var(--transition-fast);
    font-weight: 500;
}
.unseal-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tips-text {
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--primary-light), #f1f8e9);
    border-radius: var(--radius-md);
    margin-top: 10px;
    border: 1px solid rgba(67, 160, 71, 0.15);
}

.publish-form-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.publish-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all var(--transition-fast);
    background: var(--white);
}
.publish-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.1);
}
.publish-input::placeholder {
    color: var(--gray-400);
}

.upload-btn {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 20px;
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.upload-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.05);
}

.publish-btn {
    width: 80px;
    padding: 14px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.25);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}
.publish-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.publish-btn:hover::before {
    left: 100%;
}
.publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.35);
}

.agree-text {
    font-size: 12px;
    color: var(--gray-600);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.agree-text input {
    margin-top: 2px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.waimai-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.waimai-box h3 {
    font-size: 16px;
    color: var(--danger);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.waimai-btn-group {
    display: flex;
    gap: 8px;
}

.waimai-btn-group a {
    flex: 1;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    color: var(--gray-900);
    text-decoration: none;
    transition: all 0.2s;
}

.waimai-btn-group a:hover {
    background: var(--primary-light);
    border-color: var(--gray-400);
}

.code-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.04);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
}

.code-header .green {
    color: var(--primary);
    font-weight: 600;
    background: rgba(67, 160, 71, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.code-header .green::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.code-header .tag-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.code-header .tag {
    font-size: 11px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.code-header .time {
    font-size: 12px;
    color: var(--gray-500);
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: 12px;
}

.code-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.code-actions button {
    flex: 1;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition-fast);
}
.code-actions button:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.smart-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.25);
}
.smart-btn:hover {
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.35) !important;
    transform: translateY(-2px) !important;
}

.tips-desc {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 14px;
    line-height: 1.5;
    padding: 10px 12px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.tips-notice {
    font-size: 12px;
    color: var(--warning, #f5a623);
    margin-bottom: 10px;
    line-height: 1.4;
    padding: 8px 12px;
    background: #fff8e6;
    border-radius: 6px;
    border: 1px solid #ffe58f;
}

.code-list-unused, .code-list-used {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.code-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.code-item:last-child { margin-bottom: 0; }

.code-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(67, 160, 71, 0.2);
}
.code-item:hover::before {
    opacity: 1;
}

.code-item.self-published {
    pointer-events: none;
    opacity: 0.8;
    cursor: default;
    background: linear-gradient(145deg, #fff5f5 0%, #fef2f2 100%);
    border-color: rgba(229, 57, 53, 0.15);
}
.code-item.self-published::before {
    background: linear-gradient(180deg, var(--danger), #c53030);
    opacity: 1;
}

.used-card {
    margin-top: 0;
}
.used-header {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--gray-200);
}
.used-header .gray {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}
.code-list-used .code-item {
    opacity: 0.75;
}
.code-list-used .code-item:hover {
    opacity: 1;
}

.empty-tip {
    display: block !important;
    text-align: center;
    padding: 24px 16px !important;
    color: var(--gray-600);
}
.empty-tip p {
    margin: 0;
    font-size: 14px;
}
.empty-tip p:first-child {
    font-weight: 400;
    color: var(--gray-500);
}
.empty-tip .sub-tip {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-top: 8px !important;
}

.code-info {
    flex: 1;
    padding-right: 12px;
    min-width: 0;
}

.code-info h3 {
    font-size: 18px;
    color: var(--gray-900);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.code-info p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.code-info p::before {
    content: '📍';
    font-size: 10px;
}

.self-tip {
    font-size: 11px;
    color: var(--danger);
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--danger-light);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(229, 57, 53, 0.2);
}
.self-tip::before {
    content: '⚠️';
}

.status-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.count-down {
    font-size: 10px;
    color: var(--warning);
    font-weight: 600;
    padding: 4px 8px;
    background: linear-gradient(135deg, var(--warning-light), #fff8e6);
    border-radius: 8px;
    border: 1px solid rgba(251, 140, 0, 0.15);
    min-width: 65px;
    text-align: center;
}

.count-down-label {
    font-size: 10px;
    color: var(--gray-500);
    margin-right: 3px;
    font-weight: 600;
}

.code-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 75px;
    justify-content: center;
}

.status-unused {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.18);
}
.status-unused::before {
    content: "\2713";
    font-size: 11px;
}

.status-used {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6B7280;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.status-used::before {
    content: "\2717";
    font-size: 11px;
}

.use-btn {
    padding: 5px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.use-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(67, 160, 105, 0.2);
}

.use-btn:disabled,
.use-btn.disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    color: var(--white) !important;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    animation: modalBgFadeIn 0.3s ease;
}
@keyframes modalBgFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 90%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    animation: modalShow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
}

@keyframes modalShow {
    from { opacity: 0; transform: translateY(-40px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-desc {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 16px;
    text-align: center;
}

.modal-code-input {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 0;
    padding: 16px 20px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(67,160,71,0.05), rgba(67,160,71,0.1));
    letter-spacing: 4px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: all var(--transition-fast);
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.05), inset 0 1px 2px rgba(0,0,0,0.03);
}
.modal-code-input:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 4px rgba(67, 160, 71, 0.15), 0 8px 24px rgba(67, 160, 71, 0.15);
    transform: translateY(-1px);
}

.modal-content h3 {
    font-size: 22px;
    color: var(--gray-900);
    margin-bottom: 24px;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.modal-content h3::before {
    content: '📷';
    font-size: 24px;
}
.modal-content h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.modal-code {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
    padding: 16px 20px;
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-light), #f0fdf4);
    letter-spacing: 3px;
    position: relative;
}
.modal-code::before {
    content: '🔑';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 0 8px;
    font-size: 16px;
}

.modal-tips {
    font-size: 12px;
    color: var(--warning);
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--warning-light);
    border-radius: var(--radius-md);
    border: 1px solid rgba(251, 140, 0, 0.2);
    line-height: 1.5;
}

.modal-btn {
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    margin: 0 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    min-width: 110px;
}

.btn-copy {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.35);
}
.btn-copy:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(67, 160, 71, 0.45);
}
.btn-copy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-copy:hover::before {
    left: 100%;
}

.btn-close {
    background: var(--white);
    color: var(--gray-600);
    border: 2px solid var(--gray-200);
}
.btn-close:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.unseal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    animation: unsealModalIn 0.3s ease;
}
@keyframes unsealModalIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.unseal-modal-content {
    width: 90%;
    max-width: 460px;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: unsealSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes unsealSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.unseal-modal-header {
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(135deg, var(--danger-light), #fff);
    position: relative;
}
.unseal-modal-header::before {
    content: '⚠️';
    margin-right: 8px;
}

.unseal-modal-body {
    padding: 24px 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-600);
    max-height: 60vh;
    overflow-y: auto;
}

.unseal-modal-body .tips-green {
    background: linear-gradient(135deg, var(--primary-light), #f0fdf4);
    color: var(--primary-dark);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin: 12px 0;
    line-height: 1.8;
    border-left: 4px solid var(--primary);
}

.unseal-modal-body .tips-red {
    color: var(--danger);
    margin: 10px 0;
    padding: 10px 12px;
    background: var(--danger-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--danger);
}

.unseal-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.unseal-modal-footer .close-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.unseal-modal-footer .close-btn:hover {
    background: linear-gradient(135deg, var(--gray-300), var(--gray-400));
    transform: translateY(-1px);
}

.wx-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: wxModalIn 0.3s ease;
}
@keyframes wxModalIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wx-modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 85%;
    max-width: 300px;
    padding: 24px 20px;
    position: relative;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    animation: wxModalZoom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes wxModalZoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.wx-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--gray-500);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wx-close-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
    transform: rotate(90deg);
}

.wx-modal-title {
    font-size: 18px;
    color: var(--gray-900);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.wx-qrcode-img {
    width: 100% !important;
    max-width: 220px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 16px !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    animation: qrFloat 3s ease-in-out infinite;
}
@keyframes qrFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.wx-modal-desc {
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 12px;
}

.wx-confirm-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.red-packet-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(238, 90, 82, 0.3);
    white-space: nowrap;
}
.red-packet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 82, 0.4);
}
.red-packet-btn::before {
    content: '🧧';
    margin-right: 4px;
}

.red-packet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: redPacketModalIn 0.3s ease;
}
@keyframes redPacketModalIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.red-packet-modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 85%;
    max-width: 320px;
    padding: 24px 20px;
    position: relative;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    animation: redPacketModalZoom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes redPacketModalZoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.red-packet-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--gray-500);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.red-packet-close-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
    transform: rotate(90deg);
}

.red-packet-modal-title {
    font-size: 18px;
    color: var(--danger);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(229, 57, 53, 0.15);
}

.red-packet-img {
    width: 100% !important;
    max-width: 240px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 16px !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    animation: redPacketFloat 3s ease-in-out infinite;
}
@keyframes redPacketFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.red-packet-confirm-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(238, 90, 82, 0.3);
}
.red-packet-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 82, 0.4);
}

.wx-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.4);
}

.warm-tip-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(8px);
    animation: warmTipIn 0.3s ease;
}
.warm-tip-mask.fade-out {
    animation: warmTipOut 0.3s ease forwards;
}
@keyframes warmTipIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes warmTipOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.warm-tip-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    width: 88%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    animation: warmTipBoxIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes warmTipBoxIn {
    from { transform: scale(0.8) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.warm-tip-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: iconBounce 0.6s ease;
}
@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.warm-tip-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

.warm-tip-content {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    text-align: left;
}

.warm-tip-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
}
.warm-tip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.4);
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(0,0,0,0.9));
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: 14px;
    display: none;
    z-index: 100000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    animation: toastIn 0.3s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.toast.show {
    display: block;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.code-item {
    animation: fadeInUp 0.4s ease forwards;
}
.code-item:nth-child(1) { animation-delay: 0.05s; }
.code-item:nth-child(2) { animation-delay: 0.1s; }
.code-item:nth-child(3) { animation-delay: 0.15s; }
.code-item:nth-child(4) { animation-delay: 0.2s; }
.code-item:nth-child(5) { animation-delay: 0.25s; }
.code-item:nth-child(6) { animation-delay: 0.3s; }
.code-item:nth-child(7) { animation-delay: 0.35s; }
.code-item:nth-child(8) { animation-delay: 0.4s; }
.code-item:nth-child(9) { animation-delay: 0.45s; }
.code-item:nth-child(10) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wx-qrcode-img {
    animation: float 3s ease-in-out infinite;
}

.publish-btn:hover .btn-text {
    animation: pulse 0.6s ease-in-out;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

.code-status {
    animation: statusPop 0.3s ease;
}
@keyframes statusPop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.tab-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.tab-group span {
    padding: 6px 0;
    font-size: 14px;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-group span.active {
    color: var(--primary);
    font-weight: 500;
    border-bottom: 2px solid var(--primary);
}

#oneKeyBtn {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
}

.func-group {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.func-btn {
    flex: 1;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    color: var(--gray-600);
    transition: all 0.2s;
    position: relative;
}

.func-btn:hover {
    background: var(--primary-light);
    border-color: var(--gray-400);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(67, 160, 105, 0.08);
}

.func-btn.red-dot::after {
    content: "1";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    font-size: 11px;
    text-align: center;
    line-height: 16px;
    margin-left: 4px;
    position: absolute;
    top: -4px;
    right: 20px;
}

.title-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.title-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.title-header h1 {
    font-size: 24px;
    color: #222;
    font-weight: 600;
    line-height: 1.2;
}

.publish-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.publish-form {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.code-info-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.code-text {
    font-weight: 500;
    color: var(--gray-900);
}

.code-ip-time {
    color: var(--gray-500);
    font-size: 12px;
}
