
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --border: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --purple-primary: #8B5CF6;
    --purple-light: #A78BFA;
    --purple-dark: #7C3AED;
    
    --gradient-primary: linear-gradient(135deg, #6e45e2, #88d3ce);
    --gradient-secondary: linear-gradient(135deg, #ff7e5f, #feb47b);
    --gradient-dark: linear-gradient(135deg, #d1d8ea, #a1b1ca);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
}


body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--gradient-dark);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    padding-top: 100px;
}

.color-panel {
    position: absolute;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    z-index: 2000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    max-width: 280px;
    transition: all 0.3s ease;
}

.color-panel.hidden {
    display: none;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
    box-sizing: border-box;
}

.color-option:hover {
    transform: scale(1.55);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.color-option.selected {
    box-shadow: 0 0 0 2px #07c160, 0 0 0 4px rgba(7, 193, 96, 0.2);
}

.color-option.transparent {
    background: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
                linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
}

.custom-color-container {
    display: flex;
    align-items: center;
    margin-top: 12px;
    gap: 8px;
    grid-column: 1 / -1;
}

.custom-color-input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.custom-color-preview {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.apply-color-btn {
    padding: 8px 12px;
    background: #07c160;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.apply-color-btn:hover {
    background: #05a049;
}

.fill-last-color-btn {
    padding: 8px 12px;
    background: #3b82f6;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fill-last-color-btn:hover {
    background: #2563eb;
}

.color-preview {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 8px;
    background-color: #000;
    border: 1px solid #ddd;
    display: none;
}

.color-section-title {
    grid-column: 1 / -1;
    font-size: 13px;
    color: #666;
    margin: 8px 0 4px;
    font-weight: 500;
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

#editor {
    outline: none;
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 0.75rem;
    min-height: 80vh;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    text-align: left;
    word-wrap: break-word;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgb(0 0 0 / 55%);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    max-width: 100%;
    overflow-x: auto;
    max-width: 100%;
    word-break: break-word;
    margin-bottom: 100px;
}

#editor:focus {
    box-shadow: 0 4px 20px rgb(139 92 246 / 83%);
    border-color: var(--purple-light);
}

#editor h1 { 
    font-size: 24px; 
    margin: 0 0 15px; 
    font-weight: bold !important;
    color: #000; 
}
#editor h2 { 
    font-size: 20px; 
    margin: 0 0 12px; 
    font-weight: bold !important;
    color: #000; 
}
#editor h3 { 
    font-size: 18px; 
    margin: 0 0 10px; 
    font-weight: bold !important;
    color: #000; 
}
#editor h4 { 
    font-size: 16px; 
    margin: 0 0 10px; 
    font-weight: bold !important;
    color: #000; 
}
#editor p { 
    margin: 0 0 10px; 
    font-size: 17px; 
    color: #000; 
}
#editor blockquote { 
    display: flex;
    font-size: 20px;
    margin: 0 0 12px;
    font-weight: bold;
    color: #000;
    padding: 1px 10px;
    position: static;
    border-left: 5px solid #ff0000;
    height: 25px;
    align-items: center;
}

#editor ul, #editor ol { 
    margin: 10px 0 10px 40px; 
    padding-left: 0;
    display: block;
}

#editor ul { list-style-type: disc; }
#editor ol { list-style-type: decimal; }
#editor li { 
    margin-bottom: 0.5em; 
    font-size: 17px; 
    color: #000;
    display: list-item;
    padding-left: 5px;
}

#editor img { max-width: 100%; height: auto; display: block; margin: 16px auto; border-radius: 8px; }
#editor hr { border: 0; height: 1px; background-color: #e0e0e0; margin: 25px 0; }

#editor pre {
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
    background: #e2e2e2;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #000;
}

#editor table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border: 1px solid #ddd;
    table-layout: fixed;
}

#editor th, #editor td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    word-break: break-word;
    min-width: 60px;
}

#editor th {
    background-color: #f8f9fa;
    font-weight: bold;
}

#editor tr:nth-child(even) {
    background-color: #f9f9f9;
}

#editor b, #editor strong, #editor u, #editor strike, #editor s, #editor del {
    color: #000 !important;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    height: 36px;
    border-radius: 0.5rem;
    background: linear-gradient(145deg, rgb(240 255 191 / 90%), rgb(164 241 255 / 90%));
    border: 1px solid rgba(229, 231, 235, 0.5);
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: 6px;
    box-shadow: 0 3px 8px rgb(0 0 0 / 76%);
    transition: transform 0.2s, box-shadow 0.2s;
}

.toolbar-btn1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    height: 36px;
    border-radius: 0.5rem;
    background: #DC362E;
    border: 1px solid rgba(229, 231, 235, 0.5);
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: 6px;
    box-shadow: 0 3px 8px rgb(0 0 0 / 76%);
    transition: transform 0.2s, box-shadow 0.2s;
}

.toolbar-btn1:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}


.toolbar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.toolbar-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    flex-shrink: 0;
}

.reset-animation {
    animation: resetPulse 0.5s ease;
}

@keyframes resetPulse {
    0% { transform: scale(1); background-color: #f0fdf4; }
    50% { transform: scale(0.95); background-color: #dcfce7; }
    100% { transform: scale(1); background-color: #f0fdf4; }
}

.toolbar-btn.active {
    background: linear-gradient(145deg, rgb(240 255 191 / 90%), rgb(164 241 255 / 90%));
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.header-gradient {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-primary) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.copy-success {
    position: fixed;
    top: 56%;
    left: 51%;
    transform: translate(-50%, -50%);
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: opacity 0.3s;
    font-size: 20px;
}

.copy-success.show {
    opacity: 1;
}

.font-size-selector {
    position: relative;
    display: inline-block;
}

.font-size-selector select {
    background: linear-gradient(145deg, rgb(240 255 191 / 90%), rgb(164 241 255 / 90%));
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 0.5rem;
    padding: 0 8px;
    height: 36px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    padding-right: 30px;
    box-shadow: 0 3px 8px rgb(0 0 0 / 76%);
    transition: all 0.2s;
}

.font-size-selector select:hover {
    border-color: var(--purple-light);
}

.font-size-selector::after {
    content: "▼";
    font-size: 10px;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
}

.performance-indicator {
    position: fixed;
    bottom: 0px;
    right: 0px;
    padding: 0px 5px 0px 0px;
    border-radius: 8px;
    font-size: 10px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 1000;
}

.performance-indicator svg {
    width: 16px;
    height: 16px;
    color: var(--success);
}

@media (max-width: 1024px) {
    .grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    #toolbar {
        padding: 10px;
        overflow-x: visible;
        white-space: normal;
    }
    
    .toolbar-scroll {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        min-width: auto;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0.5rem;
    }
    
    header {
        padding: 1rem;
    }
    
    .toolbar-btn span:not(.color-preview) {
        display: inline;
    }
    
    .toolbar-btn {
        padding: 0 8px;
        margin-bottom: 4px;
    }
    
    .toolbar-btn svg {
        margin-right: 4px;
    }
    
    .toolbar-btn, .font-size-selector select {
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    .font-size-selector select {
        width: 70px;
    }
    
    #editor, #html-output {
        min-height: 40vh;
        padding: 1rem;
    }

    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 400px) {
    .toolbar-btn {
        padding: 0 6px;
        font-size: 11px;
    }
    
    .font-size-selector select, #block-type {
        width: 60px;
        padding: 0 4px;
        font-size: 11px;
    }
    
    .heading-btn, .card-btn {
        padding: 0 8px;
        font-size: 11px;
    }
}

@keyframes buttonClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.button-click {
    animation: buttonClick 0.2s ease;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    margin-top: 40px;
}

@media (min-width: 1280px) {
    .grid-container {
        grid-template-columns: 3fr 2fr;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .grid-container {
        grid-template-columns: 3fr 1fr;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

#toolbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 5px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.primary-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0px 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.primary-toolbar-left, .primary-toolbar-right {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.more-btn {
    position: relative;
}

.secondary-toolbar {
    display: none;
    background: rgba(249, 250, 251, 0.95);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-height: 150px;
    overflow: hidden;
}

.secondary-toolbar.show {
    display: flex;
    justify-content: center;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: rgba(229, 231, 235, 0.7);
    margin: 0 4px;
}

.more-arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s;
}

.more-btn.active .more-arrow {
    transform: rotate(180deg);
}


.text-sm .text-gray-500 .flex .items-center .mb-4{
    
}

@media (max-width: 1024px) {
    .grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    #toolbar {
        padding: 10px;
        overflow-x: visible;
        white-space: normal;
    }
    
    .toolbar-scroll {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        max-height: 130px;
        overflow: hidden;
        justify-content: center;
    }
}

.view-switch-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.view-switch-btn {
    padding: 8px 16px;
    border-radius: 6px;
    background: #e9ecef;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.view-switch-btn.active {
    background: #007bff;
    color: white;
}

.hidden {
    display: none;
}

.column-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.column-title svg {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.html-controls {
    position: absolute;
    top: 50%;
    left: calc(100% - 40px);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 20;
    transition: left 0.3s ease;
}

.html-controls.active {
    left: calc(100% - 40px);
}

.html-controls .status-btn {
    margin: 0;
    padding: 10px 15px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.html-controls .status-btn i {
    margin-right: 8px;
}

.html-column {
    position: relative;
    transition: all 0.3s ease;
}

.html-column.hidden {
    display: none;
}

.vertical-button-group {
    position: fixed;
    top: 55%;
    transform: translate(0%,-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 20000;
    right: 0%;
}

.preview-html-container {
    position: relative;
}

.toggle-view-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 6px 12px;
    background: #4f46e5;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
    display: none;
}

.toggle-view-btn:hover {
    background: #6366f1;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .vertical-button-group {
    position: fixed;
    top: 66%;
    transform: translate(0%,-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
    right: 0%;
    }
}

@media (max-width: 640px) {
    .vertical-button-group {
    position: fixed;
    top: 66%;
    transform: translate(0%,-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
    right: 0%;
    }
    
    .vertical-button-group .status-btn {
        width: 100%;
        min-width: auto;
    }
}

.vertical-copy-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #333;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    width: 50px;
    height: 170px;
    text-align: center;
    line-height: 1.1;
}

.vertical-copy-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.vertical-copy-btn i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #fff;
}

#html-section .iphone-frame {
    max-width: 350px;
    height: 700px;
}

#html-section .wechat-article {
    background: #1a1c23;
    color: #f0f0f0;
    font-family: 'Fira Code', 'Consolas', monospace;
    padding: 20px;
    white-space: pre-wrap;
    word-break: break-all;
    border-radius: 8px;
    overflow: auto;
    max-height: 600px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, visibility 0.3s;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #8B5CF6;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vertical-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #333;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    width: 50px;
    height: 170px;
    text-align: center;
    line-height: 1.1;
}

.vertical-action-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.vertical-action-btn i {
    font-size: 15px;
    margin-bottom: 8px;
    color: #fff;
}

.vertical-action-btn.reset {
    background: var(--gradient-secondary);
}

.vertical-action-btn.clear {
    background: #4F89F1;
    color: #ff9191;
}

.iphone-frame {
    width: 100%;
    max-width: 350px;
    height: 700px;
    background: #000;
    border-radius: 50px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 12px solid #1a1a1a;
}

.iphone-notch {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: #000;
    border-radius: 30px 30px 30px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.iphone-screen {
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 38px;
    overflow: hidden;
}

.wechat-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background: #fff;
    font-size: 12px;
    color: #000;
    height: 44px;
    border-bottom: 1px solid #f0f0f0;
}

.wechat-status-bar .time {
    font-weight: bold;
}

.wechat-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    height: 50px;
}

.wechat-header .back-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.wechat-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.wechat-article-container {
    height: calc(100% - 129px);
    overflow-y: auto;
    padding: 20px 15px;
    background: #fff;
}

.wechat-article {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #000;
}

.wechat-article h1 {
    font-size: 22px;
    font-weight: bold !important;
    margin: 24px 0 16px;
    text-align: center;
}

.wechat-article h2 {
    font-size: 20px;
    font-weight: bold !important;
    margin: 20px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.wechat-article h3 {
    font-size: 18px;
    font-weight: bold !important;
    margin: 18px 0 12px;
}

.wechat-article h4 {
    font-size: 16px;
    font-weight: bold !important;
    margin: 16px 0 10px;
}

.wechat-article p {
    margin: 0 0 16px;
    text-align: justify;
    font-size: 17px;
    color: #000;
}

.wechat-article blockquote {
    font-size: 20px;
    margin: 0 0 12px;
    font-weight: bold;
    color: #000;
    padding: 5px 13px;
    position: static;
    border-left: 5px solid #ff0000;
}

.wechat-article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 8px;
}

.wechat-article ul, .wechat-article ol {
    padding-left: 40px;
    margin: 16px 0;
    display: block;
    color: #000;
}

.wechat-article li {
    margin-bottom: 8px;
    display: list-item;
    color: #000;
}

.wechat-article ul {
    list-style-type: disc;
}

.wechat-article ol {
    list-style-type: decimal;
}

.wechat-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border: 1px solid #ddd;
    table-layout: fixed;
}

.wechat-article th, .wechat-article td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    word-break: break-word;
    min-width: 60px;
}

.wechat-article th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.wechat-article tr:nth-child(even) {
    background-color: #f9f9f9;
}

#format-all-btn {
    background: rgba(255, 193, 7, 0.1);
    color: #f59e0b;
}

#format-all-btn:hover {
    background: rgba(255, 193, 7, 0.2);
}

.code-block-wrapper {
    border-radius: 8px;
    padding: 15px;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.light-theme {
    background-color: #f8f9fa;
}

.dark-theme {
    background-color: #1a1c23;
}

.code-header {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.dark-theme .code-header {
    border-bottom: 1px solid #4a4a4a;
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.code-title {
    flex-grow: 1;
    text-align: center;
    color: #555;
    font-size: 13px;
    font-family: monospace;
}

.dark-theme .code-title {
    color: #9e9e9e;
}

.dark-theme .code-copy-btn {
    color: #fff !important;
    background: rgba(139, 92, 246, 0.2);
}

.code-copy-btn {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.code-copy-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.code-copy-btn.copied {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.dark-theme .code-copy-btn:hover {
    background: rgba(139, 92, 246, 0.3);
}

.dark-theme .code-copy-btn.copied {
    background: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.code-body {
    margin-top: 15px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    color: #000;
    padding: 10px;
    border-radius: 4px;
    background: rgb(255 255 255 / 100%);
}

.light-theme .code-body {
    color: #000;
}

.dark-theme .code-body {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.code-table {
    border-spacing: 0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    width: 100%;
    line-height: 1.6;
}

.line-number {
    padding-right: 1em;
    text-align: right;
    user-select: none;
    -webkit-user-select: none;
    vertical-align: top;
}

.light-theme .line-number {
    color: #999;
}

.dark-theme .line-number {
    color: #6e6e6e;
}

.line-content {
    white-space: pre-wrap;
    width: 100%;
    vertical-align: top;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    position: relative;
    display: inline-block;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.15);
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

#html-output {
    background: #1a1c23;
    color: #f0f0f0;
    border-radius: 12px;
    border: 1px solid #333;
    font-family: 'Fira Code', 'Consolas', monospace;
    padding: 20px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
    min-height: 80vh;
    width: 100%;
    resize: vertical;
}

.gradient-bg {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.heading-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 36px;
    border-radius: 0.5rem;
    background: linear-gradient(145deg, rgb(240 255 191 / 90%), rgb(164 241 255 / 90%));
    border: 1px solid rgba(229, 231, 235, 0.5);
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    margin-bottom: 6px;
    box-shadow: 0 3px 8px rgb(0 0 0 / 76%);
    transition: all 0.2s;
}

.heading-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.heading-btn.active {
    background: linear-gradient(145deg, rgb(240 255 191 / 90%), rgb(255 0 220 / 90%));
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    color: #4f46e5;
    border-color: #c7d2fe;
}

.smooth-transition {
    transition: all 0.3s ease;
}

.card-shadow {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.toolbar-btn:hover, .heading-btn:hover {
   background: linear-gradient(145deg, rgb(255 85 166 / 90%), rgb(219 255 251 / 90%));
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    width: 90%;
    max-width: 500px;
    transform: translateY(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff0000;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

modal-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.modal-btn.confirm {
    background: #4f46e5;
    color: white;
}

.modal-btn.cancel {
    background: #e5e7eb;
    color: #333;
}

.modal-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

#code-modal, #confirm-clear-modal {
    z-index: 2000;
}

.will-change {
    will-change: transform, opacity;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

#format-selected-btn {
    background: linear-gradient(145deg, rgb(240 255 191 / 90%), rgb(164 241 255 / 90%));
    color: #3b82f6;
}

#format-selected-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

@keyframes highlight {
    0% { background-color: rgba(139, 92, 246, 0.3); }
    100% { background-color: transparent; }
}

.highlight-animation {
    animation: highlight 1s ease;
}

.virtual-scroll-container {
    height: 100%;
    overflow-y: auto;
    position: relative;
}

.virtual-scroll-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.wechat-article-container {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
    will-change: transform;
}

#editor {
    transform: translateZ(0);
    will-change: contents;
}

.smooth-opacity {
    transition: opacity 0.3s ease;
}

.real-time-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    font-size: 12px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

.format-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(139, 92, 246, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.format-success.show {
    opacity: 1;
}

.format-highlight {
    animation: highlightFormat 1s ease;
}

@keyframes highlightFormat {
    0% { background-color: rgba(255, 214, 10, 0.5); }
    100% { background-color: transparent; }
}

/* 新增样式：颜色按钮组 */
.color-btn-group {
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(245,245,245,0.9));
    border: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 3px 8px rgb(0 0 0 / 76%);
    height: 36px;
}

.color-btn-group .toolbar-btn {
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    height: 100%;
}

.color-btn-group .toolbar-divider {
    width: 2px;
    height: 24px;
    background: rgb(103 103 103 / 70%);
    padding: 1.5px;
    margin: 10px;
}

.last-color-preview {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background-color: #000;
    border: 1px solid #ddd;
    margin-left: 6px;
}

/* 背景颜色预览 */
.bg-color-preview {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 8px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    position: relative;
    overflow: hidden;
    display: none !important;
}

.bg-color-preview::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
                linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    opacity: 0.3;
}

/* 字体大小标签 */
.font-size-label {
    font-size: 13px;
    margin-right: 8px;
    white-space: nowrap;
    color: #334155;
}

/* 新增：独立的填充按钮样式 */
.fill-color-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(245,245,245,0.9));
    border: 1px solid rgba(229, 231, 235, 0.5);
    cursor: pointer;
    box-shadow: 0 3px 8px rgb(0 0 0 / 76%);
    transition: all 0.2s;
    overflow: hidden;
}

.fill-color-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.fill-color-btn-text {
    background: linear-gradient(145deg, rgba(219,234,254,0.9), rgba(199,210,254,0.9));
}

.fill-color-btn-bg {
    background: linear-gradient(145deg, rgba(254,226,226,0.9), rgba(255,237,213,0.9));
}

.fill-color-preview {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    border: 1px solid #ddd;
}


/* 新增样式：使预览窗口跟随滚动 */
.preview-html-container {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    border-radius: 12px;
    width: 400px;
}

/* 自定义滚动条样式 */
.preview-html-container::-webkit-scrollbar {
    width: 8px;
}

.preview-html-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.preview-html-container::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 4px;
}

.preview-html-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .preview-html-container {
        position: relative;
        top: 0;
        max-height: none;
    }
}


        /* 添加保存状态指示器样式 */
        .save-status {
            transition: all 0.3s ease;
        }
        
        .save-status.saving {
            color: #f59e0b;
        }
        
        .save-status.saved {
            color: #10b981;
        }
        
        .auto-save-toggle {
            display: flex;
            align-items: center;
            margin-left: 1rem;
            cursor: pointer;
        }
        
        .auto-save-toggle input {
            margin-right: 0.5rem;
        }







        /* 自定义短语区域样式 */
        
        
          .phrase-item, .template-item {
            padding: 10px;
            margin-bottom: 10px;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .phrase-item:hover, .template-item:hover {
            background: rgba(255, 255, 255, 0.9);
        }
        .phrase-actions, .template-actions {
            display: flex;
            gap: 5px;
            margin-top: 5px;
        }
        .phrase-action-btn, .template-action-btn {
            padding: 4px 8px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
        }
        .add-phrase-form, .add-template-form {
            margin-top: 15px;
            display: flex;
            gap: 10px;
        }
        #phrase-input, #template-name-input {
            flex: 1;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        #add-phrase-btn, #add-template-btn {
            padding: 8px 15px;
            background: #4a90e2;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }      
        
        
        
        
        
        
        .phrases-section {
            display: none;
        }
        
        .phrases-container {
            max-height: 600px;
            overflow-y: auto;
            padding: 10px;
            background: #f9fafc;
            border-radius: 8px;
            margin-bottom: 15px;
        }
        
        .phrase-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 3px 6px;
            margin-bottom: 8px;
            background: white;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            cursor: pointer;
            transition: all 0.2s;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .phrase-item:hover {
            background: #edf2f7;
            border-color: #cbd5e0;
            background-color: #f8fafc;
        }
        
        .phrase-text {
            flex-grow: 1;
            margin-right: 10px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .phrase-actions {
            display: flex;
            gap: 8px;
            flex-direction: column;
        }
        
        .phrase-action-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: #0e1fbc;
            padding: 4px;
            border-radius: 4px;
            white-space: nowrap;
            box-shadow: 0 3px 8px rgb(0 0 0 / 76%);
            transition: all 0.2s;
            padding: 3px 4px !important;
            font-size: 13px;
            cursor: pointer !important;
        }
        
        .phrase-action-btn:hover {
            color: #4a5568;
            background: #e2e8f0;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        
        .add-phrase-form {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 15px;
        }
        
        .add-phrase-form textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            resize: vertical;
            min-height: 60px;
        }
        
        .add-phrase-form button {
            padding: 8px 12px;
            background: #4299e1;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .add-phrase-form button:hover {
            background: #3182ce;
        }
        
        
        /* 剪贴板消息样式 */
        .clipboard-message {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: var(--gradient-primary);
            color: #fdf91e;
            font-size: 20px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            transition: all 0.3s ease;
            width: 50px;
            height: 170px;
            text-align: center;
            line-height: 1.1;
        }

        .clipboard-message:hover {
            transform: translateX(-5px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.2);
        }
        
        .clipboard-message i {
            font-size: 24px;
            margin-bottom: 8px;
            color: #fff;
        }


        
               /* 标签导航样式 */
        .tab-navigation {
            display: flex;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 15px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            margin-top: 20px;
        }
        
        .tab-link {
            flex: 1;
            padding: 12px 0;
            text-align: center;
            background: #f8fafc;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
            color: #64748b;
            font-weight: bold;
        }
        
        .tab-link.active {
            background: white;
            color: #3b82f6;
            box-shadow: inset 0 -3px 0 #3b82f6;
        }
        
        .tab-link:hover {
            background: #e2e8f0;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        } 
        

     .copy-successs {
        display: none; /* 默认隐藏 */
        position: fixed;
        top: 56%;
        left: 51%;
        transform: translate(-50%, -50%);
        background: rgba(16, 185, 129, 0.9);
        color: #ffffff;
        padding: 25px 45px;
        border-radius: 50px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.6);
        z-index: 1000;
        font-size: 20px;
        transition: opacity 0.3s;
        font-size: 20px;
        font-weight: 500;
        z-index: 10000;
        text-align: center;
    }


        
        
        
/* 违禁词管理样式 */
.banned-words-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    background: #f8fafc;
}

.banned-word-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.banned-word-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.banned-word-item:last-child {
    margin-bottom: 0;
}

.banned-word-item span {
    font-size: 14px;
    color: #4a5568;
}

.delete-banned-word-btn {
    background: #fed7d7;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    color: #c53030;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-banned-word-btn:hover {
    background: #feb2b2;
}

.add-banned-word-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.add-banned-word-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
}

.add-banned-word-form button {
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.add-banned-word-form button:hover {
    background: #3182ce;
}

.no-words {
    text-align: center;
    color: #a0aec0;
    padding: 20px;
    font-style: italic;
}

/* 违禁词高亮样式 - 确保这个样式存在且正确 */
.banned-word-highlight {
    background-color: #fed7d7 !important;
    color: #c53030 !important;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    border: 1px solid #feb2b2;
}

/* 违禁词指示器样式 */
.banned-word-indicator {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.banned-word-indicator.safe {
    background-color: #c6f6d5;
    color: #22543d;
}

.banned-word-indicator.warning {
    background-color: #feebc8;
    color: #744210;
}

.banned-word-indicator.danger {
    background-color: #fed7d7;
    color: #c53030;
}
        
        
        
        
   /* 模板相关样式 */
.templates-container {
    max-height: 630px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.template-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.template-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.template-info {
    flex: 1;
}

.template-name {
    font-weight: 600;
    color: #334155;
    margin: 0 0 4px 0;
}

.template-date {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.template-actions {
    display: flex;
    gap: 5px;
}

.template-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.template-btn.load {
    background: #3b82f6;
    color: white;
}

.template-btn.load:hover {
    background: #2563eb;
}

.template-btn.delete {
    background: #ef4444;
    color: white;
}

.template-btn.delete:hover {
    background: #dc2626;
}

.add-template-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.add-template-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.add-template-form button {
    padding: 10px 20px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.add-template-form button:hover {
    background: #059669;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-style: italic;
}

/* 模板消息样式 */
.template-message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #10b981;
}

.template-message.show {
    transform: translateX(0);
}

.template-message.success {
    border-left-color: #10b981;
}

.template-message.success i {
    color: #10b981;
}

.template-message.info {
    border-left-color: #3b82f6;
}

.template-message.info i {
    color: #3b82f6;
}     
        


.edit-template-btn{
    display: inline-flex
;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    height: 36px;
    border-radius: 0.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.9));
    border: 1px solid rgba(229, 231, 235, 0.5);
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: 6px;
    box-shadow: 0 3px 8px rgb(0 0 0 / 76%);
    transition: transform 0.2s, box-shadow 0.2s;
}



.edit-template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}


.load-template-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    height: 36px;
    border-radius: 0.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.9));
    border: 1px solid rgba(229, 231, 235, 0.5);
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: 6px;
    box-shadow: 0 3px 8px rgb(0 0 0 / 76%);
    transition: transform 0.2s, box-shadow 0.2s;
}



.load-template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}



.delete-template-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    height: 36px;
    border-radius: 0.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.9));
    border: 1px solid rgba(229, 231, 235, 0.5);
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: 6px;
    box-shadow: 0 3px 8px rgb(0 0 0 / 76%);
    transition: transform 0.2s, box-shadow 0.2s;
}



.delete-template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}




.blockquote, .wechat-article blockquote{
    font-size: 20px;
    margin: 0 0 12px;
    font-weight: bold;
    color: #000;
    padding: 5px 13px;
    position: static;
    border-left: 5px solid #ff0000;
    
}



        /* 新增：酷炫标题栏样式 */
        .cool-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
            /*background-size: 400% 400%;*/
            animation: gradientShift 15s ease infinite;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
            border-radius: 0 0 20px 20px;
            padding: 20px 0;
            margin-bottom: 20px;
            color: white;
        }
        
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        .cool-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
            animation: shine 3s infinite;
        }
        
        @keyframes shine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        
        .cool-header-content {
            position: relative;
            z-index: 2;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 30px;
        }
        
        .logo-section {
            display: flex;
            align-items: center;
        }
        
        .cool-logo {
            font-size: 2.5rem;
            margin-right: 15px;
            text-shadow: 0 0 10px rgba(255,255,255,0.5);
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        .title-section h1 {
            font-size: 2.2rem;
            font-weight: 800;
            margin: 0;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            letter-spacing: 1px;
            background: linear-gradient(to right, #ffffff, #e0e0e0, #ffffff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-size: 200% auto;
            animation: textShine 3s linear infinite;
        }
        
        @keyframes textShine {
            to { background-position: 200% center; }
        }
        
        .title-section p {
            margin: 5px 0 0;
            font-size: 1rem;
            opacity: 0.9;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }
        
        .info-section {
            text-align: right;
        }
        
        .current-time {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 5px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }
        
        .version {
            font-size: 0.9rem;
            opacity: 0.8;
        }
        
        /* 悬浮粒子效果 */
        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }
        
        .particle {
            position: absolute;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            animation: float 15s infinite linear;
        }
        
        @keyframes float {
            0% {
                transform: translateY(100%) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100%) rotate(360deg);
                opacity: 0;
            }
        }        
        
        