/* 基础样式 */
        * {
            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;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: #4a6ee0;
        }
        
        .nav-menu {
            display: flex;
            list-style: none;
        }
        
        .nav-menu li {
            margin-left: 25px;
        }
        
        .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);
        }
        
        /* 风格选择区域 */
        .style-selection {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin: 20px 0;
        }
        
        .style-option {
            background-color: rgba(255, 255, 255, 0.2);
            border: 2px solid transparent;
            border-radius: 20px;
            padding: 8px 16px;
            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;
        }
        
        .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;
        }
        
        .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-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 {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .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: 500;
            color: #444;
        }
        
        /* 内容区域样式 */
        .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); }
        }
        
        /* 响应式设计 */
        @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;
            }
            
            .content-section {
                grid-template-columns: 1fr;
            }
            
            .tools-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            
            .results-grid {
                grid-template-columns: 1fr;
            }
        }
        /* ========== 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 {
                grid-template-columns: repeat(3, 1fr);
            }

            .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 {
                grid-template-columns: repeat(2, 1fr);
            }

            .tool-card {
                padding: 20px 12px; /* 适当调整内边距 */
            }

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

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

        /* 超小手机 */
        @media (max-width: 480px) {
            .tools-grid {
                grid-template-columns: 1fr;
            }

            .friend-links a {
                display: block;
                margin: 5px 0;
            }

            .modal {
                width: 95%;
                margin: 10px;
            }
        }
        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%);
        }

        .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 {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            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: 500;
            color: #444;
        }

        /* 响应式设计 */
        @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;
    line-height:1.4;
    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;
}