body{
  background-color: #1e2127;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease;
}

/* 深色模式（默认） */
body.dark-mode {
  background-color: #1e2127;
}

/* 浅色模式 */
body.light-mode {
  background-color: #f5f5f5;
}

body.light-mode .project-header {
  border-bottom-color: #e0e0e0;
}

body.light-mode .project-title {
  color: #2c3e50;
}

body.light-mode .tip {
  color: #2c3e50;
}

body.light-mode .grid .cell {
  color: #2c3e50;
  border-color: #e0e0e0;
  background: #fff;
}

body.light-mode .unsupport {
  color: #999;
}

body.light-mode .project-intro {
  background: #fff;
  border-color: #e0e0e0;
}

body.light-mode .intro-section h2 {
  color: #2c3e50;
  border-bottom-color: #e0e0e0;
}

body.light-mode .intro-section p {
  color: #555;
}

body.light-mode .code-example h3 {
  color: #27ae60;
}

body.light-mode .code-example pre {
  background: #f8f8f8;
  border-color: #e0e0e0;
}

body.light-mode .code-example code {
  color: #2c3e50;
}

body.light-mode .intro-footer p {
  color: #3498db;
}

body.light-mode .config-overlay {
  background: rgba(0, 0, 0, 0.3);
}

body.light-mode .config-panel {
  background: #fff;
  border-left-color: #e0e0e0;
}

body.light-mode .config-header {
  background: #f8f8f8;
  border-bottom-color: #e0e0e0;
}

body.light-mode .config-header h3 {
  color: #2c3e50;
}

body.light-mode .close-btn {
  color: #999;
}

body.light-mode .close-btn:hover {
  color: #333;
}

body.light-mode .config-section h4 {
  color: #3498db;
}

body.light-mode .code-block {
  background: #f8f8f8;
  border-color: #e0e0e0;
  color: #2c3e50;
}

body.light-mode .image-preview {
  background: #f8f8f8;
  border-color: #e0e0e0;
}

body.light-mode .image-preview img {
  border-color: #e0e0e0;
}

body.light-mode .captcha-image:hover {
  border-color: #27ae60 !important;
}

body.light-mode .image-note {
  color: #999;
}

body.light-mode .image-hint {
  color: #3498db;
}

body.light-mode .validate-container {
  background: #f8f8f8;
  border-color: #e0e0e0;
}

body.light-mode .validate-input-group label {
  color: #2c3e50;
}

body.light-mode .validate-input {
  background: #fff;
  border-color: #e0e0e0;
  color: #2c3e50;
}

body.light-mode .validate-input:focus {
  border-color: #3498db;
}

body.light-mode .validate-input::placeholder {
  color: #999;
}

body.light-mode .validate-btn-once {
  background: #27ae60;
  color: #fff;
}

body.light-mode .validate-btn-once:hover {
  background: #229954;
}

body.light-mode .validate-btn-multi {
  background: #3498db;
  color: #fff;
}

body.light-mode .validate-btn-multi:hover {
  background: #2980b9;
}

body.light-mode .validate-result {
  border-color: #e0e0e0;
}

body.light-mode .result-header.success {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
  border-bottom-color: rgba(39, 174, 96, 0.3);
}

body.light-mode .result-header.error {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border-bottom-color: rgba(231, 76, 60, 0.3);
}

body.light-mode .result-details {
  background: #fff;
}

body.light-mode .result-details p {
  color: #555;
}

body.light-mode .result-details strong {
  color: #3498db;
}

body.light-mode .result-note {
  background: rgba(52, 152, 219, 0.1);
  border-left-color: #3498db;
  color: #3498db !important;
}

/* 项目头部 */
.project-header {
    width: 1280px;
    margin: 20px auto 0;
    padding: 20px 0;
    border-bottom: 2px solid #3e4451;
}

.project-title {
    color: #61afef;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.repo-link.gitee {
    background: #c71d23;
    color: #fff;
}

.repo-link.gitee:hover {
    background: #a91a1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 29, 35, 0.3);
}

.repo-link.github {
    background: #24292e;
    color: #fff;
}

.repo-link.github:hover {
    background: #1a1e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 41, 46, 0.3);
}

.link-icon {
    font-size: 18px;
}

.grid {
    height: 800px;
    width: 1280px;
    margin: auto;
    /* 设置容器布局为grid布局 */
    display: grid;
    /* 指定每一行的宽度 每个宽度中间用空格隔开 */
    grid-template-rows: repeat(13, 7.69%);
    /* 指定每一列的宽度 每个宽度中间用空格隔开 */
    grid-template-columns: repeat(12, 8.33%);
    margin-top:20px;
}

    .grid .cell {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #abb2bf;
        font-size: 10px;
        border: 1px solid #3e4451;
        word-break: break-word;
        background: #282c34;
    }

.grid .cell img{
  border-radius: 1px;
  cursor: pointer;
  transition: transform 0.2s;
}

.grid .cell img:hover{
  transform: scale(1.1);
}

.unsupport{
  color: #5c6370;
}

.tip {
    color: #abb2bf;
    width: 1280px;
    margin: auto;
    margin-top: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* 项目介绍区域 */
.project-intro {
    width: 1280px;
    margin: 30px auto 50px;
    padding: 30px;
    background: #282c34;
    border-radius: 8px;
    border: 1px solid #3e4451;
}

.intro-section {
    margin-bottom: 30px;
}

.intro-section:last-child {
    margin-bottom: 0;
}

.intro-section h2 {
    color: #61afef;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3e4451;
}

.intro-section p {
    color: #abb2bf;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.code-example {
    margin-bottom: 20px;
}

.code-example:last-child {
    margin-bottom: 0;
}

.code-example h3 {
    color: #98c379;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.code-example pre {
    background: #1e2127;
    border: 1px solid #3e4451;
    border-radius: 4px;
    padding: 15px;
    margin: 0;
    overflow-x: auto;
}

.code-example code {
    color: #abb2bf;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.intro-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #3e4451;
    text-align: center;
}

.intro-footer p {
    color: #61afef;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

/* 遮罩层 */
.config-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 999;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 配置信息面板 - 右侧抽屉 */
.config-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 600px;
    background: #282c34;
    border-left: 2px solid #3e4451;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #21252b;
    border-bottom: 1px solid #3e4451;
    position: sticky;
    top: 0;
    z-index: 10;
}

.config-header h3 {
    color: #abb2bf;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    max-width: 480px;
    word-break: break-word;
}

.close-btn {
    background: transparent;
    border: none;
    color: #5c6370;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 28px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #abb2bf;
}

.config-content {
    padding: 20px 25px 30px;
}

.config-section {
    margin-bottom: 30px;
}

.config-section h4 {
    color: #61afef;
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.code-block {
    background: #1e2127;
    border: 1px solid #3e4451;
    border-radius: 4px;
    padding: 15px;
    color: #abb2bf;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.image-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    background: #1e2127;
    border: 1px solid #3e4451;
    border-radius: 4px;
}

.image-preview img {
    max-width: 300px;
    border: 2px solid #3e4451;
    border-radius: 4px;
    margin-bottom: 10px;
}

.captcha-image {
    cursor: pointer;
    transition: all 0.2s;
}

.captcha-image:hover {
    border-color: #98c379 !important;
    transform: scale(1.05);
}

.captcha-image:active {
    transform: scale(0.98);
}

.image-note {
    color: #5c6370;
    font-size: 12px;
    margin: 5px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.image-hint {
    color: #61afef;
    font-size: 11px;
    margin: 5px 0 0 0;
    font-style: italic;
}

.image-warning {
    color: #e5c07b;
    font-size: 11px;
    margin: 5px 0 0 0;
}

/* 验证说明区域 */
.validate-note {
    padding: 15px;
    background: #1e2127;
    border: 1px solid #3e4451;
    border-radius: 4px;
    margin-bottom: 20px;
}

.validate-note p {
    margin: 0 0 10px 0;
    color: #abb2bf;
    font-size: 13px;
    line-height: 1.6;
}

.validate-note p:last-child {
    margin-bottom: 0;
}

.validate-note code {
    background: #282c34;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: #98c379;
}

.validate-note ul {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.validate-note li {
    margin: 5px 0;
    color: #abb2bf;
    font-size: 13px;
}

.architecture-note {
    color: #61afef !important;
    font-style: italic;
    margin-top: 10px !important;
}

/* 校验演示区域 */
.validate-demo-section {
    margin-bottom: 20px;
}

.validate-demo-section h5 {
    color: #98c379;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.generate-test-btn {
    padding: 10px 20px;
    background: #61afef;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 15px;
}

.generate-test-btn:hover {
    background: #528bdb;
    transform: translateY(-1px);
}

/* 测试验证码区域 */
.test-captcha-area {
    padding: 15px;
    background: #1e2127;
    border: 1px solid #3e4451;
    border-radius: 4px;
    text-align: center;
}

.test-captcha-image {
    max-width: 200px;
    border: 2px solid #3e4451;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    margin: 0 auto 10px;
}

.test-captcha-image:hover {
    border-color: #98c379;
    transform: scale(1.05);
}

.test-config-note {
    color: #e5c07b;
    font-size: 11px;
    margin: 5px 0 0 0;
}

/* 浅色模式样式 */
body.light-mode .validate-note {
    background: #f8f8f8;
    border-color: #e0e0e0;
}

body.light-mode .validate-note p,
body.light-mode .validate-note li {
    color: #555;
}

body.light-mode .validate-note code {
    background: #e8e8e8;
    color: #27ae60;
}

body.light-mode .architecture-note {
    color: #3498db !important;
}

body.light-mode .validate-demo-section h5 {
    color: #27ae60;
}

body.light-mode .generate-test-btn {
    background: #3498db;
}

body.light-mode .generate-test-btn:hover {
    background: #2980b9;
}

body.light-mode .test-captcha-area {
    background: #f8f8f8;
    border-color: #e0e0e0;
}

body.light-mode .test-captcha-image {
    border-color: #e0e0e0;
}

body.light-mode .test-captcha-image:hover {
    border-color: #27ae60;
}

body.light-mode .test-config-note {
    color: #e67e22;
}

/* 验证码校验容器 */
.validate-container {
    background: #1e2127;
    border: 1px solid #3e4451;
    border-radius: 4px;
    padding: 20px;
}

.validate-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.validate-input-group label {
    color: #abb2bf;
    font-size: 14px;
    font-weight: 500;
}

.validate-input {
    width: 100%;
    padding: 10px 12px;
    background: #282c34;
    border: 1px solid #3e4451;
    border-radius: 4px;
    color: #abb2bf;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.validate-input:focus {
    outline: none;
    border-color: #61afef;
}

.validate-input::placeholder {
    color: #5c6370;
}

.validate-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.validate-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.validate-btn-once {
    background: #98c379;
    color: #282c34;
}

.validate-btn-once:hover {
    background: #7cb668;
    transform: translateY(-1px);
}

.validate-btn-multi {
    background: #61afef;
    color: #282c34;
}

.validate-btn-multi:hover {
    background: #528bdb;
    transform: translateY(-1px);
}

/* 验证结果显示 */
.validate-result {
    margin-top: 20px;
    border: 1px solid #3e4451;
    border-radius: 4px;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
}

.result-header.success {
    background: rgba(152, 195, 121, 0.15);
    color: #98c379;
    border-bottom: 1px solid rgba(152, 195, 121, 0.3);
}

.result-header.error {
    background: rgba(224, 108, 117, 0.15);
    color: #e06c75;
    border-bottom: 1px solid rgba(224, 108, 117, 0.3);
}

.result-icon {
    font-size: 20px;
    font-weight: bold;
}

.result-details {
    padding: 15px;
    background: #282c34;
}

.result-details p {
    margin: 0 0 10px 0;
    color: #abb2bf;
    font-size: 13px;
    line-height: 1.6;
}

.result-details p:last-child {
    margin-bottom: 0;
}

.result-details strong {
    color: #61afef;
    font-weight: 500;
}

.result-note {
    margin-top: 15px !important;
    padding: 10px 12px;
    background: rgba(97, 175, 239, 0.1);
    border-left: 3px solid #61afef;
    color: #61afef !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .config-panel {
        width: 500px;
    }
}

@media (max-width: 768px) {
    .config-panel {
        width: 100%;
        max-width: 100%;
    }
}