@font-face {
    font-family: 'PingFangSC-Regular.woff2';
    src: url('/fonts/PingFangSC-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'PingFangSC-Semibold.woff2';
    src: url('/fonts/PingFangSC-Semibold.woff2') format('woff2');
}


* {
    font-family: 'PingFangSC-Regular.woff2';
    box-sizing: border-box;
}

/* 平板/触控优化：基础字号与触控区域；两视图下均不出现整页最右侧滚动条 */
html {
    font-size: 18px;
    -webkit-text-size-adjust: 100%;
    height: 100%;
    overflow: hidden;
}
body {
    background-color: #a8d4ec;
    background-repeat: no-repeat;
    height: 100%;
    overflow: hidden;
}
/* 语音调取图片视图时，整页（含顶部）统一为淡鹅黄色 */
body.body--voiceView {
    background-color: #f5e6a3;
    /* 触控设备更易点的最小字号 */
    font-size: 1rem;
    line-height: 1.5;
}
/* 可点击元素最小触控区域 44px（符合 Apple HIG），触控优化 */
button,
a,
[role="button"],
input[type="submit"],
input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
    touch-action: manipulation;
}
button {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 1rem;
}
.button--state--destructive {
    background-color: red;
    color: white;
}
.button--state--accent {
    background-color: forestgreen;
    color: white;
    font-family: 'PingFangSC-Semibold.woff2';
}
.button--state--disabled {
    background-color: #c2c8d0;
    color: white;
}
.button--state--activate {
    background-color: coral;
    color: white;
}




.tag {
    display: inline;
    background-color: darkblue;
    border-radius: 18px;
    color: white;
    padding: 10px 18px;
    font-size: 1rem;
}

.container--center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.container--twoItems {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* header */
.header--layout {
    height: 88px;
}
.header {
    width: 100%;
    min-height: 72px;
    padding: 14px 24px;
    background-color: white;
    border-radius: 25px;
}
/* 三栏：诺语星 | 居中 toggle | 右侧按钮 */
.header--threeParts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.header--webname {
    font-family: 'PingFangSC-Semibold.woff2';
    font-size: 1.25rem;
    max-width: 320px;
    line-height: 1.35;
}
.header--toggle .header--toggleIcon {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    vertical-align: middle;
    /* 图标与按钮底色对比：深色图标在浅色底上更清晰 */
    filter: brightness(0);
}
.header--toggle .header--toggleText {
    vertical-align: middle;
}
.header--toggleWrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
/* 默认：点击进入语音调取图片 — 淡鹅黄色按钮，深色文字/图标 */
.header--toggle {
    padding: 14px 32px;
    border-radius: 28px;
    font-size: 1.1rem;
    font-family: 'PingFangSC-Semibold.woff2';
    min-width: 300px;
    min-height: 56px;
    background-color: #f5e6a3;
    color: #5c4a1f;
    border: 2px solid #d4c46a;
    box-shadow: 0 4px 12px rgba(180, 160, 60, 0.25);
}
.header--toggle .header--toggleIcon {
    opacity: 0.9;
}
.header--toggle:hover {
    background-color: #f0e08c;
    border-color: #c4b45a;
    box-shadow: 0 6px 16px rgba(180, 160, 60, 0.35);
}
/* 激活：点击选择图片发声 — 淡蓝色按钮，深色文字/图标（与选择图片发声页面一致） */
.header--toggle.button--state--activate {
    background-color: #a8d4ec;
    color: #1a5fb4;
    border-color: #7eb8e0;
    box-shadow: 0 4px 12px rgba(26, 95, 180, 0.2);
}
.header--toggle.button--state--activate .header--toggleIcon {
    opacity: 0.95;
}
.header--toggle.button--state--activate:hover {
    background-color: #96c8e4;
    border-color: #6aa8d0;
}
.header--buttonContainer {
    display: flex;
    align-items: center;
}
.header--button {
    margin-left: 18px;
    min-height: 48px;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 1rem;
    display: none;
}
.header--button .header--btnIcon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
}
/* 账户下拉：容器显示时，内部账户按钮需可见（覆盖 .header--button 的 display:none） */
.header--accountWrap {
    position: relative;
    margin-left: 15px;
    display: none;
    align-items: center;
}
.header--accountWrap .header--button {
    display: inline-flex;
}
.header--accountWrap .header--accountButtonIcon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.header--accountDropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 220px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    padding: 10px 0;
    z-index: 100;
    border: 1px solid #e0e0e0;
    text-align: left;
}
.header--accountProfile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.header--accountAvatarWrap {
    position: relative;
    flex-shrink: 0;
}
.header--accountAvatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}
.header--accountUploadAvatar {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    color: #2c7be5;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px 0;
    min-height: 44px;
    text-align: left;
}
.header--accountUploadAvatar:hover {
    text-decoration: underline;
}
.header--accountUsername {
    flex: 1;
    font-size: 1.05rem;
    color: #333;
    font-family: 'PingFangSC-Semibold.woff2';
    word-break: break-all;
}
.header--accountDropdown .header--accountUsername {
    padding: 0;
    border: none;
}
/* 账户下拉内按钮：覆盖全局 button 的 justify-content: center，保证左对齐 */
.header--accountDropdown .header--accountItem {
    justify-content: flex-start;
}
.header--accountItem {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 14px 20px;
    min-height: 52px;
    font-size: 1rem;
    text-align: left;
    border: 0;
    background: none;
    cursor: pointer;
    color: #333;
}
.header--accountItem:hover {
    background-color: #f5f5f5;
}
.header--accountItemIcon {
    width: 22px;
    height: 22px;
    margin-right: 10px;
}
.header--accountItem--destructive {
    color: #c00;
}
.header--accountItem--destructive:hover {
    background-color: #ffebee;
}

/* 选择图片发声 / 语音调取图片 两视图：固定高度、无整页滚动，仅内部区域局部滚动 */
.view-pictures {
    height: calc(100vh - 88px);
    min-height: 0;
    overflow: hidden;
    background-color: #a8d4ec;
}
.view-voice {
    height: calc(100vh - 88px);
    min-height: 0;
    overflow: hidden;
    padding: 14px;
    box-sizing: border-box;
    background-color: #f5e6a3;
}
.view-voice--main {
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    min-height: 0;
    gap: 0;
}
.view-voice--main > .frequentlyMentionedPictures--container {
    flex: 0 0 auto;
}
.view-voice--main > .view-voice--card {
    flex: 1 1 auto;
    min-width: 0;
}
.view-voice--card {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    margin: 0;
    height: 100%;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}
/* 语音页左侧：视觉流程（加宽，横向空间富余）；仅此区域右侧有局部滚动条 */
.frequentlyMentionedPictures--container {
    width: 22%;
    min-width: 180px;
    height: 100%;
    min-height: 0;
    padding: 0 8px 0 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.frequentlyMentionedPictures {
    flex: 1;
    min-height: 0;
    overflow: auto;
}
.frequentlyMentionedPictures--item {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 8% 4%;
    cursor: pointer;
}
.frequentlyMentionedPictures--item .picture--placeholder {
    position: relative;
    width: 100%;
    padding-top: 100%;
}
.frequentlyMentionedPictures--item .picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.frequentlyMentionedPictures--item .picture--name {
    font-size: 0.9rem;
    text-align: center;
    background-color: white;
    padding: 4px 2px;
    line-height: 1.35;
}
.frequentlyMentionedPictures .picture--clicksnum {
    display: inline;
}

/* 视觉流程图片放大弹窗：几乎全屏，左上角 X 关闭 */
.vision-flow-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vision-flow-modal--backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}
.vision-flow-modal--image {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}
.vision-flow-modal--close {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    width: 56px;
    height: 56px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.2s;
}
.vision-flow-modal--close:hover {
    background: #fff;
}
.vision-flow-modal--close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.main {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.main > .frequentlyClickedPictures--container,
.main > .picturesAndAIDialogue--container,
.main > .recentlyClickedPictures--container {
    flex: 0 0 auto;
}

/* 分类一行：左侧分类标签，居中为「完成」按钮（编辑模式时显示） */
.pictures--headerWithEdit {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    position: relative;
}
.pictures--headerWithEdit .tag {
    position: absolute;
    left: 0;
    flex-shrink: 0;
}
.pictures--headerDoneButton {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    min-height: 48px;
    border-radius: 24px;
    padding: 10px 22px;
    font-size: 1rem;
    display: none;
    align-items: center;
}
.pictures--headerDoneButtonIcon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
}


/* frequentlyClickedPictures */
.frequentlyClickedPictures--container {
    width: 12.5%;
    height: calc(100vh - 88px);
    padding: 0 0.5% 0 0;
}
.frequentlyClickedPictures {
    height: calc(100vh - 136px);
    overflow: auto;
}
.frequentlyClickedPictures--item {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 8% 4%;
}

/* recentlyClickedPictures */
.recentlyClickedPictures--container {
    width: 12.5%;
    height: calc(100vh - 88px);
    padding: 0 0.5% 0 0;
}

.recentlyClickedPictures {
    height: calc(100vh - 136px);
    overflow: auto;
}
.recentlyClickedPictures--item {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 8% 4%;
}


.picturesAndAIDialogue--container {
    width: 75%;
    height: calc(100vh - 88px);
    padding: 0 0.5%;
}



.pictures--button {
    padding: 10px 24px;
    border-radius: 18px;
    font-size: 1rem;
}

.pictures {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    width: 100%;
    height: calc(100vh - 136px);
    overflow: auto;
}

.pictures--item {
    width: calc(100% / 6);
    padding: 1% 0.5%;
}

.pictures--header {
    min-height: 48px;
}


.picture--placeholder {
    position: relative;
    width: 100%;
    padding-top: 100%;
}
.picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.picture--name {
    font-size: 1rem;
    text-align: center;
    background-color: white;
    padding: 4px 2px;
    line-height: 1.35;
}
/* 主图区点击次数默认隐藏 */
.picture--clicksnum {
    display: none;
}

/* 左侧常点击图片区域始终显示点击次数 */
.frequentlyClickedPictures .picture--clicksnum {
    display: inline;
}




.pictures--symbolContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pictures--symbol {
    width: 60%;
}



/* AIDialogue */
.AIDialogue--layout {
    min-height: 140px;
    padding: 0 8px;
    display: none;
}
.AIDialogue {
    background-color: #F2F2F2;
    min-height: 130px;
    border-radius: 20px;
    padding: 8px 10px;
}
.AIDialogue--header {
    min-height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
}
.AIDialogue--title {
    font-family: 'PingFangSC-Semibold.woff2';
    font-size: 1.05rem;
}
.AIDialogue--content {
    background-color: white;
    min-height: 88px;
    border-radius: 22px;
    padding: 12px;
    overflow: auto;
    font-size: 1rem;
}
.AIDialogue--button {
    font-size: 1rem;
    font-family: 'PingFangSC-Semibold.woff2';
    color: rgb(241, 213, 128);
    min-height: 44px;
    padding: 8px 14px;
}



.sheet {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
    background-color: rgba(225, 225, 225, 0.9);
    backdrop-filter: blur(6px);

    display: flex;
    justify-content: center;
    align-items: center;
}
.sheet--card {
    width: 90%;
    max-width: 360px;
    background-color: white;
    border-radius: 25px;
    padding: 24px 20px 20px;
}
.sheet--categoryInput,
.sheet--nameInput {
    border: 0;
    background-color: #F2F2F2;
    width: 80%;
    max-width: 200px;
    min-height: 48px;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    padding: 0 12px;
}
.sheet--categoryInput {
    margin: 0 auto 12px;
}
.sheet--categoryInput:focus,
.sheet--nameInput:focus {
    outline: 0;
}
.sheet--symbol {
    width: 250px;
    margin: 20px auto;
}
.sheet--img {
    width: 250px;
    height: 250px;
    border-radius: 20px;
    margin: 20px auto;
    display: block;
}
.sheet--nameInput {
    margin: 12px auto;
}
.sheet--buttons {
    margin: 24px 0 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.sheet button {
    min-width: 100px;
    flex: 1;
    min-height: 48px;
    border-radius: 10px;
    font-size: 1rem;
    padding: 12px 16px;
}

.sheet--recordButtonContainer {
    padding: 16px 20px;
    display: flex;
    justify-content: center;
}
.sheet--recordButton,
.sheet--stopRecordButton {
    min-height: 52px;
    padding: 14px 24px;
    font-size: 1rem;
}

/* Chatbot Styles */
.chatbot-sheet {
    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;
}

.chatbot-sheet--card {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 1400px;
    height: 900px;          /* 设置初始高度，使其为方形 */
    padding: 10px;   
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* 消息区 + 悬浮麦克风按钮容器 */
.chatbot-messages-wrap {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-radius: 10px 10px 0 0;
}
/* 仅在没有对话内容时显示，不悬浮，随内容流排布 */
.chatbot-hint {
    margin: 0;
    padding: 12px 14px 0;
    font-size: 0.9rem;
    color: #666;
    flex-shrink: 0;
}
.chatbot-hint.chatbot-hint--hidden {
    display: none;
}
.chatbot-messages {
    flex: 1;
    padding: 12px 14px 160px 14px;
    overflow-y: auto;
    font-size: 1rem;
}
/* 右下方、发送框上方的圆形麦克风按钮，仅图标、更大 */
.chatbot-mic-float {
    position: absolute;
    bottom: 12px;
    right: 14px;
    z-index: 2;
}
#start-speech {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    background-color: #4CAF50;
    color: white;
    transition: background-color 0.2s, transform 0.15s;
}
#start-speech:hover {
    background-color: #45a049;
    transform: scale(1.05);
}
#start-speech.on {
    background-color: #ff9800;
    color: #fff;
}
#start-speech .chatbot-mic-icon {
    width: 64px;
    height: 64px;
    filter: brightness(0) invert(1);
}

.chatbot-input {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
    padding: 12px 10px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 0 0 10px 10px;
}

#user-input {
    flex: 1;
    min-width: 120px;
    min-height: 48px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    outline: none;
    font-size: 1rem;
}

#send-button {
    min-height: 48px;
    min-width: 80px;
    padding: 12px 24px;
    border: none;
    background-color: #45a049;
    color: white;
    cursor: pointer;
    border-radius: 10px;
    font-size: 1rem;
}

#send-button:hover {
    background-color: #0b8a15;
}

/* #start-speech 样式已移至 .chatbot-mic-float 上方（语音页悬浮圆形按钮） */
#mic-icon {
    width: 30px;
    height: 30px;
    object-fit: cover;
}


.message {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.message.user p {
    align-self: flex-end;
    background-color: #dcf8c6;
    padding: 14px 18px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 1rem;
    line-height: 1.5;
}

.message.bot p {
    align-self: flex-start;
    background-color: #ececec;
    padding: 14px 18px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 1rem;
    line-height: 1.5;
}

.message.bot img {
    align-self: center;       /* 图片居中对齐 */
    max-width: 600px;         /* 设置图片最大宽度为600px */
    max-height: 600px;        /* 设置图片最大高度为600px */
    width: auto;              /* 保持宽高比例 */
    height: auto;             /* 保持宽高比例 */
    margin-top: 5px;
    border-radius: 10px;
}

/* 多图片容器样式 */
.image-container {
    display: flex;
    flex-wrap: nowrap;         /* 一行显示，不换行 */
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    padding-bottom: 8px;
    overflow-x: hidden;        /* 不出现滚动条 */
}

.image-container img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
}

.image-container img:hover {
    transform: scale(1.05);
}



/* Exit Button Styles - 平板触控区域 */
.exit-button {
    margin-top: 0;
    padding: 12px 20px;
    min-width: 48px;
    min-height: 48px;
    border: none;
    background-color: rgb(228, 71, 71);
    color: rgb(247, 244, 244);
    cursor: pointer;
    border-radius: 12px;
    align-self: center;
    font-size: 1rem;
    position: absolute;
    top: 12px;
    right: 12px;
}

.exit-button:hover {
    background-color: rgb(190, 33, 33);
}

/* AI引导按钮按下后变橘色 */
#aiGuidanceButton:active {
    background-color: orange;
}

/* 可选：添加悬停效果 */
#aiGuidanceButton:hover {
    background-color: #ffffff;
}

/* 如果其他按钮通过类名控制激活状态，确保AI引导按钮也包含相应类 */
.button--state--active {
    background-color: orange !important;
    color: white;
}

/* 定制化弹窗 */
.customization-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.customization-modal--overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.customization-modal--card {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    padding: 24px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.customization-modal--header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.customization-modal--header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.customization-modal--close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 8px 12px;
    min-width: 48px;
    min-height: 48px;
    line-height: 1;
}

.customization-modal--options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.customization-modal--option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    min-height: 56px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    font-size: 1.1rem;
    text-align: left;
    transition: background 0.2s;
}

.customization-modal--option:hover {
    background: #f0f0f0;
}

.customization-modal--option img {
    width: 28px;
    height: 28px;
}

/* Private Audio setting */
/* Voice Settings Sheet 样式 */
.voice-settings-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.voice-settings--card {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    padding: 24px;
    position: relative;
}

.voice-settings--header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.voice-settings--header h2 {
    font-size: 1.25rem;
}

.voice-settings--close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 8px 12px;
    min-width: 48px;
    min-height: 48px;
}

.voice-settings--content {
    padding: 14px 0;
    font-size: 1rem;
}

.voice-settings--content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.file-input-container {
    margin: 18px 0;
}

.file-label {
    display: inline-block;
    padding: 14px 22px;
    min-height: 48px;
    background: #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
}

.status-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
}

.status-message.success {
    background-color: #e6ffe6;
    color: #006600;
}

.status-message.error {
    background-color: #ffe6e6;
    color: #cc0000;
}

/* 智能统计弹层 */
.statsModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}
.statsModal--overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.statsModal--panel {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 460px;
    max-height: 85vh;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
}
.statsModal--header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.statsModal--title {
    margin: 0;
    font-size: 1.25rem;
    font-family: 'PingFangSC-Semibold.woff2';
}
.statsModal--close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 8px 12px;
    min-width: 48px;
    min-height: 48px;
    line-height: 1;
}
.statsModal--close:hover {
    color: #333;
}
.statsModal--hint {
    margin: 0 0 18px;
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}
/* 本周亮点：新晋常点、情绪占比、趋势图 */
.statsModal--summary {
    margin-bottom: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.statsModal--summaryCards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
.statsModal--card {
    padding: 12px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.statsModal--cardLabel {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 8px;
}
.statsModal--cardValue {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
}
.statsModal--cardNew .statsModal--cardValue { color: #0ea5e9; }
.statsModal--cardEmotion .statsModal--cardValue { color: #8b5cf6; }
.statsModal--cardSublist {
    font-size: 1rem;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.5;
    max-height: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.statsModal--cardHint {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-top: 6px;
}
.statsModal--chartWrap {
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.statsModal--chartTitle {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 10px;
}
.statsModal--chart {
    height: 100px;
    min-height: 100px;
    width: 100%;
}
.statsModal--chartLine {
    stroke: #8b5cf6;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.statsModal--chartArea {
    stroke: none;
}
.statsModal--chartLabel {
    font-size: 12px;
    fill: #64748b;
}
.statsModal--chartEmpty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #94a3b8;
}
.statsModal--tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.statsModal--tab {
    padding: 12px 20px;
    min-height: 48px;
    border-radius: 24px;
    border: 1px solid #e0e0e0;
    background: #f8f8f8;
    font-size: 1rem;
    cursor: pointer;
    color: #555;
}
.statsModal--tab:hover {
    background: #eee;
}
.statsModal--tab.statsModal--tabActive {
    background: #2c7be5;
    border-color: #1a5fb4;
    color: white;
}
.statsModal--content {
    flex: 1;
    min-height: 120px;
    overflow: auto;
}
.statsModal--loading {
    padding: 28px;
    text-align: center;
    color: #888;
    font-size: 1rem;
}
.statsModal--empty {
    padding: 28px;
    text-align: center;
    color: #888;
    font-size: 1rem;
}
.statsModal--listWrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.statsModal--item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    min-height: 52px;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 1rem;
}
.statsModal--rank {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2c7be5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-family: 'PingFangSC-Semibold.woff2';
}
.statsModal--item:nth-child(1) .statsModal--rank { background: #c9a227; }
.statsModal--item:nth-child(2) .statsModal--rank { background: #9e9e9e; }
.statsModal--item:nth-child(3) .statsModal--rank { background: #b87333; }
.statsModal--itemName {
    flex: 1;
    color: #333;
}
.statsModal--itemCategory {
    font-size: 0.95rem;
    color: #888;
    margin-left: 6px;
}
.statsModal--itemCount {
    flex-shrink: 0;
    font-family: 'PingFangSC-Semibold.woff2';
    color: #2c7be5;
    font-size: 1rem;
}