/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #000000;  /* 整个页面的背景色 */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    height: calc(100vh - 40px);
}

/* 左侧列样式 */
.left-column {
    flex: 0 0 420px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 验证框样式 */
.authenticator-box {
    background-color: #191919;  /* 主要内容框的背景色 */
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.authenticator-header h1 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #e8e8e8;  /* 标题文字颜色 */
    font-weight: 500;
}

.authenticator-header p {
    color: #696969;  /* 描述文字颜色 */
    margin-bottom: 25px;
}

/* 验证部分样式 */
.verification-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #333;  /* 验证区域的边框色 */
    border-radius: 5px;
    padding: 15px 20px;
    margin-bottom: 25px;
    background-color: #1a1a1a;  /* 验证区域的背景色 */
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #444;  /* 复选框边框颜色 */
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: #f48120;  /* 复选框选中背景色 */
    border-color: #f48120;  /* 复选框选中边框色 */
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;  /* 复选框勾选标记颜色 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

.checkbox-container label {
    font-size: 16px;
    color: #ddd;  /* 复选框标签文字颜色 */
    cursor: pointer;
}

.cloudflare-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cloudflare-logo img {
    height: 30px;
    margin-bottom: 5px;
}

.cloudflare-text {
    font-size: 12px;
    color: #777;  /* Cloudflare文字颜色 */
}

/* 消息部分样式 */
.message-section {
    color: #aaa;  /* 消息文字颜色 */
    font-size: 15px;
    margin-top: 5px;
    margin-bottom: 25px;
}

/* 按钮区域样式 */
.buttons-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.action-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.primary-button {
    background-color: #f48120;  /* 主要按钮背景色 */
    color: white;  /* 主要按钮文字颜色 */
}

.primary-button:hover {
    background-color: #e67615;  /* 主要按钮悬停背景色 */
}

/* 错误提示样式 */
.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-left: 15px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* 输入框区域样式 */
.inputs-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
    align-items: flex-start;
    width: 100%;
    flex: 1;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
}

.input-group label {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;  /* 输入框标签文字颜色 */
}

.form-input {
    background-color: #121212;  /* 输入框的背景色 */
    border: 1px solid #333;  /* 输入框的边框色 */
    border-radius: 4px;
    padding: 12px;
    color: #aaaaaa;  /* 输入框内文字颜色 */
    font-size: 16px;
    flex: 1;
}

.form-input::placeholder {
    color: #555555;  /* 输入框占位符文字颜色 */
}

.form-input:focus {
    outline: none;
    border-color: #f48120;  /* 输入框焦点边框色 */
}

.input-duration {
    background-color: #191919;  /* 时长显示背景色 */
    color: #f48120;  /* 时长显示文字颜色 */
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 16px;
    font-family: "Microsoft YaHei", "微软雅黑", monospace;
    min-width: 80px;
    text-align: center;
    font-weight: bold;
}

/* 密码可见按钮样式 */
.toggle-password {
    background: none;
    border: none;
    color: #aaa;  /* 密码可见按钮颜色 */
    cursor: pointer;
    font-size: 16px;
    padding: 0 10px;
    background-color: #1a1a1a;  /* 密码可见按钮背景色 */
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toggle-password:hover {
    color: #f48120;  /* 密码可见按钮悬停文字颜色 */
    background-color: #2a2a2a;  /* 密码可见按钮悬停背景色 */
}

.toggle-password:focus {
    outline: none;
}

.eye-icon {
    font-size: 18px;
}

/* 鼠标点击标记样式 */
.click-marker {
    position: fixed;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.click-marker::before, .click-marker::after {
    content: '';
    position: absolute;
    background-color: red;
}

.click-marker::before {
    width: 100%;
    height: 2px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.click-marker::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 统计数据显示区域样式 */
.statistics-data {
    background-color: transparent;
    border-radius: 8px;
    padding: 0;
    flex: 0 0 auto;
    margin-bottom: 20px;
}

.statistics-data h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #e0e0e0;
    font-weight: 500;
}

.stats-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stats-row {
    display: flex;
    align-items: center;
}

.stats-label {
    width: 120px;
    color: #aaa;
}

.stats-value {
    font-size: 18px;
    font-weight: bold;
    min-width: 30px;
}

.stats-value.success {
    color: #4CAF50;
}

.stats-value.failure {
    color: #f44336;
}

.reset-button {
    background-color: #666;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reset-button:hover {
    background-color: #777;
}

/* 用户交互数据显示区域样式 */
.interaction-data {
    background-color: transparent;
    border-radius: 8px;
    padding: 0;
    flex: 1;
}

.interaction-data h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #e0e0e0;
    font-weight: 500;
}

.data-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-row {
    display: flex;
}

.data-label {
    width: 120px;
    color: #aaa;
}

/* 为点击坐标创建特殊样式 */
#click-coordinates {
    color: #f48120;
    flex: 1;
    word-break: break-all;
    font-size: 18px;
    font-weight: bold;
}

.data-value {
    color: #f48120;
    flex: 1;
    word-break: break-all;
}

/* 右侧列样式 */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    height: 100%;
}

/* 下方数据容器 */
.bottom-data-container {
    display: flex;
    gap: 15px;
    flex: 1;
    height: 100%;
}

/* 左侧数据区域 */
.left-data-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 8px;
    padding: 15px;
    background-color: #1a1a1a;
}

/* 键入数据区域样式 */
.typing-data {
    background-color: #232323;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex: 0 0 auto;
    width: 280px;
    height: 100%;
    overflow-y: auto;
}

.typing-data h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #e0e0e0;
    font-weight: 500;
}

.key-pair-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 450px; /* 增加高度 */
    overflow-y: auto;
    padding-right: 5px; /* 为滚动条留出空间 */
}

.key-pair {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #2a2a2a;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.7; /* 历史记录默认透明度 */
}

/* 最新的键入记录样式 */
.key-pair.latest {
    background-color: #3a3a3a;
    border: 1px solid #f48120;
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(244, 129, 32, 0.2);
}

/* 第二新的记录样式 */
.key-pair.recent {
    opacity: 0.85;
    background-color: #2f2f2f;
}

.key-value {
    color: #f48120;
    font-family: "Microsoft YaHei", "微软雅黑", monospace;
    font-size: 14px;
}

.key-interval {
    color: #aaa;
    font-family: "Microsoft YaHei", "微软雅黑", monospace;
    font-size: 14px;
}

/* 自定义滚动条样式 */
.key-pair-container::-webkit-scrollbar {
    width: 6px;
}

.key-pair-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.key-pair-container::-webkit-scrollbar-thumb {
    background: #f48120;
    border-radius: 3px;
}

.key-pair-container::-webkit-scrollbar-thumb:hover {
    background: #ff9a3c;
}

/* 最新记录的特殊动画效果 */
.key-pair.latest {
    animation: newKeyHighlight 0.5s ease-out;
}

@keyframes newKeyHighlight {
    0% {
        transform: scale(1.05) translateX(-5px);
        background-color: #4a4a4a;
        box-shadow: 0 4px 15px rgba(244, 129, 32, 0.4);
    }
    100% {
        transform: scale(1.02) translateX(0);
        background-color: #3a3a3a;
        box-shadow: 0 2px 8px rgba(244, 129, 32, 0.2);
    }
}



/* 调整标题样式 */
.statistics-data h2,
.interaction-data h2 {
    color: #e0e0e0;
    font-size: 18px;
    margin-bottom: 15px;
}