/* 基础样式 */
        * {
            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: transparent;
            color: #4a6ee0;
            border: 1px solid #4a6ee0;
        }
        
        .btn-secondary:hover {
            background-color: #4a6ee0;
            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;
        }
        
        .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;
          
            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%;
            min-height: 150px;
            margin-bottom: 10px;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
        }

        /* 图片样式 */
        .tool-card img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: contain;
            max-height: 300px;
        }

        /* 如果卡片有内容区域，让它自动扩展 */
        .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;
        }
        
        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 4px solid #fff;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* 用户操作按钮样式 */
        .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: 170px;
        }
        
        .slider-container canvas {
            width: 100%;
            height: 150px;
            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: 150px;
            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;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .hamburger {
                display: flex;
            }
            
            .nav-menu {
                position: fixed;
                left: -100%;
                top: 70px;
                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;
            }
            
            .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.5);
            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 {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            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;
        }

        .modal-overlay.active .modal {
            transform: translateY(0);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 25px;
            border-bottom: 1px solid #eee;
        }

        .modal-title {
            font-size: 20px;
            font-weight: 600;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #6c757d;
            transition: color 0.2s;
        }

        .modal-close:hover {
            color: #333;
        }

        .modal-body {
            padding: 25px;
            text-align: center;
        }

        .modal-image {
            max-width: 100%;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .modal-description {
            font-size: 15px;
            color: #555;
            line-height: 1.6;
            text-align: left;
        }

        .modal-footer {
            padding: 20px 25px;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }

        /* ========== 响应式断点 ========== */

        /* 平板 (Tablet) */
        @media (max-width: 992px) {
            .container {
                padding: 0 15px;
            }

            .hero-title {
                font-size: 26px;
            }

            .tools-grid {
                column-count: 3;
                
            }
            
            .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: 70px;
                padding: 20px 0;
            }

            .hero-section {
                padding: 30px 15px;
                margin-bottom: 30px;
            }

            .hero-title {
                font-size: 24px;
            }

            .hero-subtitle {
                font-size: 15px;
            }

            .section-title {
                font-size: 22px;
            }

            .tools-grid {
             column-count: 2;
            }
            
            .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: 1;
            }
            
            .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: transparent;
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.7);
        }

        .btn-secondary:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* 加载动画 */
        .loading-spinner {
            display: none;
            text-align: center;
            margin: 20px 0;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 4px solid #fff;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 结果展示区 */
        .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%);
        }
        .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;

    /* 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;
        }

        .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) {
            .result-grid {
                grid-template-columns: 1fr;
            }

            .tools-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }

            .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;
            }
        }
        
        /* 文生图详情页样式 */
        .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;
            }
        }
