/* CSS Document */

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
        }

        body {
            background-color: #FFF4CC;
            color: #333;
            line-height: 1.6;
            overflow: hidden;
        }

        /* 顶部导航 */
        .header {
            background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
            padding: 0 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 60px;
            position: sticky;
            top: 0;
            z-index: 999;
        }
        .logo {
            font-size: 22px;
            font-weight: 700;
            color: #FFF;
        }
        .nav-menu {
            display: flex;
            gap: 25px;
        }
        .nav-menu a {
            text-decoration: none;
            color: #FFF;
            font-size: 14px;
        }
        .nav-menu a.active {
            font-weight: bold;
        }
        .user-area {
            display: flex;
            gap: 15px;
        }
        .balance, .user-name {
            background-color: #FFF;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 14px;
        }

        /* 整体容器三栏布局 */
        .container {
            display: flex;
            width: 100%;
            gap: 20px;
            padding: 20px;
            min-width: 1200px;
            height: calc(100vh - 60px);
        }

        /* 左侧侧边栏 */
        .sidebar {
            width: 180px;
            background: #FFF;
            border-radius: 12px;
            padding: 20px;
            border: 1px solid #FFE082;
            flex-shrink: 0;
            height: 100%;
            overflow: hidden;
        }
        .nav-list {
            list-style: none;
        }
        .nav-item {
            padding: 10px 12px;
            margin: 4px 0;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
        }
        .nav-item.active {
            background: linear-gradient(135deg, #FF5722, #E64A19);
            color: #FFF;
        }
        .nav-item.all-apps {
            background: #FFF8E1;
            border: 1px dashed #FFC107;
            color: #FF8A00;
            font-weight: bold;
        }
        .vip {
            background: linear-gradient(135deg, #FF5722, #FF9800);
            color: #fff;
            text-align: center;
            padding: 10px;
            border-radius: 8px;
            margin: 20px 0;
            font-size: 12px;
        }
        .service {
            background: #FFF8E1;
            padding: 10px;
            border-radius: 8px;
            font-size: 12px;
            color: #666;
            margin-top: 10px;
        }

        /* 中间操作区 - 严格匹配参考UI */
        .operation {
            width: 420px;
            background: #FFFFFF;
            border-radius: 16px;
            border: 1px solid #FFE082;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            height: 100%;
        }
        .op-header {
            padding: 16px 20px;
            background: #FFF8E1;
            border-bottom: 1px solid #FFE082;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .op-header-icon {
            width: 36px;
            height: 36px;
            background: #FFC107;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #FFF;
            font-size: 18px;
        }
        .op-header-title {
            font-size: 16px;
            font-weight: bold;
        }
        .op-header-desc {
            font-size: 11px;
            color: #666;
        }

        .op-content {
            padding: 20px;
            height: calc(100% - 70px);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* 模型选择横向滚动 - 新增左右滑动按钮，匹配参考图 */
        .model-nav-wrapper {
            position: relative;
            width: 100%;
            height: 70px;
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
            border: 1px solid #FFE082;
        }
        /* 左右滑动按钮 */
        .model-scroll-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 24px;
            background: #fff;
            border: 1px solid #FFE082;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            font-size: 12px;
            color: #FF8A00;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .model-scroll-left {
            left: 8px;
        }
        .model-scroll-right {
            right: 8px;
        }
        .model-nav {
            position: absolute;
            left: 0;
            top: 0;
            display: flex;
            gap: 8px;
            height: 100%;
            padding: 8px 10px 8px 40px; /* 左侧留按钮空间 */
            transition: left 0.3s ease;
            width: max-content; /* 自适应宽度 */
        }
        .model-item {
            flex: 0 0 110px;
            height: 54px;
            background: #fff;
            border: 1px solid #FFE082;
            border-radius: 6px;
            padding: 4px;
            font-size: 11px;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            cursor: pointer;
        }
        .model-item.active {
            background: #FFC107;
            color: #fff;
            border-color: #FFA000;
        }
        .model-desc {
            font-size: 9px;
            color: #666;
            margin-top: 2px;
            line-height: 1.2;
        }
        .model-item.active .model-desc {
            color: #fff;
        }
        .model-tag {
            position: absolute;
            top: -4px;
            right: 6px;
            font-size: 8px;
            color: #fff;
            padding: 1px 4px;
            border-radius: 2px;
            white-space: nowrap;
        }
        .tag-new { background: #FF5722; }
        .tag-vip { background: #FF9800; }
        .tag-hot { background: #4CAF50; }

        /* 灵感库 */
        .inspire-section {
            display: flex;
            justify-content: space-between;
            padding: 8px 12px;
            background: #fff;
            border: 1px solid #FFE082;
            border-radius: 8px;
            font-size: 11px;
            flex-shrink: 0;
            color: #FF5722;
        }

        /* 文字描述区域 */
        .prompt-section {
            width: 100%;
            flex-shrink: 0;
        }
        .prompt-title {
            font-size: 13px;
            color: #333;
            font-weight: 500;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .prompt-title .prompt-dict {
            color: #FF8A00;
            font-size: 11px;
            background: #FFF8E1;
            padding: 2px 6px;
            border-radius: 4px;
        }
        .prompt-input {
            width: 100%;
            min-height: 80px;
            max-height: 120px;
            border: 1px solid #FFCC80;
            border-radius: 8px;
            padding: 10px;
            resize: none;
            font-size: 12px;
            line-height: 1.5;
            overflow-y: auto;
        }
        .prompt-count {
            text-align: right;
            font-size: 10px;
            color: #999;
            margin-top: 4px;
        }
        .ai-optim-btn {
            background: #FFE8E8;
            color: #FF5722;
            text-align: center;
            padding: 8px;
            border-radius: 6px;
            cursor: pointer;
            margin-top: 8px;
            font-size: 11px;
            font-weight: 500;
            border: 1px solid #FFCC80;
        }

        /* 生成比例 - 支持动态显示/隐藏/选中 */
        .ratio-section {
            width: 100%;
            flex-shrink: 0;
            margin-top: 5px;
        }
        .ratio-title {
            font-size: 13px;
            color: #333;
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .ratio-title-icon {
            width: 18px;
            height: 18px;
            background: #FFC107;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 10px;
            font-weight: bold;
        }
        .ratio-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 8px;
        }
        .ratio-item {
            height: 80px;
            border: 1px solid #E0E0E0;
            border-radius: 6px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            cursor: pointer;
            background: #fff;
            position: relative;
            transition: all 0.2s ease;
            /* 默认显示，可通过JS控制隐藏 */
            display: flex;
        }
        .ratio-item.hidden {
            display: none;
        }
        .ratio-item.active {
            background: #FFF8E1;
            border-color: #FFC107;
        }
        .ratio-icon {
            width: 30px;
            height: 30px;
            border: 1px solid #999;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 6px;
            border-radius: 2px;
            background: #fff;
        }
        .ratio-icon-1-1 { border-style: solid; }
        .ratio-icon-1-2 { border-style: solid; width: 15px; }
        .ratio-icon-16-9 { border-style: solid; height: 15px; }
        .ratio-icon-9-16 { border-style: solid; width: 15px; }
        .ratio-icon-3-4 { border-style: solid; width: 22px; }
        .ratio-icon-3-2 { border-style: solid; height: 22px; }
        .ratio-icon-2-3 { border-style: solid; width: 20px; }
        .ratio-text {
            font-size: 11px;
            color: #666;
            margin-bottom: 3px;
            font-weight: 500;
        }
        .ratio-name {
            font-size: 10px;
            color: #999;
        }

        /* 清晰度+图片格式 - 优化布局，清晰度按钮缩小，匹配参考图 */
        .params-row {
            display: flex;
            gap: 15px; /* 缩小间距，更紧凑 */
            flex-shrink: 0;
            margin-top: 10px;
        }
        .params-section {
            flex: 1;
        }
        .param-title {
            font-size: 13px;
            color: #333;
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .param-title-icon {
            width: 18px;
            height: 18px;
            background: #FFC107;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 10px;
            font-weight: bold;
        }
        .param-btns {
            display: flex;
            gap: 8px; /* 缩小按钮间距 */
        }
        .param-btn {
            flex: 1;
            padding: 8px 0; /* 减少内边距，缩小按钮 */
            text-align: center;
            border: 1px solid #E0E0E0;
            border-radius: 6px;
            cursor: pointer;
            background: #fff;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        /* 清晰度按钮优化 - 更小更紧凑，匹配参考图 */
        .clarity-btn {
            flex: none;
            width: calc(30% - 5px); /* 缩小宽度，从50%改为30% */
            font-size: 11px; /* 字体缩小 */
            padding: 7px 0; /* 进一步缩小内边距 */
        }
        .param-btn.active {
            background: #FFC107;
            color: #fff;
            border-color: #FFC107;
            font-weight: 600;
        }
        .format-btns .param-btn {
            flex: none;
            width: calc(31% - 6px); /* 微调宽度，适配间距 */
            padding: 8px 0;
            font-size: 11px;
        }

        /* 图片风格 */
        .style-section {
            width: 100%;
            flex-shrink: 0;
            margin-top: 10px;
        }
        .style-title {
            font-size: 13px;
            color: #333;
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .style-title-icon {
            width: 18px;
            height: 18px;
            background: #FFC107;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 10px;
            font-weight: bold;
        }
        .style-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 6px;
        }
        .style-item {
            border: 1px solid #E0E0E0;
            border-radius: 6px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .style-item:hover,.style-item.active {
            border-color: #FFC107;
        }
		
        .style-item img {
            width: 100%;
            height: 45px;
            object-fit: cover;
            display: block;
        }
        .style-name {
            font-size: 9px;
            text-align: center;
            padding: 3px 0;
            background: #fff;
            color: #666;
        }

        /* 提交按钮 - 匹配参考图 */
        .submit-btn {
            background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
            color: #fff;
            text-align: center;
            padding: 14px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            width: 100%;
            font-size: 13px;
            flex-shrink: 0;
            margin-top: 15px;
            box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
        }
        .submit-price {
            font-size: 11px;
            margin-left: 5px;
        }
        .footer-tip {
            font-size: 10px;
            color: #999;
            text-align: center;
            flex-shrink: 0;
            margin-top: 10px;
            padding-bottom: 5px;
        }

        /* 右侧结果区 - 支持多案例切换 */
        .result {
            flex: 1;
            background: #fff;
            border-radius: 12px;
            padding: 20px;
            border: 1px solid #FFE082;
            height: 100%;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .result-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            flex-shrink: 0;
        }
        .result .title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            display: block;
        }
        .result-tutorial {
            font-size: 11px;
            color: #FF8A00;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .result-subtitle {
            font-size: 12px;
            color: #666;
            margin-bottom: 15px;
            flex-shrink: 0;
        }
        .result-content {
            flex: 1;
            overflow-y: auto;
            scroll-behavior: smooth;
            padding-right: 5px;
        }
        .result-card {
            background: #fff;
            border-radius: 8px;
            border: 1px solid #E0E0E0;
            padding: 15px;
            margin-bottom: 15px;
            /* 默认隐藏，仅显示当前模型对应的案例 */
            display: none;
        }
        .result-card.active {
            display: block;
        }
        .result-work-info {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            font-size: 11px;
        }
        .result-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #FFC107;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: bold;
        }
        .result-author {
            font-weight: 500;
            color: #333;
        }
        .result-tag {
            background: #FF8A00;
            color: #fff;
            padding: 1px 6px;
            border-radius: 4px;
            font-size: 9px;
            margin-left: 4px;
        }
        .result-time {
            margin-left: auto;
            color: #999;
            font-size: 10px;
        }
        .result-prompt {
            font-size: 11px;
            color: #333;
            line-height: 1.5;
            margin-bottom: 12px;
            padding: 10px;
            background: #FFF8E1;
            border-radius: 6px;
            border: 1px solid #FFE082;
        }
        .result-img-box {
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            border: 1px solid #E0E0E0;
        }
        .result-img-box img {
            width: 100%;
            display: block;
        }
        .img-tag {
            position: absolute;
            top: 8px;
            left: 8px;
            background: rgba(0,0,0,0.6);
            color: #fff;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            z-index: 10;
        }
        .result-edit-bar {
            margin-top: 12px;
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .result-edit-bar label {
            font-size: 11px;
            color: #333;
            font-weight: 500;
            white-space: nowrap;
        }
        .result-edit-bar input {
            flex: 1;
            padding: 8px 10px;
            border: 1px solid #E0E0E0;
            border-radius: 6px;
            font-size: 11px;
            outline: none;
        }
        .result-edit-bar input:focus {
            border-color: #FFC107;
        }
        .result-edit-bar button {
            padding: 8px 16px;
            background: #FFC107;
            color: #fff;
            border: none;
            border-radius: 6px;
            font-size: 11px;
            cursor: pointer;
            font-weight: 500;
        }

        /* 滚动条样式 */
        .op-content::-webkit-scrollbar, .result-content::-webkit-scrollbar { width: 6px; }
        .op-content::-webkit-scrollbar-track, .result-content::-webkit-scrollbar-track { background: #f5f5f5; border-radius: 3px; }
        .op-content::-webkit-scrollbar-thumb, .result-content::-webkit-scrollbar-thumb { 
            background: #FFC107; 
            border-radius: 3px;
        }
        
.user-info ul li { position:relative; padding-left:30px; float:left; height: 60px; }
.user-info ul li:first-child { margin-left: 0; }
.ico { display: block; background: url("../images/ico.png") no-repeat 0 0; }
.user-info ul li .search, .user-info ul li .notice { cursor: pointer; }
.user-info ul li .search { width:18px; height:18px; margin-top:22px; background-position:0 -3px; }
.user-info ul li .notice { margin-top:19px; width:22px; height:21px; background-position:-20px -127px; }
.user-info ul li.login-regsi { height:35px; margin-top:22px; background:url("../images/li.png") no-repeat 85px 5px; }
.user-info ul li.login-regsi a { padding:0 12px; color:#fff; }
.user-info ul li.login-regsi-y img { border:2px solid #1a212b; border-radius:150%; margin-top:12px; }
.user-info ul li.login-regsi-y:hover .drop-down-user { display: block; }
.user-info ul li .drop-down-user { display: none; width: 190px; height: auto; position: absolute; top: 60px; right: 0; background: #fff; padding-bottom: 5px; text-indent: 20px; border-radius: 5px; z-index:180; }
.user-info ul li .drop-down-user h5 { height: 55px; line-height: 55px; font-weight: bold; overflow: hidden; }
.user-info ul li .drop-down-user h5 a { color: #333; }
.user-info ul li .drop-down-user ul li { position: relative; width: 100%; height: 40px; line-height: 40px; padding-left: 0; border-top: 1px solid #eee; }
.user-info ul li .drop-down-user ul li i { position:absolute; top:12px; right:20px; display:block; width:18px; height:18px; line-height:18px; text-align:center; background:red; color:#fff; text-indent:0; font-style:normal; font-size:12px; border-radius:65px; overflow:hidden; }
.user-info ul li .drop-down-user ul li a { display:block; }
.user-info ul li .drop-down-user ul li:hover { background:#f0f0f0; }
.user-info ul li .notice-i { position:absolute; top:10px; right:0; display:block; width:10px; height:10px; background:red; border-radius:35px; z-index:999; }