:root {
    /* 浅色主题配色方案 - 参考经典网站设计 */
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --secondary-color: #06b6d4;
    --secondary-light: #22d3ee;
    --background: #f9fafb;
    --card-bg: #ffffff;
    --subtle-bg: #f3f4f6;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    
    /* 新增渐变和阴影变量 */
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --header-gradient: linear-gradient(to right, var(--primary-color), var(--primary-light));
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glow: 0 0 15px rgba(59, 130, 246, 0.3);
    --button-glow: 0 0 20px rgba(59, 130, 246, 0.4);
    
    /* 圆角变量 */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    
    /* 动画变量 */
    --transition-fast: 0.15s;
    --transition-normal: 0.25s;
    --transition-slow: 0.4s;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 暗色主题变量 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #3b82f6;
        --primary-light: #60a5fa;
        --primary-dark: #1d4ed8;
        --secondary-color: #06b6d4;
        --secondary-light: #22d3ee;
        --background: #0f172a;
        --card-bg: #1e293b;
        --subtle-bg: #283548;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --border-color: #334155;
        
        /* 暗色主题特殊效果 */
        --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.12);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
        --glow: 0 0 15px rgba(59, 130, 246, 0.4);
        --button-glow: 0 0 25px rgba(59, 130, 246, 0.5);
    }
}

/* 减少动画（为有前庭功能障碍者） */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
        scroll-behavior: auto !important;
    }
    
    .btn::before, .tool-card-icon::before, .tool-container::before, .tool-container::after {
        display: none !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 调整全局布局以确保页面各部分衔接正确 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* 始终显示滚动条，防止切换工具时布局抖动 */
    overflow-y: scroll;
}

body {
    background: var(--background);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 添加美观滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

.header {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10; /* 确保在顶部 */
    height: 3.5rem; /* 减小高度 */
    /* 可以选择性地使用 min-height: 3.5rem; 如果你想允许它在极端情况下变高 */
}

/* 添加科技感背景效果 */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 20%);
    pointer-events: none;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.logo i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.main {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 260px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
    overflow-y: auto;
    z-index: 5; /* 使其在页脚之上 */
}

.sidebar-category {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-menu {
    list-style: none;
}

.home-menu {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.home-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    gap: 0.75rem;
    border-radius: var(--radius);
    background-color: rgba(59, 130, 246, 0.1);
    font-weight: 600;
    transition: all var(--transition-normal) ease;
    border: 1px solid transparent;
}

.home-menu a:hover,
.home-menu a.active {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--primary-color);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-sm);
}

.sidebar-menu li {
    margin-bottom: 0.25rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all var(--transition-normal) ease;
    gap: 0.75rem;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-menu a.active {
    font-weight: 600;
}

.sidebar-menu a i {
    transition: transform var(--transition-fast) ease;
    color: var(--text-secondary);
}

.sidebar-menu a:hover i,
.sidebar-menu a.active i {
    transform: translateX(2px);
    color: var(--primary-color);
}

.content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    /* 稳定滚动条占位符，防止内容切换时抖动 */
    scrollbar-gutter: stable;
}

/* 添加微妙的图案背景 */
.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(#e2e8f0 1px, transparent 1px),
        radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.tools-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.tools-header h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.tool-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal) var(--ease-out-expo);
}

.tool-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal) var(--ease-in-out);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    color: white;
    font-size: 1.5rem;
    position: relative;
    transition: all var(--transition-normal) var(--ease-out-expo);
}

.tool-card:hover .tool-card-icon {
    transform: scale(1.1);
    box-shadow: var(--glow);
}

.tool-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.tool-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-normal) var(--ease-out-expo);
}

.tool-card:hover .tool-card-title::after {
    width: 3rem;
}

.tool-card-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.tool-active {
    margin-top: 2rem;
    margin-bottom: 2rem; /* 添加底部间距避免贴近页脚 */
}

.tool-container {
    flex: 1;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tool-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-gradient);
    opacity: 0.5;
    pointer-events: none;
}

.tool-header {
    margin-bottom: 2rem;
    position: relative;
}

.tool-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.tool-header-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4rem;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.input-side, .output-side {
    background: var(--subtle-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal) var(--ease-out-expo);
}

.input-side:focus-within, .output-side:focus-within {
    box-shadow: var(--shadow), 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.input-group, .output-group {
    margin-bottom: 1.5rem;
}

.input-group label, .output-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-left: 1.25rem;
}

.input-group label::before, .output-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary-gradient);
    border-radius: 50%;
}

textarea {
    width: 100%;
    min-height: 400px;
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    transition: all var(--transition-normal) var(--ease-out-expo);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow), 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.json-output, .js-output {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: auto;
    border: 1px solid var(--border-color);
    position: relative;
    min-height: 400px;
}
.json-output-jwt, .js-output-jwt {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: auto;
    border: 1px solid var(--border-color);
    position: relative;
    min-height: 200px;
}

.json-output::before, .js-output::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal) var(--ease-in-out);
    pointer-events: none;
}

.json-output:hover::before, .js-output:hover::before {
    opacity: 0.5;
}

.actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal) var(--ease-out-expo);
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--button-glow);
}

.btn:active {
    transform: translateY(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    transform: translateY(-100%);
    transition: transform var(--transition-normal) var(--ease-in-out);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--subtle-bg);
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-normal) ease;
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab:hover:not(.active) {
    color: var(--text-primary);
}

#toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 9999;
    pointer-events: none;
    display: none;
    box-shadow: var(--shadow);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.json-key {
    color: #8839ef;
}

.json-value {
    color: #d20f39;
}

.json-string {
    color: #40a02b;
}

.json-boolean {
    color: #df8e1d;
}

.json-null {
    color: #6c7086;
}

/* JS 代码高亮样式 */
.js-keyword {
    color: #8839ef; /* 关键字 - 紫色 */
}

.js-string {
    color: #40a02b; /* 字符串 - 绿色 */
}

.js-number {
    color: #d20f39; /* 数字 - 红色 */
}

.js-boolean {
    color: #df8e1d; /* 布尔值 - 橙色 */
}

.js-function {
    color: #1e66f5; /* 函数 - 蓝色 */
}

.js-comment {
    color: #6c7086; /* 注释 - 灰色 */
}

.js-operator {
    color: #04a5e5; /* 运算符 - 青色 */
}

.js-bracket {
    color: #fe640b; /* 括号 - 橙红色 */
}

@media (max-width: 992px) {
    .main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sidebar::-webkit-scrollbar {
        display: none;
    }

    .sidebar-menu {
        display: flex;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .sidebar-menu a {
        white-space: nowrap;
        padding: 0.75rem 1.25rem;
        border-radius: var(--radius-lg);
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        transition: all var(--transition-normal) var(--ease-out-expo);
    }

    .sidebar-menu a:hover, .sidebar-menu a.active {
        background: var(--primary-gradient);
        color: white;
        border-color: transparent;
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .content {
        padding: 1.5rem;
    }

    .side-by-side {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .input-side, .output-side {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
        text-align: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tool-card {
        padding: 1.25rem;
    }

    .tool-card:active {
        transform: scale(0.98);
    }

    .tool-container {
        padding: 1.25rem;
    }

    .tool-header-title {
        font-size: 1.5rem;
    }

    .input-side, .output-side {
        padding: 1.25rem;
        min-height: 300px;
    }

    textarea, .json-output, .js-output {
        min-height: 300px;
        font-size: 0.9rem;
        padding: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem;
        font-size: 0.9375rem;
    }

    .btn:active {
        transform: scale(0.98);
    }

    .actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* 优化移动端触摸区域 */
    .tool-card,
    .btn,
    .sidebar-menu a,
    textarea,
    .input-group label,
    .output-group label {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* 添加触摸反馈 */
    @media (hover: none) {
        .tool-card:active,
        .btn:active,
        .sidebar-menu a:active {
            transform: scale(0.96);
            transition: transform 0.1s var(--ease-out-expo);
        }
    }
}

/* 添加页脚样式 */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    width: 100%;
    z-index: 10;
    margin-top: auto;
    box-sizing: border-box;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.copyright i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal) ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* 添加清晰的工具容器内滚动阴影效果 */
.tool-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to top, var(--card-bg) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tool-container.scrolled::after {
    opacity: 1;
}

/* 模态对话框样式 */
.modal {
    padding: 0;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    background-color: var(--card-bg);
    color: var(--text-primary);
    width: 90%;
    max-width: 500px;
    margin: auto;
}

.modal::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal .close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal .close-button:hover {
    color: var(--text-primary);
}

.modal-content {
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
}

/* 移动端优化 - 确保触控区域足够大 */
@media (max-width: 768px) {
    .btn {
        min-height: 44px; /* 确保最小触摸高度符合标准 */
        min-width: 44px; /* 确保最小触摸宽度符合标准 */
        padding: 0.75rem 1.25rem; /* 增加内边距使触摸更容易 */
        font-size: 1rem; /* 增大字体大小 */
    }
    
    .sidebar-menu a {
        padding: 0.75rem 1.5rem; /* 增加边距 */
        min-height: 44px; /* 确保最小触摸高度符合标准 */
    }
    
    .tool-card {
        min-height: 100px; /* 确保卡片有足够大的触摸区域 */
    }
}

/* JWT 工具样式 */
.jwt-results {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
}

.jwt-results-container {
    height: 100%;
    overflow-y: auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    /* 确保滚动条空间始终被保留 */
    scrollbar-gutter: stable;
}

#jwt-header, #jwt-payload {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.4;
    /* 确保滚动条空间始终被保留 */
    scrollbar-gutter: stable;
}

.jwt-section {
    margin-bottom: 1.5rem;
}

.jwt-section h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
    padding-left: 1.25rem;
}

.jwt-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.75rem;
    height: 0.75rem;
    margin-top: -0.375rem;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.8;
}

.jwt-section:nth-child(2) h3::before {
    background: var(--secondary-color);
}

.jwt-section:nth-child(3) h3::before {
    background: #9333ea;
}

#jwt-signature {
    background: var(--subtle-bg);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-family: monospace;
    word-break: break-all;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-left: 3px solid #9333ea;
    max-height: 100px;
    overflow-y: auto;
}

.jwt-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.jwt-expiry, .jwt-issued {
    background: var(--subtle-bg);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.jwt-expiry strong, .jwt-issued strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* 为JWT工具添加响应式样式 */
@media (max-width: 768px) {
    .jwt-meta {
        grid-template-columns: 1fr;
    }
    
    .full-width {
        width: 100%;
    }
    
    #jwt-header, #jwt-payload {
        max-height: 150px;
    }
}

.options-group {
    margin-bottom: 1rem; /* Add space below the options */
}

.options-group > label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.radio-group {
    display: flex;
    gap: 1rem; /* Space between radio buttons */
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: normal;
    color: var(--text-secondary);
}

.radio-group input[type="radio"] {
    accent-color: var(--primary-color); /* Style the radio button itself */
    cursor: pointer;
} 