body {
    background: #ffcccc;
    font-family: 'Arial', sans-serif;
}
.navbar {
    background-color: #ff4d4d;
}
.navbar .btn-outline-secondary {
    color: #fff;
    border-color: #fff;
}
.navbar .btn-outline-secondary:hover {
    background-color: #fff;
    color: #ff4d4d;
}
.addon-card {
    margin: 1rem 0;
    transition: transform 0.2s;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ff4d4d;
}
.addon-card:hover {
    transform: translateY(-3px);
}
.btn-primary {
    background: linear-gradient(45deg, #ff4d4d, #ff8080);
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(45deg, #ff8080, #ff4d4d);
}
.btn-secondary {
    background: linear-gradient(45deg, #4d4dff, #8080ff);
    border: none;
}
.btn-secondary:hover {
    background: linear-gradient(45deg, #8080ff, #4d4dff);
}
.modal-content {
    background: rgba(255, 255, 255, 0.9);
}
.badge {
    font-size: 1rem;
}
.text-gradient {
    background: linear-gradient(45deg, #ff4d4d, #ff8080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar .btn-outline-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}
.navbar .btn-outline-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

@media (max-width: 768px) {
/* 导航栏按钮垂直排列 */
.navbar .btn-group {
    width: 100%;
    flex-direction: column;
}

.navbar .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* 操作按钮区域 */
.text-end {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 搜索框调整 */
#searchId {
    width: 100%;
    margin-bottom: 0.5rem;
}

#searchById {
    width: 100%;
}

/* 卡片间距优化 */
.addon-card {
    margin: 0.5rem 0;
    border-radius: 0.75rem;
}

/* 模态框全屏 */
.modal-dialog {
    margin: 1.75rem auto; /* 恢复默认外边距 */
    max-width: 96%; /* 添加最大宽度限制 */
}

.modal-content {
    border-radius: 0.5rem; /* 恢复圆角 */
}


/* 按钮组垂直排列 */
.btn-group > .btn {
    width: 100%;
    margin: 0.25rem 0;
}

/* 输入组垂直排列 */
.input-group {
    flex-direction: column;
}

.input-group > .form-control,
.input-group > .btn {
    width: 100%;
    margin: 0.25rem 0;
}

/* 卡片内容优化 */
.card-title {
    font-size: 1.25rem;
}

.card-text {
    font-size: 0.9rem;
}

/* 底部footer调整 */
footer p {
    font-size: 0.85rem;
    line-height: 1.4;
}
}

/* 小屏手机特殊适配 */
@media (max-width: 480px) {
h1 {
    font-size: 1.75rem;
}

.badge {
    font-size: 0.8rem;
}

.modal-body pre {
    font-size: 0.7rem;
    overflow-x: auto;
}

footer {
    font-size: 0.8rem;
}
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1024px) {
.addon-card {
    margin: 0.75rem;
}

.row-cols-md-2 .col {
    flex: 0 0 50%;
    max-width: 50%;
}
}
@media (max-width: 767.98px) {
    .search-select {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0.5rem;
        border-radius: 8px !important;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .search-input {
        width: 100% !important;
        border-radius: 8px !important;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .search-btn {
        width: 100%;
        border-radius: 8px !important;
        padding: 14px;
        font-size: 16px;
        order: 2;
    }
    
    .mobile-input-group {
        flex-direction: column;
        gap: 12px;
    }

/* 修复iOS输入框缩放问题 */
@supports (-webkit-overflow-scrolling: touch) {
input[type="number"] {
    font-size: 16px;
    transform: scale(0.98);
}
}
}
@media (max-width: 767.98px) {
/* 模态框自适应调整 */
.modal-dialog {
width: auto;
margin: 10px;
}

.modal-content {
min-height: auto; /* 移除强制高度 */
}

/* 输入框优化 */
.search-input {
width: 100% !important;
max-width: 100%;
padding: 12px;
}

/* 按钮优化 */
.search-btn {
width: auto;
min-width: 100px;
padding: 12px 20px;
}
}

/* 内容自适应模态框 */
.auto-size-modal .modal-dialog {
width: auto;
max-width: 600px; /* 设置最大限制 */
margin: 20px auto;
}

/* 表单元素优化 */
.modal-body textarea {
min-height: 200px; /* 合理的最小高度 */
max-height: 70vh; /* 设置最大高度 */
overflow-y: auto;
resize: vertical; /* 允许垂直调整 */
}

/* 页脚按钮优化 */
.modal-footer {
flex-wrap: nowrap; /* 防止按钮换行 */
gap: 10px;
}

/* 输入框组优化 */
.input-group {
max-width: 500px; /* 限制最大宽度 */
margin: 0 auto;
}

    /* 页脚优化样式 */
    .market-footer {
        background: rgba(255, 255, 255, 0.95);
        border-top: 2px solid #ff4d4d;
        box-shadow: 0 -4px 12px rgba(255, 77, 77, 0.1);
        margin-top: 3rem;
        padding: 2rem 0;
    }
    
    .disclaimer-box {
        background: #fff5f5;
        border-radius: 12px;
        padding: 1.25rem;
        margin-bottom: 2rem;
        border: 1px solid #ffcccc;
        position: relative;
    }
    
    .disclaimer-box i {
        position: absolute;
        left: 1rem;
        top: -0.8rem;
        font-size: 1.5rem;
        background: white;
        padding: 0 0.25rem;
    }
    
    .disclaimer-text {
        color: #cc3333;
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
        text-align: center;
    }
    
    .credit-box {
        display: grid;
        gap: 1.5rem;
        text-align: center;
    }
    
    .credit-item {
        padding: 0.75rem 0;
        border-bottom: 1px dashed #eee;
    }
    
    .credit-item:last-child {
        border-bottom: none;
    }
    
    .credit-label {
        color: #ff4d4d;
        font-weight: 500;
        margin-right: 0.5rem;
    }
    
    .credit-item a {
        color: #666;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .credit-item a:hover {
        color: #ff4d4d;
    }
    
    .badge {
        font-weight: normal;
        margin: 0 3px;
        vertical-align: baseline;
    }
    
    .bg-vercel {
        background: linear-gradient(45deg, #000, #444);
    }
    
    .bg-bootstrap {
        background: linear-gradient(45deg, #7952b3, #563d7c);
    }
    
    @media (max-width: 767.98px) {
        .market-footer {
            padding: 1.5rem 0;
        }
        
        .disclaimer-text {
            font-size: 0.8rem;
            text-align: left;
            padding-left: 1.5rem;
        }
        
        .credit-box {
            gap: 1rem;
        }
        
        .credit-item {
            font-size: 0.9rem;
        }
    }
/* 修改现有toast样式 */
.toast-container {
    z-index: 99999 !important; /* 确保最高层级 */
    position: fixed;
    top: 20px;
    right: 20px;
}

/* 强制提升toast层级 */
.toast {
    position: relative;
    z-index: 999999 !important; /* 双重保险 */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* 移动端适配 */
@media (max-width: 767.98px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .toast {
        width: 100% !important;
        max-width: 100%;
    }
}
.highlight {
    background-color: #ffd700;
    padding: 0 2px;
    border-radius: 3px;
}

@media (max-width: 767.98px) {
    .search-select {
        min-width: 110px !important;
        max-width: 40% !important;
        font-size: 14px;
        padding: 10px 12px;
        border-radius: 8px 0 0 8px !important;
    }
    
    .search-input {
        border-radius: 0 8px 8px 0 !important;
        font-size: 14px;
        min-width: 60px;
    }
    
    .search-btn {
        width: auto;
        min-width: 60px;
        padding: 10px 15px;
        margin-left: 8px;
        border-radius: 8px !important;
    }
    
    .mobile-input-group .d-flex {
        flex-wrap: nowrap;
        gap: 4px;
    }
    
    /* 针对超小屏幕优化 */
    @media (max-width: 375px) {
        .search-select {
            min-width: 100px !important;
            font-size: 13px;
        }
        
        .search-input::placeholder {
            font-size: 13px;
        }
        
        .search-btn {
            min-width: 50px;
            padding: 8px 12px;
        }
    }
}

/* 修改模态框优化 */
#modifyAddonModal .modal-dialog {
    max-width: 800px;
}

#modifyAddonModal textarea {
    font-family: monospace;
    min-height: 300px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
}

#modifyAddonModal .form-label {
    font-weight: 500;
    color: #ff4d4d;
}