/* 基础样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* 导航栏样式 */
        .navbar {
            background-color: #fff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .navbar-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            gap: 20px;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: #4a6ee0;
        }
        
        .nav-menu {
            display: flex;
            list-style: none;
            margin-left: auto;
            flex-shrink: 1;
            flex-wrap: wrap;
            max-width: 60%;
        }
        
        .nav-menu li {
            margin-left: 15px;
        }

        /* 用户操作按钮样式 */
        .user-actions {
            flex-shrink: 0;
        }
        
        .nav-menu a {
            text-decoration: none;
            color: #555;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        .nav-menu a:hover {
            color: #4a6ee0;
        }
        
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
        }
        
        .hamburger span {
            width: 25px;
            height: 3px;
            background-color: #333;
            margin: 2px 0;
            transition: all 0.3s;
        }
        
        /* 主内容区样式 */
        .main-content {
            padding: 30px 0;
        }
        
        .section-title {
            font-size: 1.8rem;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #4a6ee0;
            color: #333;
        }
        
        /* AI文生图英雄区样式 */
        .hero-section {
            background: linear-gradient(135deg, #6a11cb 0%, #4a6ee0 100%);
            color: white;
            padding: 40px 30px;
            border-radius: 12px;
            margin-bottom: 40px;
            text-align: center;
        }
        
        .hero-title {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }
        
        .hero-subtitle {
            font-size: 1.1rem;
            margin-bottom: 25px;
            opacity: 0.9;
        }
        
        .ai-prompt-input {
            width: 100%;
            max-width: 600px;
            padding: 15px;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            margin-bottom: 15px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        /* 风格选择区域 */
        .control-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 20px auto;
            flex-wrap: wrap;
            gap: 10px;
            width: 100%;
            max-width: 600px;
        }
        
        .style-selection {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 0;
        }
        
        .style-option {
            background-color: rgba(255, 255, 255, 0.2);
            border: 2px solid transparent;
            border-radius: 8px;
            padding: 8px 24px;
            cursor: pointer;
            transition: all 0.3s;
            color: white;
            font-size: 0.9rem;
        }
        
        .style-option:hover, .style-option.active {
            background-color: rgba(255, 255, 255, 0.3);
            border-color: white;
        }
        
        /* 按钮样式 */
        .btn {
            padding: 12px 25px;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        /* 响应式调整控制容器 */
        @media (max-width: 768px) {
            .control-container {
                flex-direction: column;
                align-items: stretch;
            }
            
            .style-selection {
                justify-content: center;
            }
            
            .style-option {
                font-size: 0.8rem;
                padding: 6px 20px;
                border-radius: 6px;
            }
            
            #generateBtn {
                width: 100%;
                margin-top: 10px;
            }
        }
        
        /* 超小手机适配 */
        @media (max-width: 480px) {
            .style-selection {
                gap: 8px;
            }
            
            .style-option {
                font-size: 0.75rem;
                padding: 5px 16px;
                border-radius: 5px;
            }
            
            #generateBtn {
                padding: 10px 20px;
                font-size: 0.9rem;
            }
        }
        
        .btn-primary {
            background-color: #ff6b6b;
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #ff5252;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        .btn-secondary {
            background-color: #17a2b8;
            color: white;
            border: 1px solid #17a2b8;
        }

        .btn-secondary:hover {
            background-color: #138496;
            color: white;
        }
        
        /* 生成结果区域 */
        .generation-results {
            margin-top: 30px;
            display: none;
        }
        
        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .results-title {
            font-size: 1.5rem;
            color: white;
        }
        
        .results-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
        }
        .results-gridx {
            display: grid;
            gap: 20px;
            width: 100%;
            max-width: 600px;
            grid-template-columns:unset;
            margin: 0 auto;  
        }
        
        .results-grid img {
            width: 100%;
            height: auto;
            display: block;
        }
        

        
        .result-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .result-card:hover {
            transform: translateY(-5px);
        }
        
        .result-image {
            width: 100%;
            height: auto;
            display: block;
        }
        
  
        
        .result-actions {
         padding: 15px;
    display: flex;
    justify-content: space-between;
    background: #fff;
    position: relative;
    z-index: 2;
        }
        
        .result-actions a {
            padding: 8px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9rem;
        }
        
        .btn-download {
            background-color: #4a6ee0;
            color: white;
        }
        
        .btn-regenerate {
            background-color: #f8f9fa;
            color: #333;
            border: 1px solid #ddd;
        }
        
        /* 图像处理工具网格 */
        .tools-grid {
            column-count: 5;
            gap: 20px;
            margin-bottom: 30px;
            width: 100%;
            height: auto;
        }

        .tool-card {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
            position: relative;
          
            break-inside: avoid;
            width: 100%;
            height: fit-content;
            min-height: 200px;
            margin-bottom:20px;
        }

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

        /* 确保卡片内容正确排列 */
        .tool-card > * {
            flex-shrink: 0;
        }

        /* 图片容器样式 */
        .tool-card .img_wrapv {
            width: 100%;
            margin-bottom: 10px;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
            position: relative;
        }

        /* 点赞按钮样式 */
        .like-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            align-items: center;
            gap: 5px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 20px;
            cursor: pointer;
            padding: 5px 10px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
            z-index: 10;
        }

        .like-btn:hover {
            background-color: rgba(255, 255, 255, 1);
            transform: scale(1.05);
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
        }

        .like-icon {
            font-size: 16px;
            color: #ccc;
            transition: all 0.3s ease;
        }

        .like-btn.liked .like-icon {
            color: #ff6b6b;
        }

        .like-count {
            font-size: 14px;
            font-weight: bold;
            color: #666;
        }

        /* 图片样式 */
        .tool-card img {
            width: 100%;
            display: block;
            object-fit: contain;
         
        }

        /* 如果卡片有内容区域，让它自动扩展 */
        .tool-card .tool-content {
            flex-grow: 1;
            flex-direction: column;
            justify-content: left;
        }
        
        .tool-name {
            font-weight: bold;
            color: #444;
            margin-bottom: 10px;
        }
        
        .tool-content {
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;

            overflow: hidden;
            font-size:14px;
            text-overflow: ellipsis;
            line-height: 1.5;
            max-height: 6.5em;
        }
        
        /* 内容区域样式 */
        .content-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin: 40px 0;
        }
        
        .content-list {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .content-item {
            padding: 15px 0;
            border-bottom: 1px solid #eee;
        }
        
        .content-item:last-child {
            border-bottom: none;
        }
        
        .content-item h3 {
            margin-bottom: 5px;
        }
        
        .content-item a {
            text-decoration: none;
            color: #333;
            transition: color 0.3s;
        }
        
        .content-item a:hover {
            color: #4a6ee0;
        }
        
        .date {
            font-size: 0.9rem;
            color: #777;
        }
        
        /* 版权和友情链接 */
        .copyright {
            text-align: center;
            padding: 20px 0;
            color: #777;
            font-size: 0.9rem;
        }
        
        .friend-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin: 20px 0;
        }
        
        .friend-links a {
            color: #4a6ee0;
            text-decoration: none;
        }
        
        .friend-links a:hover {
            text-decoration: underline;
        }
        
        .footer-copyright {
            text-align: center;
            padding: 15px 0;
            color: #777;
            font-size: 0.9rem;
            border-top: 1px solid #eee;
            margin-top: 20px;
        }
        
        /* 加载动画 */
        .loading-spinner {
            display: none;
            text-align: center;
            margin: 20px 0;
            background: rgba(0, 0, 0, 0.8);
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .loading-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 4px solid #4a6ee0;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .progress-container {
            width: 100%;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
            overflow: hidden;
            margin: 10px 0;
        }

        .progress-bar {
            height: 8px;
            background-color: #4a6ee0;
            border-radius: 3px;
            transition: width 1s linear;
            box-shadow: 0 0 10px rgba(74, 110, 224, 0.5);
        }
        
        /* 用户操作按钮样式 */
        .user-actions {
            display: flex;
            gap: 10px;
        }
        
        .btn-login,
        .btn-register,
        .btn-logout {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .welcome-text {
            margin-right: 15px;
            font-weight: 500;
            color: #333;
            display: flex;
            align-items: center;
        }
        
        /* 滑块验证码样式 */
        .slider-captcha {
            margin-top: 15px;
            margin-bottom: 20px;
        }
        
        .slider-container {
            position: relative;
            width: 100%;
            max-width: 300px;
            height: 40px;
        }
        
        .slider-container canvas {
            width: 100%;
            height: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            background-color: #f8f9fa;
        }
        
        .slider-track {
            position: absolute;
            top: 120px;
            left: 0;
            width: 100%;
            height: 40px;
            background-color: #f0f0f0;
            border-radius: 20px;
            overflow: hidden;
            cursor: pointer;
        }
        
        .slider-btn {
            position: absolute;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background-color: #4a6ee0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
        }
        
        .slider-btn:hover {
            background-color: #3a5ec0;
        }
        
        .slider-btn.success {
            background-color: #28a745;
        }
        
        .slider-btn.error {
            background-color: #dc3545;
        }
        
        .slider-tip {
            position: absolute;
            top: 30px;
            left: 0;
            width: 100%;
            text-align: center;
            font-size: 14px;
            color: #666;
            margin-top: -10px;
        }
    
    
        
        .slider-tip.success {
            color: #28a745;
        }
        
        .slider-tip.error {
            color: #dc3545;
        }
        
        /* 手机版适配 */
        @media (max-width: 768px) {
            .slider-container {
                max-width: 100%;
                height: 180px;
            }
            
            .slider-container canvas {
                max-width: 100%;
                height: 90px;
            }
            
            .slider-track {
                top: 100px;
                height: 45px;
            }
            
            .slider-btn {
                width: 45px;
                height: 45px;
            }
            
            .slider-tip {
                top: 160px;
                font-size: 13px;
            }
        }
        
        .btn-login {
            background-color: transparent;
            color: #4a6ee0;
            border: 1px solid #4a6ee0;
        }
        
        .btn-login:hover {
            background-color: #4a6ee0;
            color: white;
        }
        
        .btn-register {
            background-color: #4a6ee0;
            color: white;
        }
        
        .btn-register:hover {
            background-color: #3a5ec0;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        /* 表单样式 */
        .form-group {
            margin-bottom: 20px;
            text-align: left;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #333;
        }
        
        .form-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }
        
        .form-group input:focus {
            outline: none;
            border-color: #4a6ee0;
            box-shadow: 0 0 0 2px rgba(74, 110, 224, 0.1);
        }
        
        .btn-submit {
            width: 100%;
            padding: 12px;
            background-color: #4a6ee0;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-submit:hover {
            background-color: #3a5ec0;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        .form-footer {
            margin-top: 15px;
            text-align: center;
            color: #666;
        }
        
        .form-footer a {
            color: #4a6ee0;
            text-decoration: none;
            font-weight: 500;
        }
        
        .form-footer a:hover {
            text-decoration: underline;
        }
        
        /* 桌面版隐藏登录注册导航项 */
        .nav-login,
        .nav-register,
        .nav-user,
        .nav-logout {
            display: none;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            /* 移动端显示登录注册导航项 */
            .nav-login,
            .nav-register,
            .nav-user,
            .nav-logout {
                display: block;
            }
            .hamburger {
                display: flex;
            }
            
            .nav-menu {
                position: fixed;
                left: -100%;
                top: 60px;
                flex-direction: column;
                background-color: white;
                width: 100%;
                text-align: center;
                transition: 0.3s;
                box-shadow: 0 10px 15px rgba(0,0,0,0.1);
                padding: 20px 0;
            }
            
            .nav-menu.active {
                left: 0;
            }
            
            .nav-menu li {
                margin: 15px 0;
            }
            
            /* 响应式用户操作按钮 - 移动端显示为导航菜单的一部分 */
            .user-actions {
                display: none;
            }
            
            .content-section {
                grid-template-columns: 1fr;
            }
            
            .tools-grid {
            column-count: 4 !important;
            }
            .tools-gridv {
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            }
            
            .tool-card {
                width: 100%;
                height: fit-content;
            }
            
            .results-grid {
                grid-template-columns: 1fr;
                max-width: 100%;
            }
        }
        /* ========== Modal 样式 ========== */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

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

   

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

        /* 作品详情模态框特定样式 */
        .art-detail-modal {
            max-width: 700px;
            width: 90%;
        }

        .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #6c757d;
            transition: all 0.2s ease;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .modal-close:hover {
            color: #333;
            background-color: #e9ecef;
        }

        /* 模态框标题样式 */
        .modal-title {
            text-align: left;
            font-weight: 600;
            font-size: 18px;
        }

        .modal-body {
            padding: 20px;
        }

        /* 作品详情内容样式 */
        .art-detail-content {
            display: flex;
            flex-direction: column;
        }

        /* 作品图片容器 */
        .art-detail-image-container {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* 作品图片 */
        .art-detail-image {
            max-width: 550px;
            max-height: 50vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        /* 作品描述区域 */
        .art-detail-text {
            padding: 20px;
            background-color: white;
        }

        /* 作品文本 */
        #artDetailText {
            font-size: 14px;
            line-height: 1.6;
            color: #333;
            margin: 0;
            word-break: break-word;
            overflow-wrap: break-word;
            text-align: left;
        }

        /* 操作按钮区域 */
        .art-detail-actions {
            display: flex;
            gap: 12px;
            padding: 20px;
            background-color: white;
            border-top: 1px solid #e9ecef;
            flex-wrap: wrap;
        }

        /* 按钮样式 */
        .art-detail-actions .btn {
            flex: 1;
            min-width: 120px;
            padding: 12px 20px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

        /* 主按钮样式 */
        .btn-primary {
            background-color: #4a6ee0;
            color: white;
        }

        .btn-primary:hover {
            background-color: #3a5bd9;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(74, 110, 224, 0.3);
        }

        /* 次要按钮样式 */
        .btn-secondary {
            background-color: #17a2b8;
            color: white;
        }

        .btn-secondary:hover {
            background-color: #138496;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
        }

        /* art_detail 页面中"我要制作"按钮样式 */
        .art-detail-images .btn-secondary {
            background-color: #17a2b8;
            color: white;
            border: none;
        }

        .art-detail-images .btn-secondary:hover {
            background-color: #138496;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
        }

        /* 模态框中的按钮样式，确保文字可见 */
        .modal .btn-secondary {
            background-color: #17a2b8;
            color: white !important;
            border: 1px solid #17a2b8;
        }

        .modal .btn-secondary:hover {
            background-color: #138496;
            color: white !important;
            border-color: #138496;
        }

        /* 信息按钮样式 */
        .btn-info {
            background-color: #6f42c1;
            color: white;
        }

        .btn-info:hover {
            background-color: #5a32a3;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
        }
        
        /* 分享按钮样式 */
        .share-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 20px;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            background-color: white;
            color: #495057;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            min-width: 120px;
        }
        
        .share-btn:hover {
            border-color: #ced4da;
            background-color: #f8f9fa;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        /* 微信分享按钮 */
        .share-btn.share-wechat:hover {
            border-color: #07C160;
            color: #07C160;
        }
        
        /* 微博分享按钮 */
        .share-btn.share-weibo:hover {
            border-color: #E6162D;
            color: #E6162D;
        }
        
        /* QQ分享按钮 */
        .share-btn.share-qq:hover {
            border-color: #12B7F5;
            color: #12B7F5;
        }
        
        /* 分享按钮容器 */
        .share-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 15px;
        }
        
        /* 分享按钮图标 */
        .share-icon {
            font-size: 16px;
        }
        
        /* 分享项样式，与点赞项保持一致的鼠标手势 */
        .share-item {
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .share-item:hover {
            transform: scale(1.05);
        }
        
        /* 确保art-meta-item中的分享项也有正确的鼠标手势 */
        .art-meta-item.share-item {
            cursor: pointer;
        }
        
        /* 确保点赞项的鼠标手势也正确 */
        .art-meta-item.like-item {
            cursor: pointer;
        }
        
        /* 我要制作按钮样式，与分享按钮保持相同的鼠标hover放大效果 */
        .create-item {
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .create-item:hover {
            transform: scale(1.05);
        }
        
        /* 确保create-link也有正确的鼠标手势和放大效果 */
        .create-link {
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-block; /* 确保transform效果正常工作 */
        }
        
        .create-link:hover {
            transform: scale(1.05);
        }
        
        /* 统一分享功能按钮样式 - 推拉门效果 */
        .share-float-button {
            position: fixed;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
        }
        
        /* 主分享按钮样式 - 增加宽度 */
        .share-main-button {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: #4a6ee0;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(74, 110, 224, 0.3);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        /* 推拉门效果 - 主按钮悬停 */
        .share-main-button:hover {
            background-color: #3a5ec0;
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(74, 110, 224, 0.4);
        }
        
        /* 推拉门效果 - 主按钮图标 */
        .share-main-button .share-icon {
            font-size: 24px;
            z-index: 2;
            transition: all 0.3s ease;
        }
        
        /* 分享菜单样式 - 推拉门效果 */
        .share-menu {
            position: absolute;
            right: -180px;
            top: 50%;
            transform: translateY(-50%);
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
            padding: 12px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            min-width: 130px;
            z-index: 1;
        }
        
        /* 分享菜单激活状态 - 推拉门效果 */
        .share-menu.active {
            opacity: 1;
            visibility: visible;
            right: 70px;
        }
        
        /* 分享菜单项样式 - 增加宽度 */
        .share-float-button .share-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 15px;
            border: none;
            background-color: transparent;
            color: #333;
            font-size: 14px;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.2s ease;
            width: 100%;
            text-align: left;
            white-space: nowrap;
        }
        
        /* 分享菜单项悬停效果 */
        .share-float-button .share-item:hover {
            background-color: #f8f9fa;
            color: #4a6ee0;
            transform: translateX(-6px);
        }
        
        /* article-meta中的分享按钮样式 */
        .article-meta .share-item {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 0;
            border: none;
            background-color: transparent;
            color: #666;
            font-size: 14px;
            cursor: pointer;
            border-radius: 0;
            transition: all 0.2s ease;
            width: auto;
            text-align: left;
            white-space: nowrap;
        }
        
        /* article-meta中的分享按钮悬停效果 */
        .article-meta .share-item:hover {
            background-color: transparent;
            color: #4a6ee0;
            transform: none;
        }
        
        /* 分享菜单项图标 */
        .share-float-button .share-item-icon {
            font-size: 18px;
            min-width: 18px;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .share-float-button {
                right: 10px;
            }
            
            .share-main-button {
                width: 45px;
                height: 45px;
            }
            
            .share-main-button .share-icon {
                font-size: 20px;
            }
            
            .share-menu {
                right: -160px;
                min-width: 110px;
                padding: 10px;
            }
            
            .share-menu.active {
                right: 60px;
            }
            
            .share-float-button .share-item {
                font-size: 12px;
                padding: 8px 10px;
                gap: 8px;
            }
            
            .share-float-button .share-item-icon {
                font-size: 16px;
                min-width: 16px;
            }
        }
        
        /* 文章元信息样式优化 */
        .article-meta {
            margin: 20px 0; /* 增加上下间距 */
            padding: 15px; /* 增加内边距 */
            background-color: #f8f9fa; /* 增加背景色，与内容区分 */
            border-radius: 8px; /* 增加圆角，提升视觉效果 */
            display: flex; /* 使用弹性布局 */
            gap: 20px; /* 增加元素间距 */
            flex-wrap: wrap; /* 支持换行，适应小屏幕 */
        }
        
        /* 文章内容区排版优化 */
        .article-container > div:not(.article-meta):not(.tag_wrap) {
            line-height: 1.8; /* 增加行高，提高可读性 */
            font-size: 16px; /* 增加字体大小，提高可读性 */
            color: #333; /* 优化文字颜色，提高可读性 */
            padding: 20px 0; /* 增加上下内边距 */
        }
        
        /* 确保文章内容中的段落有适当间距 */
        .article-container > div:not(.article-meta):not(.tag_wrap) p {
            margin-bottom: 16px; /* 增加段落间距 */
        }
        
        /* 确保文章内容中的标题有适当间距 */
        .article-container > div:not(.article-meta):not(.tag_wrap) h1,
        .article-container > div:not(.article-meta):not(.tag_wrap) h2,
        .article-container > div:not(.article-meta):not(.tag_wrap) h3,
        .article-container > div:not(.article-meta):not(.tag_wrap) h4,
        .article-container > div:not(.article-meta):not(.tag_wrap) h5,
        .article-container > div:not(.article-meta):not(.tag_wrap) h6 {
            margin: 20px 0 15px 0; /* 增加标题上下间距 */
            font-weight: 600; /* 优化标题字体权重 */
        }
        
        /* 优化tag_wrap中a标签的间隔 */
        .tag_wrap {
            margin: 20px 0; /* 增加上下间距 */
            padding: 15px; /* 增加内边距 */
            background-color: #f8f9fa; /* 增加背景色，与内容区分 */
            border-radius: 8px; /* 增加圆角，提升视觉效果 */
        }
        
        .tag_wrap a {
            display: inline-block; /* 确保margin生效 */
            margin-right: 12px; /* 增加右侧间距 */
            margin-bottom: 8px; /* 增加底部间距，支持多行显示 */
            padding: 5px 12px; /* 增加内边距，提升点击区域 */
            background-color: #e9ecef; /* 增加背景色，提升视觉效果 */
            color: #495057; /* 优化文字颜色 */
            text-decoration: none; /* 移除下划线 */
            border-radius: 16px; /* 增加圆角，提升视觉效果 */
            font-size: 14px; /* 优化字体大小 */
            transition: all 0.2s ease; /* 增加过渡效果 */
        }
        
        .tag_wrap a:hover {
            background-color: #dee2e6; /* 悬停时背景色变深 */
            color: #212529; /* 悬停时文字颜色变深 */
            transform: translateY(-1px); /* 悬停时轻微上浮 */
        }
        
        /* 分享链接容器样式 */
        .share-link-container {
            display: flex;
            gap: 10px;
            margin: 15px 0;
        }
        
        .share-link-container input {
            flex: 1;
            padding: 10px 12px;
            border: 1px solid #ced4da;
            border-radius: 6px;
            font-size: 14px;
            color: #495057;
        }
        
        /* 复制按钮样式 */
        .btn-copy {
            padding: 0 20px;
            border: 1px solid #17a2b8;
            border-radius: 6px;
            background-color: #17a2b8;
            color: white;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .btn-copy:hover {
            background-color: #138496;
            border-color: #138496;
            transform: translateY(-1px);
        }
        
        /* 微信二维码容器样式 */
        .wechat-qr-container {
            text-align: center;
            padding: 20px;
            background-color: #f8f9fa;
            border-radius: 8px;
            margin: 15px 0;
        }
        
        .wechat-qr-container h3 {
            margin-top: 0;
            margin-bottom: 20px;
            color: #343a40;
        }
        
        /* 二维码样式 */
        .qr-code {
            width: 200px;
            height: 200px;
            margin: 0 auto 15px;
            padding: 10px;
            background-color: white;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .qr-code img {
            max-width: 100%;
            max-height: 100%;
        }
        
        /* 二维码提示文字 */
        .qr-tip {
            margin: 10px 0 20px;
            color: #6c757d;
            font-size: 14px;
        }
        
        /* 返回按钮样式 */
        .btn-back {
            padding: 8px 20px;
            border: 1px solid #6c757d;
            border-radius: 6px;
            background-color: white;
            color: #6c757d;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .btn-back:hover {
            background-color: #f8f9fa;
            border-color: #5a6268;
            color: #495057;
        }
        
        /* 分享内容容器 */
        .share-content {
            padding: 10px 0;
        }
        
        .share-content h3 {
            color: #343a40;
            margin: 0 0 15px;
            font-size: 16px;
        }

        /* 按钮图标 */
        .action-icon {
            font-size: 16px;
        }

        /* 响应式设计 - 平板和手机 */
        @media (max-width: 768px) {
            /* 模态框适配移动端 */
            .modal {
                width: 95%;
                max-width: 95%;
                max-height: 95vh;
            }

            .art-detail-modal {
                max-width: 95%;
            }

            .modal-header {
                padding: 12px 15px;
            }

            .modal-close {
                font-size: 24px;
                width: 28px;
                height: 28px;
            }

            /* 作品图片容器适配移动端 */
            .art-detail-image-container {
                padding: 15px;
            }

            /* 作品图片适配移动端 */
            .art-detail-image {
                max-width: 100%;
                max-height: 40vh;
            }

            /* 作品描述区域适配移动端 */
            .art-detail-text {
                padding: 15px;
            }

            /* 作品文本适配移动端 */
            #artDetailText {
                font-size: 14px;
                line-height: 1.5;
            }

            /* 操作按钮区域适配移动端 - 改为一行三个按钮 */
            .art-detail-actions {
                padding: 15px;
                flex-direction: row;
                gap: 10px;
                flex-wrap: nowrap;
            }

            /* 按钮适配移动端 - 一行三个按钮 */
            .art-detail-actions .btn {
                flex: 1;
                min-width: auto;
                padding: 10px 8px;
                font-size: 12px;
                gap: 5px;
            }

            /* 按钮图标适配移动端 */
            .art-detail-actions .btn .action-icon {
                font-size: 14px;
            }

            /* 按钮图标适配移动端 */
            .action-icon {
                font-size: 18px;
            }
        }

        /* 超小屏幕适配 */
        @media (max-width: 320px) {
            /* 按钮适配超小屏幕 - 保持一行三个按钮 */
            .art-detail-actions .btn {
                font-size: 11px;
                padding: 8px 6px;
                gap: 4px;
            }

            /* 按钮图标适配超小屏幕 */
            .art-detail-actions .btn .action-icon {
                font-size: 12px;
            }
        }

        /* ========== 响应式断点 ========== */

        /* 平板 (Tablet) */
        @media (max-width: 992px) {
            .container {
                padding: 0 15px;
            }

            .hero-title {
                font-size: 26px;
            }

            .tools-grid {
                column-count: 3 !important;
                
            }
            
            .tool-card {
                width: 100%;
                height: fit-content;
            }

            .content-section {
                grid-template-columns: 1fr;
                gap: 25px;
            }

            .content-item h3 {
                font-size: 16px;
            }
        }

        /* 手机 (Mobile) */
        @media (max-width: 768px) {
            .navbar-inner {
                padding: 0 15px;
            }

            /* 隐藏导航菜单，显示汉堡按钮 */
            .nav-menu {
                position: fixed;
                top: 70px;
                left: 0;
                width: 100%;
                background: white;
                flex-direction: column;
                align-items: center;
                padding: 20px 0;
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
                clip-path: circle(0px at top right);
                transition: clip-path 0.4s ease-in-out;
            }

            .nav-menu.active {
                clip-path: circle(150% at top right);
            }

            .nav-menu li {
                margin: 10px 0;
            }

            .hamburger {
                display: flex;
            }

            /* 汉堡按钮激活状态 */
            .hamburger.active span:nth-child(1) {
                transform: rotate(45deg) translate(5px, 5px);
            }
            .hamburger.active span:nth-child(2) {
                opacity: 0;
            }
            .hamburger.active span:nth-child(3) {
                transform: rotate(-45deg) translate(7px, -6px);
            }

            .main-content {
                margin-top: 0px;
                padding: 20px 0;
            }
            .article-container h1 {
                font-size: 24px !important;
            }
            .article-meta {
            display:none !important;    
            }

            .hero-section {
                padding: 30px 15px;
                margin-bottom: 30px;
            }

            .hero-title {
                font-size: 24px !important;
            }

            .hero-subtitle {
                font-size: 15px;
            }

            .section-title {
                font-size: 22px;
            }

            .tools-grid {
             column-count: 2 !important;
            }
            
            .tool-card {
                width: 100%;
                height: fit-content;
                padding: 20px 12px; /* 适当调整内边距 */
            }

            .tool-name {
                font-size: 14px;
            }

            .btn {
                padding: 10px 20px;
                font-size: 15px;
            }
        }

        /* 超小手机 */
        @media (max-width: 480px) {
            .tools-grid {
            column-count: 2 !important;
            }
            
            .tool-card {
                width: 100%;
                height: fit-content;
            }
            
            .friend-links a {
                display: block;
                margin: 5px 0;
            }

            .modal {
                width: 95%;
                margin: 10px;
            }
        }

        /* 图片选择区域样式 */
        .find_img {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            background-color: transparent;
            border: none;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s;
            color: white;
            font-size: 1rem;
            font-weight: 500;
            text-align: center;
        }

        .find_img:hover {
            background-color: transparent;
        }

        .find_img span {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .find_img span:not(.remote_img):not(.or_text) {
            background-color: rgba(255, 255, 255, 0.3);
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .find_img span:not(.remote_img):not(.or_text):hover {
            background-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
        }

        .find_img .remote_img {
            background-color: rgba(255, 255, 255, 0.3);
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .find_img .remote_img:hover {
            background-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
        }

        .find_img .or_text {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
            margin: 0 5px;
        }

        /* 响应式图片选择区域 */
        @media (max-width: 768px) {
            .find_img {
                flex-direction: column;
                gap: 10px;
                padding: 15px;
            }

            .find_img span {
                width: 100%;
                justify-content: center;
            }
        }

        /* 二维码上传模态框样式 */
        .qr-modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            animation: fadeIn 0.3s ease;
        }

        .qr-modal-content {
            background-color: #fff;
            margin: 10% auto;
            padding: 30px;
            border-radius: 10px;
            width: 80%;
            max-width: 400px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
            animation: slideIn 0.3s ease;
        }

        .qr-close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s;
        }

        .qr-close:hover {
            color: #333;
        }

        .qr-modal h3 {
            margin-top: 0;
            color: #333;
            font-size: 1.5rem;
        }

        .qr-modal p {
            color: #666;
            margin-bottom: 20px;
        }

        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        a {text-decoration: none;color:#333;}
        .title_wrap {
            white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;    
        }
        .section-title {
            font-size: 1.8rem;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #4a6ee0;
            color: #333;
            text-align: center;
        }

        /* 核心功能卡片 - 仿照安图在线的英雄区 */
        .feature-card {
            background: linear-gradient(135deg, #6a11cb 0%, #4a6ee0 100%);
            color: white;
            padding: 40px 30px;
            border-radius: 12px;
            margin-bottom: 40px;
            text-align: center;
        }

        .feature-title {
            font-size: 2.2rem;
            margin-bottom: 15px;
        }

        .feature-subtitle {
            font-size: 1.1rem;
            margin-bottom: 25px;
            opacity: 0.9;
        }

        /* 文件上传区 */
        .upload-area {
            background-color: rgba(255, 255, 255, 0.2);
            border: 2px dashed rgba(255, 255, 255, 0.5);
            border-radius: 8px;
            padding: 40px 20px;
            margin: 20px auto;
            max-width: 600px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .upload-area:hover {
            border-color: white;
            background-color: rgba(255, 255, 255, 0.3);
        }

        .upload-icon {
            font-size: 3rem;
            margin-bottom: 15px;
        }

        .upload-text {
            font-size: 1rem;
            margin-bottom: 10px;
        }

        .upload-hint {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* 隐藏的原生文件输入框 */
        #fileInput {
            display: none;
        }

        /* --- 新增：参数输入区样式 --- */
        .parameter-section {
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 10px;

            margin: 30px auto;
            max-width: 600px;
        }

        .parameter-title {
            font-size: 1.2rem;
            margin-bottom: 20px;
            font-weight: 500;
        }

        .parameter-group {
            margin-bottom: 25px;
            text-align: left;
        }

        .parameter-label {
            display: block;
            margin-bottom: 10px;
            font-weight: 500;
        }

        /* 滑块样式 */
        .slider-container {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .slider {
            flex: 1;
            height: 6px;
            -webkit-appearance: none;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 3px;
            outline: none;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #ff6b6b;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .slider-value {
            min-width: 40px;
            text-align: center;
            font-weight: bold;
            background: rgba(0,0,0,0.2);
            padding: 5px 10px;
            border-radius: 20px;
        }

        /* 单选按钮样式 */
        .radio-group {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .radio-option {
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        .radio-input {
            margin-right: 8px;
            width: 16px;
            height: 16px;
            accent-color: #ff6b6b;
        }

        /* --- 参数区结束 --- */

        /* 操作按钮 */
        .action-buttons {
            margin: 30px 0;
        }

        .btn {
            padding: 12px 25px;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
            margin: 0 10px;
        }

        .btn-primary {
            background-color: #ff6b6b;
            color: white;
        }

        .btn-primary:hover {
            background-color: #ff5252;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .btn-secondary {
            background-color: #17a2b8;
            color: white;
            border: 1px solid #17a2b8;
        }

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

        /* 加载动画 */
        .loading-spinner {
            display: none;
            text-align: center;
            margin: 20px 0;
            background: rgba(0, 0, 0, 0.8);
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .loading-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 4px solid #4a6ee0;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .progress-container {
            width: 100%;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
            overflow: hidden;
            margin: 10px 0;
        }

        .progress-bar {
            height: 8px;
            background-color: #4a6ee0;
            border-radius: 3px;
            transition: width 1s linear;
            box-shadow: 0 0 10px rgba(74, 110, 224, 0.5);
        }

        /* 结果展示区 */
        .result-section {
            display: none;
            background-color: rgba(255, 255, 255, 0.8);
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
           
            max-width:600px;
            margin:auto;
             margin-top: 30px;
        }

        .result-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 20px;
        }

        .image-container {
               position: relative;
    aspect-ratio: 1.5;
    background: #fff;
        }

        .image-label {
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: #4a6ee0;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 0.9rem;
            z-index: 10;
        }

        .result-image {
          max-width: 100%;
    max-height: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
        }
        .results-gridx .result-image {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: block;
    position:relative;
    object-fit: contain;

    /* transform: translate(-50%, -50%); */
}


        .download-btn {
            display: block;
            width: 100%;
            padding: 12px;
            margin-top: 15px;
            background-color: #4a6ee0;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .download-btn:hover {
            background-color: #3a5ec0;
        }

        /* 相关工具推荐 - 仿照安图在线的工具网格 */
        .related-tools {
            margin-top: 50px;
        }

        .tools-grid {
            column-count: 5;
            gap: 20px;
            margin-top: 20px;
        }
         .tools-gridv {
            display:grid; 
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            }

        .tool-card {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }

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

        .tool-name {
            font-weight: bold;
            color: #444;
            margin-bottom: 10px;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
       


            .action-buttons {
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            .btn {
                margin: 10px 0;
                width: 80%;
            }

            .slider-container {
                flex-direction: column;
                align-items: stretch;
            }
        }
        .text-center {text-align:center;}
        .col-sm-12 {width:100%;margin:5px;}
        .col-sm-4 {width:30%;margin:5px;display:inline-block;}
        .col-sm-6 {width:45%;margin:5px;display:inline-block;}
        .col-sm-3 {width:22%;margin:5px;display:inline-block;}
        input,select {padding:5px;border-radius:3px;border:unset;}
        .col-sm-4 input,.col-sm-6 input,.col-sm-3 input,.col-sm-4 select,.col-sm-6 select,.col-sm-3 select{width:100%;}
        .col-sm-12 input,.col-sm-12 select,.col-sm-12 textarea{width:100%;}
        .parameter-group label {display:block;margin-bottom:5px;font-weight:bold;}
        .parameter-group label input,.parameter-group label select {width:100%;}
 /* 分页 */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 40px;
            margin-bottom: 60px;
        }

        .page-item {
            padding: 10px 16px;
            border: 1px solid #ddd;
            border-radius: 6px;
            text-decoration: none;
            color: #555;
            font-weight: 500;
            transition: all 0.3s;
        }

        .page-item:hover {
            background-color: #f1f1f1;
        }

        .page-item.active {
            background-color: #3498db;
            color: white;
            border-color: #3498db;
        }

        .page-item.disabled {
            color: #ccc;
            cursor: not-allowed;
            pointer-events: none;
        }
        .article-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.article-container h1 {
    color: #2c3e50;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
}
.canva_wrap { 
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-size:13px;
}
.canva_wrap .toolbar {
    display: flex;
    align-items: center;
    margin-right: 15px;
    padding: 5px 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
       .canva_wrap .tool-group {
            display: flex;
            align-items: center;
            margin-right: 15px;
        }
        
       .canva_wrap .tool-group label {
            margin-right: 8px;
            font-weight: 600;
            color: #444;
        }
        
       .canva_wrap button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #4a00e0;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    margin: 0 3px;
}
        
        .canva_wrap button:hover {
            background-color: #3a00b0;
            transform: translateY(-2px);
        }
        
        .canva_wrap button.active {
            background-color: #8e2de2;
            box-shadow: 0 0 0 2px white, 0 0 0 4px #8e2de2;
        }
        
        .canva_wrap .color-picker {
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            overflow: hidden;
        }
        
        .canva_wrap .brush-size {
            width: 120px;
        }
        
        .canva_wrap .canvas-container {
    padding: 20px;
    padding-left:0px;
    padding-right:0px;
    text-align: center;
    position: relative;
}
        
        .canva_wrap canvas {
            background-color: white;
            width:calc(100% - 20px) !important;
            margin-left:-10px !important;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            cursor: crosshair;
        }
        
        .canva_wrap footer {
            text-align: center;
            padding: 15px;
            background-color: #f5f5f5;
            color: #666;
            font-size: 0.9rem;
            border-top: 1px solid #ddd;
        }
         .canva_wrap .save-options {
            margin-top: 15px;
            display: flex;
            justify-content: center;
            gap: 10px;
        }
        
        .canva_wrap .save-btn {
            background: linear-gradient(to right, #00b09b, #96c93d);
        }
        
        .canva_wrap .load-btn {
            background: linear-gradient(to right, #ff5e62, #ff9966);
        }
        
        @media (max-width: 768px) {
            .canva_wrap .toolbar {
                justify-content: center;
            }
            
            .canva_wrap .tool-group {
                margin-bottom: 10px;
            }
            
            .canva_wrap canvas {
                width: 100%;
                height: auto;
            }
            .col-xs-12 {
            width:100%;    
            }
        }
        
        /* 文生图详情页样式 */
        .art-detail-section {
            padding: 50px 0;
            background-color: #f9f9f9;
        }
        
        .art-detail-header {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
        }
        
        .art-detail-title {
            font-size: 28px;
            font-weight: bold;
            color: #333;
            margin-bottom: 15px;
            line-height: 1.4;
        }
        
        .art-detail-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            font-size: 14px;
            color: #666;
        }
        
        .art-meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .meta-icon {
            font-size: 16px;
        }
        
        .art-detail-images {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
        }
        
        .art-image-item {
            margin-bottom: 20px;
            text-align: center;
        }
        
        .art-detail-image {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin-bottom: 15px;
        }
        
        .image-download {
            text-align: center;
        }
        
        .art-detail-prompt {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
        }
        
        .prompt-title {
            font-size: 20px;
            font-weight: bold;
            color: #333;
            margin-bottom: 15px;
        }
        
        .prompt-content pre {
            background-color: #f5f5f5;
            padding: 20px;
            border-radius: 6px;
            font-size: 14px;
            line-height: 1.5;
            overflow-x: auto;
            white-space: pre-wrap;
            word-wrap: break-word;
        }
        
        .art-related {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .related-title {
            font-size: 20px;
            font-weight: bold;
            color: #333;
            margin-bottom: 20px;
        }
        
        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 15px;
        }
        
        .related-item {
            border: 1px solid #eee;
            border-radius: 6px;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .related-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .related-link {
            text-decoration: none;
            color: #333;
        }
        
        .related-image {
            width: 100%;
            height: 120px;
            overflow: hidden;
        }
        
        .related-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .related-item:hover .related-image img {
            transform: scale(1.1);
        }
        
        .related-title {
            font-size: 14px;
            padding: 10px;
            text-align: center;
            line-height: 1.4;
            height: 45px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .art-detail-section {
                padding: 30px 0;
            }
            
            .art-detail-header,
            .art-detail-images,
            .art-detail-prompt,
            .art-related {
                padding: 20px;
            }
            
            .art-detail-title {
                font-size: 24px;
            }
            
            .art-detail-meta {
                flex-direction: column;
                gap: 10px;
            }
            
            .related-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                gap: 10px;
            }
            
            .related-image {
                height: 100px;
            }
        }

/* 视频生成系统样式 */

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

.mt-5 {
  margin-top: 3rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

/* 行和列样式 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.col-md-8 {
  flex: 0 0 66.66667%;
  max-width: 66.66667%;
  padding: 0 10px;
}

.offset-md-2 {
  margin-left: 16.66667%;
}

/* 卡片样式 */
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-header {
  padding: 1.25rem;
  background-color: #007bff;
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-body {
  padding: 1.25rem;
}

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

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.form-row .form-group {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 10px;
}

label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6c757d;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 4px;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  color: #fff;
  background-color: #0069d9;
  border-color: #0062cc;
}

.btn-outline-info {
  color: #17a2b8;
  background-color: transparent;
  border-color: #17a2b8;
}

.btn-outline-info:hover {
  color: #fff;
  background-color: #17a2b8;
  border-color: #17a2b8;
}

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

.btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

/* 进度条样式 */
.progress {
  display: flex;
  height: 1rem;
  overflow: hidden;
  font-size: 0.75rem;
  background-color: #e9ecef;
  border-radius: 0.25rem;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: #007bff;
  transition: width 0.6s ease;
}

/* 表格样式 */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* 徽章样式 */
.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge-warning {
  color: #212529;
  background-color: #ffc107;
}

.badge-info {
  color: #fff;
  background-color: #17a2b8;
}

.badge-success {
  color: #fff;
  background-color: #28a745;
}

.badge-danger {
  color: #fff;
  background-color: #dc3545;
}

/* 提示框样式 */
.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* 文本中心 */
.text-center {
  text-align: center !important;
}

/* 显示和隐藏 */
.d-none {
  display: none !important;
}

/* Flex 布局 */
.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-center {
  justify-content: center !important;
}

.py-8 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

/* Spinner 动画 */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* 模态框样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.5);
  margin: 0;
  padding: 0;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  position: relative;
  width: auto;
  max-width: 700px;
  margin: 1.75rem;
  pointer-events: none;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 1.25rem;
  font-weight: 500;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: 0.3rem;
  border-bottom-left-radius: 0.3rem;
}

.modal-footer > :not(:first-child) {
  margin-left: 0.5rem;
}

.modal-footer > :not(:last-child) {
  margin-right: 0.5rem;
}

.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.close:hover {
  opacity: 0.75;
}

/* 动画效果 */
.modal.fade {
  transition: opacity 0.15s linear;
}

.modal.fade .modal-dialog {
  transition: transform 0.15s ease-out;
  transform: translate(0, -25%);
}

.modal.show .modal-dialog {
  transform: translate(0, 0);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .offset-md-2 {
    margin-left: 0;
  }
  
  .form-row .form-group {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
}
     .modal-overlay .modal,.modal.art-detail-modal {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 700px;
            position:relative;
            display:block;
            height:fit-content;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transform: translateY(-20px);
            transition: transform 0.3s ease;
        }


