/* ==========================================
   代码生成区域样式模块 - Code Generation Styles
   包含：代码生成区域、格式选项卡等
   ========================================== */

/* 代码生成区域样式 */
.code-generation-section {
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-height: 500px;
    overflow-y: auto;
}

.code-gen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.code-gen-header h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.empty-lines-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(40, 40, 40, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.empty-lines-selector label {
    color: #cccccc;
    font-size: 0.85rem;
    font-weight: 500;
}

.empty-lines-selector select {
    background: rgba(30, 30, 30, 0.9);
    color: #ffffff;
    border: 1px solid rgba(255, 144, 0, 0.3);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 50px;
}

.empty-lines-selector select:hover {
    border-color: rgba(255, 144, 0, 0.5);
    background: rgba(40, 40, 40, 0.9);
}

.empty-lines-selector select:focus {
    border-color: #ff9000;
    box-shadow: 0 0 0 2px rgba(255, 144, 0, 0.2);
}

.copy-current-btn {
    background: linear-gradient(135deg, #ff9000 0%, #000000 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 144, 0, 0.3);
}

.copy-current-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 144, 0, 0.4);
}

.code-gen-content {
    text-align: center;
    padding: 40px 20px;
}

.code-gen-empty {
    color: #888;
    font-size: 1rem;
    line-height: 1.6;
}

.code-gen-formats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 格式选项卡样式 */
.format-tabs {
    display: flex;
    gap: 8px;
    background: rgba(20, 20, 20, 0.6);
    padding: 6px;
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.format-tabs::-webkit-scrollbar {
    height: 4px;
}

.format-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 144, 0, 0.3);
    border-radius: 2px;
}

.format-tab {
    flex: 1;
    min-width: fit-content;
    background: transparent;
    color: #aaaaaa;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.format-tab:hover {
    background: rgba(255, 144, 0, 0.1);
    color: #ff9000;
}

.format-tab.active {
    background: linear-gradient(135deg, #ff9000 0%, #000000 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 144, 0, 0.3);
}

/* 格式内容容器 */
.format-content-container {
    position: relative;
    min-height: 180px;
}

.format-content {
    display: none;
}

.format-content.active {
    display: block;
}

.code-format-content {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 10px;
    padding: 12px;
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.link-item {
    font-size: 0.85rem;
    color: #cccccc;
    font-family: 'Courier New', monospace;
    padding: 6px 10px;
    margin-bottom: 6px;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 6px;
    word-break: break-all;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.link-item:last-child {
    margin-bottom: 0;
}

.link-item:hover {
    background: rgba(50, 50, 50, 0.8);
    border-color: rgba(255, 144, 0, 0.2);
}

