body{
    margin: 0;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
}

/* 统计卡片样式 */
.stats-section {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue {
    background-color: #e3f2fd;
}

.stat-icon.blue i {
    color: #1976d2;
}

.stat-icon.red {
    background-color: #ffebee;
}

.stat-icon.red i {
    color: #d32f2f;
}

.stat-icon.green {
    background-color: #e8f5e8;
}

.stat-icon.green i {
    color: #388e3c;
}

.stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.stat-value {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.stat-value.blue {
    color: #1976d2;
}

.stat-value.red {
    color: #d32f2f;
}

.stat-value.green {
    color: #388e3c;
}

/* 搜索区域样式 */
.search-section {
    margin-bottom: 30px;
}

.search-section form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-section input[type="text"] {
    flex: 1;
    min-width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 模板卡片样式 */
.template-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-top: 20px;
}

.template-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.template-image {
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.image-thumb-container {
    height: 100%;
    cursor: pointer;
}

.image-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-thumb-container:hover .image-thumb {
    transform: scale(1.05);
}

.no-image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder i {
    font-size: 48px;
    color: #ccc;
}

.template-content {
    padding: 0;
}

.template-content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.template-meta {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.meta-info {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination span {
    margin: 0 15px;
}

/* 栏目管理样式 */
.category-list {
    margin: 20px 0;
}

.current-categories {
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

#current-categories-list {
    margin-top: 10px;
}

/* 内联表单样式 */
.form-inline {
    display: inline;
}

/* 无边框按钮样式 */
.btn-borderless {
    border: none;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.empty-state p {
    margin: 0 0 30px 0;
    color: #666;
}

/* 标题样式 */
h1 {
    color: #007bff;
    margin-top: 0;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

h2 {
    color: #007bff;
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
}

h3 {
    color: #007bff;
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
}

/* 头部样式 */
header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
}

header h1 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

/* 导航样式 */
nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    left: 0;
    right: 0;
    transition: height 0.3s ease;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo样式 */
.nav-logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-logo img {
    height: 60px;
    transition: all 0.3s ease;
}

/* 导航链接容器 */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* 导航链接样式 */
.nav-links a {
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.nav-links a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

.nav-links a i {
    font-size: 16px;
    color: #667eea;
}

/* 菜单切换按钮 */
.menu-toggle {
    display: none;
    cursor: pointer;
    color: #667eea;
    font-size: 24px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        height: 70px;
    }
    
    .nav-logo img {
        height: 50px;
    }
    
    .nav-logo span {
        font-size: 18px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 10px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
        font-size: 16px;
        color: #333;
    }
    
    .nav-links a:hover {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
    }
    
    nav .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    nav {
        height: 60px;
    }
    
    .nav-logo img {
        height: 40px;
    }
    
    .nav-logo span {
        font-size: 16px;
    }
    
    .menu-toggle {
        font-size: 20px;
    }
    
    .nav-links {
        top: 60px;
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.btn:hover {
    background-color: #0069d9;
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
    transform: translateY(-1px);
}

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

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    transform: translateY(-1px);
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease forwards;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="file"] {
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

/* 参数组样式 */
.param-group,
.model-group,
.sample-image-group {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 4px solid #007bff;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

/* 样图占位符样式 */
.sample-image-placeholder {
    flex: 0 1 calc(33.333% - 20px);
    min-width: 200px;
    min-height: 190px;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    max-width: calc(33.333% - 20px);
}

/* 选项组样式 */
.option-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.option-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
}

.option-group .btn {
    white-space: nowrap;
}

/* 选项容器样式 */
.options-container {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.sample-image-placeholder:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.placeholder-content {
    text-align: center;
    color: #666;
    transition: all 0.3s ease;
}

.sample-image-placeholder:hover .placeholder-content {
    color: #007bff;
}

.placeholder-content i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.sample-image-placeholder:hover .placeholder-content i {
    transform: scale(1.1);
}

.placeholder-content p {
    margin: 0;
    font-size: 14px;
}

/* 样图容器样式 */
#sample-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}


/* 样图上传和预览样式 */
.sample-image-group {
    position: relative;
    flex: 0 1 calc(33.333% - 20px);
    min-width: 200px;
    max-width: calc(33.333% - 20px);
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sample-image-group:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
    transform: translateY(-2px);
}

.sample-image-group input[type="file"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
}

/* 预览操作按钮 */
.preview-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    flex-wrap: wrap;
}

.preview-actions .btn {
    white-space: nowrap;
}

/* 删除按钮样式 */
.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.delete-btn:hover {
    background-color: rgba(220, 53, 69, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

/* 现有样图显示 */
.sample-image-group img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    object-fit: contain;
    align-self: center;
    margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #sample-images-container {
        flex-direction: column;
    }
    
    .sample-image-placeholder {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: 150px;
    }
    
    .sample-image-group {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .placeholder-content i {
        font-size: 36px;
    }
    
    .sample-image-group img {
        max-height: 200px;
    }
    
    /* 选项组响应式样式 */
    .option-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .option-group input {
        width: 100%;
        box-sizing: border-box;
    }
    
    .option-group .btn {
        width: 100%;
        text-align: center;
    }
    
    /* 成功页面按钮响应式样式 */
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        min-width: unset;
    }
}

/* 成功页面样式 */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.template-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
}

.form-url-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
}

.qr-code-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
    text-align: center;
}

.qr-code {
    display: inline-block;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.url-box {
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    word-break: break-all;
    margin-top: 10px;
    font-family: monospace;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}


.form-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    font-size: 14px;
}

/* 参考图上传样式 */
.reference-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.reference-image-placeholder {
    flex: 0 1 calc(33.333% - 20px);
    min-width: 200px;
    min-height: 170px;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    max-width: calc(33.333% - 20px);
    position: relative;
}

.reference-image-placeholder:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.reference-image-placeholder .placeholder-content {
    text-align: center;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.reference-image-placeholder .placeholder-content i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.reference-image-placeholder:hover .placeholder-content i {
    transform: scale(1.1);
}

.reference-image-placeholder .image-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
}

.reference-image-placeholder .image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.reference-image-placeholder .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.reference-image-placeholder .delete-btn:hover {
    background-color: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .reference-images-container {
        flex-direction: column;
    }
    
    .reference-image-placeholder {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
}







.param-group input,
.param-group select {
    flex: 1;
    min-width: 150px;
}

.param-group .btn {
    align-self: flex-end;
}

/* 首页样式 */
.hero {
    background-color: #007bff;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 30px;
}

.hero h1 {
    margin: 0;
    font-size: 2.5em;
    color: white;
}

.hero p {
    margin: 10px 0 20px;
    font-size: 1.2em;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 30px;
}

.feature {
    background-color: white;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1 1 300px;
    max-width: 350px;
}

.feature h3 {
    color: #333;
}

/* 我的模板样式 */
.welcome {
    background-color: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.templates {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.templates h2 {
    color: #333;
    margin-top: 0;
}

.template-list {
    list-style: none;
    padding: 0;
}

.template-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.template-item:last-child {
    border-bottom: none;
}

.template-item h3 {
    margin: 0 0 10px 0;
    color: #007bff;
}

.template-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.template-actions {
    margin-top: 10px;
}

/* 提交表单样式 */
.template-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.image-upload-section,
.parameter-section,
.model-section,
.config-section,
.public-section {
    margin-bottom: 30px;
}

/* 提交成功样式 */
.success-message {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
}

.success-icon {
    text-align: center;
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 4rem;
    color: #007bff;
}

.submission-code {
    text-align: center;
}

.code-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 1px;
    color: #333;
    margin: 15px 0;
    position: relative;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.code-box:hover {
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: #0069d9;
}

.copy-btn.copied {
    background-color: #28a745;
}

.info-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

/* 提交详情样式 */
.submission-info {
    margin-bottom: 10px;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.submission-code {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1rem;
}

.submission-time {
    color: #999;
    font-size: 0.9rem;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-row {
    display: flex;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.detail-label {
    font-weight: bold;
    margin-right: 20px;
    min-width: 120px;
    color: #555;
}

.detail-value {
    color: #333;
    flex: 1;
}

.detail-value ul {
    margin: 0;
    padding-left: 20px;
}

/* 图片预览 */
.image-preview {
    margin-top: 10px;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* 提交列表样式 */
.submission-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.submission-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.submission-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.submission-details {
    margin-top: 0;
    background-color: white;
    padding: 0;
    border-radius: 0;
    border-left: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 优化生图卡片内容样式 */
.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.submission-code {
    font-weight: 600;
    color: #007bff;
    font-size: 1.1rem;
    background: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: #007bff;
    background-clip: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submission-code::before {
    content: '📋';
    -webkit-text-fill-color: #007bff;
    background: none;
}

.submission-time {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.submission-time::before {
    content: '⏰';
}

.detail-row {
    display: flex;
    margin-bottom: 0;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
}

.detail-label {
    font-weight: 600;
    min-width: 100px;
    color: #495057;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.95rem;
    text-align: left;
}

.detail-value {
    color: #343a40;
    flex: 1;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    min-width: 200px;
}

.detail-value ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.detail-value li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.detail-value li:last-child {
    margin-bottom: 0;
}

.submission-item .actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.submission-item .btn {
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none;
    font-size: 0.9rem;
    letter-spacing: normal;
}

.submission-item .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

.submission-item .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.submission-item .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

/* 模板信息样式 */
.submission-template-info {
    background-color: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    margin-bottom: 10px;
}

.submission-template-info h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #343a40;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submission-template-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.submission-template-info a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.submission-template-info a:hover {
    text-decoration: underline;
}

/* 空状态优化 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 2px dashed #dee2e6;
    margin: 40px 0;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.empty-state p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state .btn {
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-state .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* 操作按钮组 */
.template-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

/* 底部样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: #999;
    font-size: 0.9rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 充值选项卡片样式 */
.recharge-option-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.recharge-option-card:hover {
    background-color: #e3f2fd;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.2);
}

.recharge-option-card.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.recharge-icon {
    font-size: 36px;
    color: #ffc107;
    margin-bottom: 15px;
}

.recharge-amount {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.recharge-points {
    font-size: 14px;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        border-radius: 12px;
    }    
    .hero h1 {
        font-size: 2em;
    }
    
    .submission-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .code-box {
        font-size: 1.1em;
        padding: 15px;
    }
    
    .submission-code h2 {
        font-size: 1.3rem;
    }
    
    .param-group input,
    .param-group select {
        flex: 1 1 100%;
        min-width: auto;
    }
}

/* 表单操作区 */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-full-width {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

@media (max-width: 480px) {
    .form-actions {
        text-align: center;
    }
    
    .form-actions .btn {
        margin-bottom: 10px;
    }
}

/* 帮助文本 */
.help-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* 添加按钮 */
.add-btn {
    margin-top: 10px;
}

/* 图片数量调整 */
.image-count-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 模板统计信息 */
.template-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

/* 模板头部布局 */
.template-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* 模板图片区域 */
.template-images {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* 模板详情页样图容器 */
.sample-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

/* 模板图片缩略图 */
.template-image-thumb {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

/* 模板图片缩略图 */
.template-image-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .template-image-thumb {
        width: 80px;
        height: 80px;
    }
}



/* 模板卡片容器 */
.template-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

/* 模板卡片样式 */
.template-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.template-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* 图片缩略图容器 */
.image-thumb-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

/* 图片缩略图 */
.image-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 模板图片部分 */
.template-image {
    flex-shrink: 0;
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

/* 无图片占位符 */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 模板内容部分 */
.template-content {
    flex: 1;
}

.image-thumb:hover {
    opacity: 0.8;
}

/* 全局图片预览覆盖层 */
.global-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 30px;
    box-sizing: border-box;
}

.global-preview-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

/* 确保图片缩略图容器可以触发点击 */
.image-thumb-container {
    cursor: pointer;
    position: relative;
}

/* 确保模板图片缩略图可以触发点击 */
.template-image-thumb {
    cursor: pointer;
    position: relative;
}

/* 图片预览大图 */
.image-preview-large {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .template-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .template-image {
        width: 100%;
        height: 200px;
    }
    
    .image-preview-overlay {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 85vw;
        max-height: 85vh;
    }
    
    .image-preview-large {
        max-width: 100%;
        max-height: 70vh;
    }
}

.meta-info {
    display: inline-block;
    margin-right: 20px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .meta-info {
        flex: 1 1 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* 二维码样式 */
.qr-code-section {
    text-align: center;
    margin: 30px 0;
}

.qr-code {
    max-width: 300px;
    margin: 0 auto;
    border: 1px solid #eee;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
}

.qr-code img {
    max-width: 100%;
}

/* 分享链接 */
.share-link {
    text-align: center;
    margin: 20px 0;
}

.link-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 1em;
    color: #333;
    margin: 10px 0;
    word-break: break-all;
    border: 1px solid #e9ecef;
}

/* 系统设置样式 */
.recharge-option,
.redeem-code,
.model-option {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.recharge-option input,
.redeem-code input:not([type="checkbox"]),
.model-option input:not([type="radio"]) {
    flex: 1;
    min-width: 100px;
}

.model-option input[type="radio"] {
    flex: none;
    min-width: auto;
    margin: 0;
}

.redeem-code input[type="checkbox"] {
    flex: none;
    min-width: auto;
    margin: 0;
}

.redeem-code label {
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}


/* 推荐模型样式 */
.recommended-models {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.recommended-model-tag {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #bbdefb;
    display: inline-block;
}

/* Statistics section */
.stats-section {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 24px;
    color: #1976d2;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1976d2;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
        gap: 10px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon i {
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}

.recharge-option .btn,
.redeem-code .btn,
.model-option .btn {

    white-space: nowrap;
}

@media (max-width: 768px) {
    .recharge-option,
    .redeem-code,
    .model-option {
        flex-direction: column;
        align-items: stretch;
    }
    
    .recharge-option input,
    .redeem-code input,
    .model-option input {
        width: 100%;
    }
    
    .redeem-code label {
        align-self: flex-start;
        margin-top: 5px;
    }
}

/* 美化的alert和confirm对话框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ccc;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #999;
}

/* 栏目管理样式 */
.category-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.category-item input[type="checkbox"] {
    margin-right: 8px;
}

.category-item label {
    margin: 0;
    cursor: pointer;
}

/* 模板标签样式 */
.template-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 10px;
    vertical-align: middle;
}

.template-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 0;
}

.modal-icon.confirm {
    color: #6c757d;
}

.modal-icon.success {
    color: #28a745;
}

.modal-icon.error {
    color: #dc3545;
}

.modal-icon.warning {
    color: #ffc107;
}

.modal-icon.info {
    color: #17a2b8;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    margin-top: 5px;
}

.modal-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.modal-btn.primary {
    background-color: #007bff;
    color: white;
}

.modal-btn.primary:hover {
    background-color: #0069d9;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

.modal-btn.secondary {
    background-color: #6c757d;
    color: white;
}

.modal-btn.secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    transform: translateY(-1px);
}

.modal-btn.danger {
    background-color: #dc3545;
    color: white;
}

.modal-btn.danger:hover {
    background-color: #c82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    transform: translateY(-1px);
}

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

@media (max-width: 768px) {
    .mobile-width-auto {
        width: auto !important;
    }
}