@charset "UTF-8";
* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
 }
 
 :root {
     --primary: black;/* #6366f1; */
     --primary-light: #818cf8;
     --primary-dark: #4f46e5;
     --gray-100: #f3f4f6;
     --gray-200: #e5e7eb;
     --gray-300: #d1d5db;
     --gray-700: #374151;
     --gray-800: #1f2937;
     --white: #ffffff;
     --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     --radius: 8px;
     --transition: all 0.3s ease;
 }
 
 body {
     background-color: #f9fafb;
     color: var(--gray-800);
     min-height: 100vh;
 }
 
 .container {
     margin: 0 auto;
     padding: 0 20px;
 }
 
 /* 顶部导航 */
 header {
     box-shadow: var(--shadow);
     position: fixed;
     top: 0;
     left:0;
     z-index: 100;
     width: 100%;
     background: #f9fafb;
     
 }
 
 .header-content {
     display: flex;
     justify-content: space-between;
     align-items: center;
     height: 70px;
 }
 
 .logo {
     font-size: 22px;
     font-weight: 700;
     color: var(--primary);
     text-decoration: none;
     display: flex;
     align-items: center;
     gap: 8px;
 }
 
 .logo i {
     font-size: 24px;
 }
 
 .nav-buttons {
     display: flex;
     gap: 12px;
 }
 
.btn {
     padding: 8px 16px;
     border-radius: var(--radius);
     border: none;
     font-weight: 500;
     cursor: pointer;
     transition: var(--transition);
     font-size: 14px;
     text-decoration: none;
     display: inline-block;
 }
 
 .btn-outline {
     border: 1px solid var(--primary);
     color: var(--white);
     background: var(--primary);
 }
 
 .btn-outline:hover {
     background-color: var(--primary);
     color: var(--white);
 }
 
 .btn-primary {
     background-color: var(--primary);
     color: var(--white);
 }
 
 .btn-primary:hover {
     background-color: var(--primary-dark);
 }
 

 
 .form-group {
     margin-bottom: 16px;
 }
 
 .form-label {
     display: block;
     margin-bottom: 6px;
     font-size: 14px;
     color: var(--gray-700);
     font-weight: 500;
 }
 
 .form-input {
     width: 100%;
     padding: 10px 12px;
     border: 1px solid var(--gray-200);
     border-radius: var(--radius);
     font-size: 14px;
     transition: var(--transition);
 }
 
 .form-input:focus {
     outline: none;
     border-color: var(--primary);
     box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
 }
 
 /* 主内容区 */
 .main {
    padding-top:20px;
 }
 
 .hero {
     text-align: center;
 }
 
 .hero-title {
     font-size: 36px;
     font-weight: 700;
     color: var(--gray-800);
     margin-bottom: 16px;
 }
 
 .hero-title span {
     color: var(--primary);
 }
 
 .hero-desc {
     font-size: 18px;
     color: var(--gray-700);
     max-width: 600px;
     margin: 0 auto 32px;
     line-height: 1.6;
 }
 
 /* 克隆卡片 */
 .clone-card {
     background-color: var(--white);
     border-radius: var(--radius);
     box-shadow: var(--shadow);
     padding: 30px;
     /* max-width: 800px; */
     flex: 1;
 }
 
  /* 克隆卡片 */
 .clone-history {
     background-color: var(--white);
     border-radius: var(--radius);
     box-shadow: var(--shadow);
     padding: 30px 0px 10px 10px;
     margin-top:70px;
     width:300px;
     height: calc(100vh - 80px);
     overflow-y: scroll;
 }
 /* 隐藏Chrome/Safari滚动条 */
 .clone-history::-webkit-scrollbar {
    display: none; /* 完全隐藏滚动条 */
 }
 
 /* 隐藏Chrome/Safari滚动条 */
 .history-list::-webkit-scrollbar {
    display: none; /* 完全隐藏滚动条 */
 }
 
 .card-steps {
     display: flex;
     justify-content: space-between;
     margin-bottom: 30px;
     position: relative;
 }
 
 .card-steps::after {
     content: "";
     position: absolute;
     top: 15px;
     left: 0;
     right: 0;
     height: 2px;
     background-color: var(--gray-200);
     z-index: 1;
 }
 
 .step {
     text-align: center;
     position: relative;
     z-index: 2;
     width: 33.33%;
 }
 
 .step-icon {
     width: 32px;
     height: 32px;
     border-radius: 50%;
     background-color: var(--primary);
     color: var(--white);
     display: flex;
     justify-content: center;
     align-items: center;
     margin: 0 auto 8px;
     font-weight: 600;
 }
 
 .step.active .step-icon {
     background-color: var(--primary);
 }
 
 .step-title {
     font-size: 14px;
     font-weight: 500;
     color: var(--gray-800);
 }
 
 /* 上传区域 */
 .upload-area {
     border: 2px dashed var(--gray-200);
     border-radius: var(--radius);
     text-align: center;
     margin-bottom: 24px;
     cursor: pointer;
     transition: var(--transition);
     display: flex;
  	 flex-direction: column; /* 垂直排列子元素 */
  	 justify-content: center; /* 垂直居中 */
  	 align-items: center;     /* 水平居中 */
  	 height: 200px;
 }
 
 .upload-area:hover {
     border-color: var(--primary-light);
     background-color: rgba(99, 102, 241, 0.02);
 }
 
 .upload-icon {
     font-size: 40px;
     color: var(--primary);
     margin-bottom: 16px;
 }
 
 .upload-text {
     font-size: 16px;
     color: var(--gray-700);
     margin-bottom: 8px;
 }
 
 .upload-hint {
     font-size: 12px;
     color: var(--gray-500);
 }
 
 #audioFile {
     display: none;
 }
 
 /* 文本输入区 */
 .text-area {
 }
 
 #textInput {
     width: 100%;
     min-height: 200px;
     padding: 12px;
     border: 1px solid var(--gray-200);
     border-radius: var(--radius);
     resize: vertical;
     font-size: 14px;
     line-height: 1.6;
     resize: none;
 }
 
 #textInput:focus {
     outline: none;
     /* border-color: var(--primary-light);
     box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1); */
 }
 
 /* 操作按钮区 */
 .action-buttons {
     display: flex;
     gap: 12px;
     justify-content: center;
     margin-top: 10px;
 }
 
 .btn-lg {
     padding: 12px 24px;
     font-size: 16px;
 }
 
 /* 结果展示区 */
 .result-area {
     margin-top: 30px;
     padding-top: 30px;
     border-top: 1px solid var(--gray-200);
     display: none;
 }
 
 .result-title {
     font-size: 16px;
     font-weight: 600;
     margin-bottom: 16px;
     color: var(--gray-800);
 }
 
 .audio-player {
     width: 100%;
     padding: 10px;
     border-radius: var(--radius);
     background-color: var(--gray-100);
 }

 .card-template{
 	display: none !important;
 }
 
 /* 响应式适配 */
 @media (max-width: 768px) {
     .hero-title {
         font-size: 28px;
     }
     
     .hero-desc {
         font-size: 16px;
     }
     
     .clone-card {
         padding: 20px;
     }
     
    /*  .card-steps {
         flex-direction: column;
         gap: 20px;
     } */
     
     /* .card-steps::after {
         display: none;
     } */
     
     /* .step {
         width: 100%;
         display: flex;
         align-items: center;
         gap: 12px;
         text-align: left;
     } */
     
     /* .step-icon {
         margin: 0;
     } */
     
     .action-buttons {
         flex-direction: column;
     }
     
     .btn-lg {
         width: 100%;
     }
 }
 
 /* 加载动画 */
 .loading {
     display: none;
     align-items: center;
     justify-content: center;
     gap: 8px;
     margin-top: 20px;
 }
 
 .loader {
     width: 20px;
     height: 20px;
     border: 3px solid var(--gray-200);
     border-top: 3px solid var(--primary);
     border-radius: 50%;
     animation: spin 1s linear infinite;
 }
 
 @keyframes spin {
     0% { transform: rotate(0deg); }
     100% { transform: rotate(360deg); }
 }

 /* 1. 核心内容布局 - 新增左右分栏 */
.content-wrapper {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    height: calc(100vh - 300px);
}

.main-content {
    flex: 7;
}

.sidebar {
    height: fit-content;
    right: 20px;
    width: 520px;
    height: 100%;
}

/* 2. 声音记录面板 - 全新新增 */
.history-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction:column;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.history-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-title i {
    color: var(--primary);
}

.clear-history {
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
}

.clear-history:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.history-list {
    overflow-y: auto;
    display: flex;
    gap: 12px;
    height:100%;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    position: relative; /* 父容器设为相对定位 */
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
    font-size: 14px;
    flex: 1;
    display:none;
    flex-direction:column;
    align-items: center;
    justify-content:center;
    position: absolute;
  	top: 50%;
  	left: 50%;
  	transform: translate(-50%, -50%);
}

.history-item {
    border: 0px solid var(--gray-100);
    border-radius: var(--radius);
    transition: var(--transition);
}

.history-item:hover {
    border-color: var(--primary-light);
    background-color: rgba(99, 102, 241, 0.02);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.history-time {
    font-size: 12px;
    color: var(--gray-500);
}

.history-actions {
    display: flex;
    gap: 8px;
}

.history-action-btn {
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.history-action-btn:hover {
    color: var(--primary-dark);
}

.history-text {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}




/* 核心banner容器：深色科技风+渐变背景，匹配参考图 */
  .hero-banner {
     width: 100%;
height: 200px;
background: linear-gradient(135deg, #0a1020 0%, #ffffff 50%, #8dd5d5 100%);
position: relative;
overflow: hidden;
display: flex;
align-items: center;
margin-top:70px;
padding: 0 5%;
  }

  /* 背景科技纹理：模拟参考图的网格线条 */
.hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(20, 100, 120, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(10, 80, 100, 0.05) 2px, rgba(10, 80, 100, 0.05) 4px);
    z-index: 1;
}

/* 左侧内容区：标题+数据+按钮 */
.banner-left {
    flex: 1;
    position: relative;
    z-index: 2;
    color: #fff;
}

/* 主标题：荧光绿+大号字体，匹配参考图的视觉焦点 */
.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(90deg, #ffffff, #40e0d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 数据统计区：匹配参考图的3组数据布局 */
.banner-stats {
    display: flex;
    gap: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #a2ff40; /* 荧光绿，匹配参考图 */
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 按钮组：渐变按钮+免费体验标签，匹配参考图 */
.banner-buttons {
    position: relative;
}


.btn-clone {
    padding: 14px 40px;
    font-weight: 700;
    color: #0a1020;
    background: linear-gradient(90deg, #a2ff40, #40d0ff);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-audio{
    color: #0a1020;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(273deg, #E3B668 0%, #FCECC5 100%);
    display: none;    
    align-items: center;
    justify-content:center;
    width: 135px;
}

.btn-clone:hover {
    transform: translateY(-2px);
}

/* 免费体验标签：匹配参考图的小标签样式 */
.free-tag {
    position: absolute;
    background: #f9d368;
    color: #0a1020;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

/* 右侧图标区：声波机器人，匹配参考图的视觉元素 */
.banner-right {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot-icon {
    width: auto;
    height: 250px;
    /* 轻微旋转动效，增加科技感 */
    /* animation: robotFloat 6s ease-in-out infinite alternate; */
}

/* 机器人浮动动画 */
@keyframes robotFloat {
    0% { transform: translateY(0) rotate(-2deg); }
    100% { transform: translateY(-10px) rotate(2deg); }
}


/* 卡片容器 - 整体缩小，保持比例 */
.voice-card {
    width: 48%;
    max-width: 400px; /* 原800px，按比例缩小 */
    background: linear-gradient(to right, #1a1a1a, #144141);
    border-radius: 16px;
    
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px; /* 原24px，适配小尺寸 */
    transition: all 0.3s ease;
    /* 原始默认边框：1px浅灰，取消选中后恢复 */
    border: 1px solid #333; 
    outline: none;
    position: relative;
    margin: 5px 0px;
    
}

/* 头部区域：头像 + 标题信息 */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px; /* 原20px，适配小尺寸 */
    padding: 15px 10px 0px; /* 原24px，适配小尺寸 */
}
/* hover/focus 轻量效果（仅轻微变化） */
.voice-card:hover,
.voice-card:focus {
    border-color: #444;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}
 /* 仅强化卡片边框+阴影特效，其他样式完全不变 */
.voice-card.active {
   /* 哑光金色边框，低饱和度不刺眼 */
    border-color: #d4af37;
    border-width: 5px;
    /* 柔和发光：低亮度+小范围，仅烘托边框 */
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3),
                0 0 4px rgba(212, 175, 55, 0.2) inset;
    /* 极轻微上浮，几乎无感知 */
    transform: translateY(-2px);
}

/* 头像 - 按比例缩小 */
.avatar {
    width: 60px; /* 原120px，缩小一半 */
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-text {
    font-size: 24px; /* 原48px，缩小一半，相对14px主字体协调 */
    font-weight: bold;
    color: #d4af37; /* 金色 */
    height: 50px;
}

/* 标题信息区 - 字体调整为14px左右 */
.title-info {
    display: flex;
    flex-direction: column;
    gap: 4px; /* 原8px，适配小尺寸 */
}
.main-title {
    font-size: 16px; /* 主标题略大，14px基础上微调 */
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin: 0; /* 清除默认边距 */
}
.sub-title {
    font-size: 12px; /* 副标题略小，搭配14px主字体 */
    color: #a0b0b0;
    margin: 0; /* 清除默认边距 */
}

/* 底部按钮区 */
.card-footer {
    display: flex;
    align-items: center;
    gap: 12px; /* 原20px，适配小尺寸 */
    justify-content: space-between;
    padding: 0px 10px 10px 10px;
}
.more-btn {
    width: 40px; /* 原80px，缩小一半 */
    height: 30px; /* 原60px，缩小一半 */
    background-color: transparent;
    border: 1px solid #555; /* 原2px，适配小尺寸 */
    border-radius: 15px; /* 原30px，缩小一半 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px; /* 核心字体14px */
    cursor: pointer;
}
.sample-btn {
    padding: 6px 10px; /* 原12px 32px，缩小一半 */
    background-color: transparent;
    border: 1px solid #666; /* 原2px，适配小尺寸 */
    border-radius: 15px; /* 原30px，缩小一半 */
    display: flex;
    align-items: center;
    gap: 4px; /* 原8px，适配小尺寸 */
    color: #fff;
    font-size: 14px; /* 核心字体14px */
    cursor: pointer;
}
.play-icon {
    width: 0;
    height: 0;
    border-left: 8px solid #fff; /* 原16px，缩小一半 */
    border-top: 6px solid transparent; /* 原12px，缩小一半 */
    border-bottom: 6px solid transparent;
}
/* 暂停图标（双竖线）- 宽度调整为8px */
.pause-icon {
    width: 8px; /* 调整为8px */
    height: 12px; /* 保持和播放图标高度一致 */
    display: inline-block;
    position: relative;
}

/* 第一个竖线 */
.pause-icon::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px; /* 竖线宽度，视觉上更协调 */
    height: 100%;
    background-color: #fff;
}

/* 第二个竖线 */
.pause-icon::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 3px; /* 和左侧竖线宽度一致 */
    height: 100%;
    background-color: #fff;
}
.voice-btn {
    padding: 8px 10px; /* 原16px 48px，缩小一半 */
    background-color: #e6c26e;
    border: none;
    border-radius: 15px; /* 原30px，缩小一半 */
    color: #333;
    font-size: 14px; /* 核心字体14px */
    font-weight: bold;
    cursor: pointer;
}

/* 分组标题样式 - 移除下划线 + 加前缀 */
.history-group-title {
    font-size: 14px;
    color: #999; /* 灰色分组标题 */
    margin: 20px 0 10px 0;
    padding-left: 4px;
    /* 移除下划线相关样式 */
    border-bottom: none;
    padding-bottom: 0;
}
/* 列表项样式 + 加前缀 */
.history-item {
    padding: 5px 10px;
    margin: 5px 0;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}
/* 鼠标悬停/选中效果（适配白色背景） + 加前缀 */
.history-item:hover, .history-item.history-active {
    background-color: #f5f5f5; /* 浅灰色选中/悬停背景 */
}
.history-item-text {
    font-size: 14px;
    color: #333; /* 黑色文本 */
    /* 核心：单行溢出省略 */
    white-space: nowrap;    /* 强制文本单行显示 */
    overflow: hidden;       /* 隐藏溢出内容 */
    text-overflow: ellipsis;/* 溢出部分用...替代 */
    flex: 1;                /* 占满剩余宽度，保证省略效果生效 */
    /* margin-right: 8px;      与右侧更多按钮保持间距 */
}
/* 右侧更多按钮（FA图标） + 加前缀 */
.history-item-more {
    color: #999;
    font-size: 14px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}
.history-item-more:hover {
    background-color: #e8e8e8;
}
/* 右键菜单样式（适配白色背景） + 加前缀 */
.history-context-menu {
    position: absolute;
    width: 100px;
    background-color: #ffffff; /* 白色菜单背景 */
    border: 1px solid #e0e0e0; /* 菜单边框 */
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    z-index: 9999;
    display: none;
    overflow: hidden;
}
.history-menu-item {
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}
.history-menu-item:hover {
    background-color: #f5f5f5; /* 菜单项悬停背景 */
}
.history-menu-item.history-divider {
    height: 1px;
    background-color: #e0e0e0;
    padding: 0;
    margin: 4px 0;
}
.history-menu-item.history-delete {
    color: #ff0003; /* 删除按钮红色 */
}
/* FA图标统一样式 + 加前缀 */
.history-menu-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
/* 核心：用 :has() 排除空元素，只选第一个 .history-group */
.clone-history:has(#clone-history-empty) .history-group:nth-of-type(2) .history-group-title,
.clone-history:not(:has(#clone-history-empty)) .history-group:nth-of-type(1) .history-group-title {
  margin-top: 0 !important;
}
.clone-history-empty{
	display: none;justify-content: center;align-items: center;flex-direction: column;height: 100%;
}
