/* 文本输入区域样式 */
.left-aligned-textarea {
    text-align: left !important;
    vertical-align: top !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 为特定的文本框添加更具体的样式，确保文本左对齐 */
#textContent.left-aligned-textarea {
    text-align: left !important;
    text-align-last: left !important;
    /* 确保最后一行也左对齐 */
    direction: ltr !important;
    /* 确保文本方向为从左到右 */
    display: block !important;
    align-self: flex-start !important;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    color: #333;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    background-image: url('横屏.png');
    /* 默认使用横屏图片 */
}

/* 移动设备优先 - 小屏幕设备使用竖屏图片 */
@media (max-width: 768px) {
    body {
        background-image: url('竖屏.png') !important;
    }
}

/* 基于屏幕方向的优化 - 确保竖屏设备使用竖屏图片 */
@media screen and (orientation: portrait) {
    body {
        background-image: url('竖屏.png') !important;
    }
}

/* 针对大屏幕横屏设备的优化 */
@media (min-width: 769px) and (orientation: landscape) {
    body {
        background-image: url('横屏.png') !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.4);
    /* 半透明背景 */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #5a67d8, #805ad5);
    /* 稍微调整渐变颜色 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* 增加文字阴影提高可读性 */
}

header p {
    font-size: 1.2em;
    color: #444;
    /* 更深的颜色提高可读性 */
    font-weight: 500;
}

/* 主要内容区域 */
.main-content {
    display: grid;
    gap: 20px;
}

/* 公告弹窗样式 */
.modal {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    /* 固定定位 */
    z-index: 9999;
    /* 确保在最上层 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明黑色背景 */
}

.modal-content {
    background-color: white;
    /* 白色弹窗 */
    margin: 10% auto;
    /* 10% 从顶部和居中 */
    padding: 20px;
    border: 1px solid #888;
    width: 500px;
    height: 500px;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    color: #333;
    line-height: 1.6;
    height: 380px;
    overflow-y: auto;
}

.modal-body img {
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-body img:hover {
    transform: scale(1.02);
}

.modal-body p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.section {
    background: rgba(255, 255, 255, 0.4);
    /* 半透明背景 */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #222;
    /* 更深的颜色提高可读性 */
    border-bottom: 2px solid #5a67d8;
    padding-bottom: 10px;
    font-weight: 600;
}

.section.log-section {
    padding: 0px 0px;
    border-radius: 6px;
    max-width: 600px;
    /* 设置最大宽度 */
    /* 宽度自适应父容器 */
    margin: 0 auto;
    /* 居中显示 */
}

/* 输入组样式 */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 挂件网格样式 */
.pendant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pendant-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pendant-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pendant-item.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pendant-item.red-pendant {
    border-left: 4px solid #dc3545;
}

.pendant-item.red-pendant.selected {
    border-left: 4px solid #fff;
}

/* 批量操作按钮 */
.batch-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 已选挂件样式 */
.selected-pendants {
    display: grid;
    gap: 15px;
}

.selected-pendant-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pendant-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pendant-name {
    font-weight: bold;
    color: #333;
    min-width: 120px;
}

.quantity-input {
    width: 100px;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-align: center;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background: #c82333;
}

/* 新版加解密开关样式 */
.new-encryption-toggle {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 36px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.new-encryption-option {
    position: relative;
    float: left;
    width: 50%;
    height: 100%;
    text-align: center;
    line-height: 32px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.new-option {
    color: #64748b;
    border-radius: 18px 0 0 18px;
}

.old-option {
    color: #64748b;
    border-radius: 0 18px 18px 0;
}

.new-encryption-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 56px;
    height: 32px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-radius: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.new-encryption-toggle.active-old .new-encryption-slider {
    left: 62px;
}

.new-encryption-toggle.active-new .new-encryption-option.new-option,
.new-encryption-toggle.active-old .new-encryption-option.old-option {
    color: white;
    font-weight: bold;
}

/* 紧凑模式开关样式 */
.compact-mode-toggle {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 36px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compact-mode-option {
    position: relative;
    float: left;
    width: 50%;
    height: 100%;
    text-align: center;
    line-height: 32px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.enabled-option {
    color: #64748b;
    border-radius: 18px 0 0 18px;
}

.disabled-option {
    color: #64748b;
    border-radius: 0 18px 18px 0;
}

.compact-mode-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 56px;
    height: 32px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    border-radius: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.compact-mode-toggle.active-disabled .compact-mode-slider {
    left: 62px;
}

.compact-mode-toggle.active-enabled .compact-mode-option.enabled-option,
.compact-mode-toggle.active-disabled .compact-mode-option.disabled-option {
    color: white;
    font-weight: bold;
}

/* 按钮样式 */

/* 返回按钮样式 */
.back-button {
    background: linear-gradient(135deg, #4e73df 0%, #2e59d9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(46, 89, 217, 0.3);
    transition: all 0.3s ease;
}

.back-button:hover {
    background: linear-gradient(135deg, #355cc9 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 89, 217, 0.4);
}

.back-button:before {
    content: '←';
    font-size: 18px;
}

/* 平台开关样式 */
.platform-switch {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 36px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.platform-switch.active-on .platform-slider {
    left: 2px;
}

.platform-switch.active-off .platform-slider {
    left: 62px;
}

.platform-switch.active-on .on-option,
.platform-switch.active-off .off-option {
    color: white;
    font-weight: bold;
}

.platform-option {
    position: relative;
    float: left;
    width: 50%;
    height: 100%;
    text-align: center;
    line-height: 32px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
    color: #64748b;
}

.android-option {
    color: #64748b;
    border-radius: 18px 0 0 18px;
}

.ios-option {
    color: #64748b;
    border-radius: 0 18px 18px 0;
}

.platform-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 56px;
    height: 32px;
    background: linear-gradient(135deg, #4e73df 0%, #2e59d9 100%);
    border-radius: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.platform-switch.active-ios .platform-slider {
    left: 62px;
}

.platform-switch.active-android .platform-option.android-option,
.platform-switch.active-ios .platform-option.ios-option {
    color: white;
    font-weight: bold;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-special {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-special:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* 动作区域 */
.action-section {
    text-align: center;
    margin-top: 20px;
}

.action-section .btn {
    margin: 0 10px;
}

/* 日志样式 */
.log-output {
    background: #000000;
    /* 日志区域背景色（纯黑色） */
    color: #00ff00;
    /* 日志文字颜色（绿色） */
    font-family: 'Consolas', 'Monaco', monospace;
    /* 使用等宽字体，便于阅读日志 */
    max-width: 600px;
    /* 最大宽度为600px，防止太宽 */
    width: 100%;
    /* 宽度占满父容器 */
    max-height: 400px;
    /* 最大高度为400px，内容超出时可滚动 */
    padding: 15px;
    /* 内边距，内容不贴边 */
    margin: 0 auto 15px auto;
    /* 上下间距15px，左右居中 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* 添加阴影效果 */
    border: 1px solid #333;
    /* 添加深色边框 */
    border-radius: 8px;
    /* 添加圆角 */
    text-align: left;
    /* 日志内容左对齐显示 */
    overflow-y: auto;
    /* 垂直滚动 */
    line-height: 1.1;
    /* 减少行高，减少行间距 */
}




.log-item {
    margin-bottom: 2px;
    padding: 2px 0;
    word-wrap: break-word;
}

.log-item.info {
    color: #00bfff;
    /* 蓝色 */
}

.log-item.success {
    color: #00ff00;
    /* 绿色 */
    font-weight: bold;
}

.log-item.error {
    color: #ff4444;
    /* 红色 */
    font-weight: bold;
}

.log-item.warning {
    color: #ffaa00;
    /* 橙色 */
}

.log-item.highlight {
    color: #00ffff;
    /* 青色 */
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    .pendant-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .selected-pendant-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .pendant-info {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .batch-actions {
        justify-content: center;
    }

    .action-section .btn {
        margin: 5px;
        width: 100%;
        max-width: 200px;
    }

}


/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 成功/失败状态指示 */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-success {
    background-color: #28a745;
}

.status-error {
    background-color: #dc3545;
}

.status-warning {
    background-color: #ffc107;
}

/* 滚动条样式 */
.log-output::-webkit-scrollbar {
    width: 8px;
}

.log-output::-webkit-scrollbar-track {
    background: #222;
    /* 滚动条轨道更深的颜色 */
    border-radius: 4px;
}

.log-output::-webkit-scrollbar-thumb {
    background: #666;
    /* 滚动条滑块颜色 */
    border-radius: 4px;
}

.log-output::-webkit-scrollbar-thumb:hover {
    background: #888;
    /* 滑块悬停颜色 */
}

/* 挂件数量输入框样式，可加在 style.css 最后 */
.pendant-item input[type="number"] {
    width: 80px;
    /* 比原来更长 */
    /* 隐藏上下箭头（兼容 Chrome、Edge） */
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* 隐藏上下箭头（兼容 Firefox） */
.pendant-item input[type="number"]::-webkit-outer-spin-button,
.pendant-item input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.center-input {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-input label {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.center-input textarea {
    display: block;
    margin: 0 auto;
    width: 80%;
    max-width: 700px;
    min-width: 300px;
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #e1e5e9;
}

/* 功能选择按钮样式 */
.function-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* 图片按钮样式 */
.image-button {
    padding: 10px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 120px;
    justify-content: center;
    border: 2px solid #e1e5e9;
    font-size: 28px;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    font-weight: 600;
    color: #a4fa6a;
}

.image-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.image-button img {
    max-width: 120px;
    max-height: 120px;
    margin-bottom: 8px;
}

.function-btn {
    padding: 10px 15px;
    /* 减小内边距 */
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 80px;
    /* 减小最小高度 */
    justify-content: center;
    font-size: 14px;
    /* 减小字体大小 */
    line-height: 1.4;
}

.function-btn small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.8;
    font-weight: normal;
}

.function-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 无尽功能样式 */
.endless-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.endless-info ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.endless-info li {
    margin: 5px 0;
    color: #666;
}

/* 预留功能样式 */
.placeholder-content {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    color: #666;
}

.placeholder-content p {
    margin: 10px 0;
    font-size: 16px;
}

/* 版本区域样式 */
.version-section {
    margin: 30px auto;
    padding: 0;
    max-width: 600px;
    background: #ffffff;
    border: 2px solid #007bff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    overflow: hidden;
}

.version-title {
    margin: 0 0 20px 0;
    padding: 12px 0;
    font-size: 20px;
    font-weight: bold;
    color: #343a40;
    text-align: center;
    border-bottom: 3px solid #007bff;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px 8px 0 0;
}

.version-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin: 0;
    padding: 20px;
    width: 100% !important;
    box-sizing: border-box !important;
}

.version-buttons .function-btn {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 响应式设计 */
@media (max-width: 320px) {
    .version-buttons {
        grid-template-columns: 1fr !important;
    }

    .version-buttons .function-btn {
        width: 100%;
        max-width: 300px;
        justify-self: center;
    }
}

/* 植物选择样式 */
.plant-selection {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.plant-selection select {
    padding: 10px 15px;
    border: 2px solid #007bff;
    border-radius: 8px;
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plant-selection select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    background-color: #fff;
}

.plant-selection select:hover {
    border-color: #0056b3;
    background-color: #e9ecef;
}

/* 折叠面板样式 */
.collapsible-section {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1;
}

.collapsible-section.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

.toggle-icon {
    font-size: 0.8em;
    color: #666;
    transition: transform 0.3s ease;
    display: inline-block;
}

.toggle-icon.rotated {
    transform: rotate(-90deg);
}

.version-title {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.version-title:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 植物查询功能样式 */
.plant-search-page {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.page-header {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.search-container {
    margin: 20px 0;
    text-align: center;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #5a67d8;
}

.search-bar button {
    background: #5a67d8;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background: #4c51bf;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 0 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
    border-radius: 20px;
}

.filter-group select {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 5px 10px;
    outline: none;
}

.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.plant-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plant-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.plant-avatar {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    background: white;
    padding: 5px;
    border: 1px solid #ddd;
}

.plant-rarity {
    position: absolute;
    top: -5px;
    right: -5px;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    z-index: 10;
}

.plant-info {
    margin-top: 5px;
}

.plant-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
    margin: 0 auto 5px;
}

.plant-fragment {
    font-size: 12px;
    margin: 0;
}

.fragment-count {
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 24px;
    background: #5a67d8;
}

.query-button {
    background: #5a67d8;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.query-button:hover {
    background: #4c51bf;
}

.query-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 加载状态 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    background: white;
    padding: 20px 40px;
    border-radius: 10px;
    text-align: center;
}

.loading-spinner::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #5a67d8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 错误提示 */
.error-message {
    background: #fee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
}

/* 植2博物馆样式 */
.museum-tab-btn {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    color: #333;
}

.museum-tab-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.museum-tab-btn.active {
    background: rgba(255, 215, 0, 0.6);
    border-color: rgba(255, 215, 0, 0.8);
    color: #000;
}

/* 博物馆内容展示区域 */
.museum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.museum-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.museum-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.museum-item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border: 1px solid #ddd;
    margin: 0 auto 10px;
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .plant-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 10px;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* 植2博物馆响应式设计 */
    .museum-tabs {
        flex-wrap: wrap;
    }

    .museum-tab-btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    .museum-item {
        width: 80px;
        height: 80px;
    }

    .museum-item img {
        width: 60px;
        height: 60px;
    }

    .museum-item-name {
        font-size: 11px;
    }
}

.plant-avatar {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.plant-name {
    font-size: 12px;
    max-width: 50px;
}

.fragment-count {
    font-size: 10px;
    padding: 1px 6px;
}

.filters-container {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.filter-group {
    flex: 1;
    justify-content: space-between;
    font-size: 12px;
}

.filter-group select {
    font-size: 11px;
    padding: 3px 5px;
    min-width: 80px;
}

.filter-group span {
    font-size: 11px;
}


/* 账号修改功能样式 */
.platform-selection {
    margin-bottom: 30px;
}

.platform-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.platform-btn {
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-btn.active {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.platform-btn:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.platform-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.modification-categories {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.category-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4em;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.function-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
}

.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.function-card:hover::before {
    transform: scaleX(1);
}

.function-card h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.2em;
}

.function-card p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
}

.function-card .input-group {
    margin-bottom: 15px;
}

.function-card .input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.function-card .input-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.function-card .input-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.function-card .btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.function-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .platform-buttons {
        flex-direction: column;
        align-items: center;
    }

    .function-grid {
        grid-template-columns: 1fr;
    }

    .platform-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* 圆点开关样式 */
.dot-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

/* 小型圆点样式开关 */
.dot-switch.small-switch {
    width: 36px;
    height: 20px;
}

.dot-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dot-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

/* 小型滑块样式 */
.small-switch .dot-slider {
    border-radius: 20px;
}

.dot-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* 小型圆点样式 */
.small-switch .dot-slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
}

input:checked+.dot-slider {
    background-color: #667eea;
}

input:focus+.dot-slider {
    box-shadow: 0 0 1px #667eea;
}

input:checked+.dot-slider:before {
    transform: translateX(22px);
}

/* 小型开关选中状态圆点位置 */
.small-switch input:checked+.dot-slider:before {
    transform: translateX(16px);
}

/* 追击排行榜样式 */
#排行榜模板 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 前三名特殊显示 */
.top-three {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.rank-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
}

.rank-2 {
    background: rgba(211, 211, 211, 0.8);
    width: 120px;
    order: 2;
}

.rank-1 {
    background: rgba(255, 215, 0, 0.8);
    padding: 20px 15px;
    width: 140px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    order: 1;
}

.rank-3 {
    background: rgba(184, 134, 11, 0.8);
    width: 120px;
    order: 3;
}

.rank-number {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.rank-number.rank-1 {
    font-size: 24px;
    color: #ffd700;
}

.rank-number.rank-2 {
    color: #c0c0c0;
}

.rank-number.rank-3 {
    color: #cd7f32;
}

.rank-name {
    font-weight: bold;
}

.rank-score {
    font-size: 16px;
    color: #4e73df;
}

.rank-score.rank-1 {
    font-size: 18px;
}

/* 其他排名 */
.other-ranks {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
}

.rank-header {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.rank-header div {
    font-weight: bold;
    color: #666;
    width: 25%;
    text-align: center;
}

.rank-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #165DFF;
}

.rank-row div {
    width: 25%;
    text-align: center;
}

.rank-row:last-child {
    border-bottom: none;
}

/* 我的排名 */
.my-rank {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.my-rank-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.my-rank-content {
    display: flex;
    justify-content: space-between;
}

.my-rank-name {
    font-weight: bold;
}