/**
 * 项目通 - 微信风格简洁UI
 */

/* CSS变量 - 微信配色 */
:root {
    --wechat-green: #07c160;
    --wechat-green-dark: #06ae56;
    --wechat-green-light: #95ec69;
    --text-black: #191919;
    --text-gray: #888888;
    --text-light: #b2b2b2;
    --bg-gray: #ededed;
    --bg-white: #ffffff;
    --border-color: #e6e6e6;
    --danger-red: #fa5151;
    --link-blue: #576b95;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-black);
    background-color: var(--bg-gray);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link-blue); text-decoration: none; }
img { max-width: 100%; vertical-align: middle; border: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* 应用容器 */
.app-container {
    max-width: 100%;
    min-height: 100vh;
    background: var(--bg-gray);
}

/* 头部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-bottom: 0.5px solid var(--border-color);
}

.header-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-black);
}

.header-back {
    position: absolute;
    left: 16px;
    font-size: 20px;
    color: var(--text-black);
    cursor: pointer;
}

.header-action {
    position: absolute;
    right: 16px;
    font-size: 22px;
    color: var(--text-black);
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* 通讯录页面左侧通知按钮 */
.header-action.header-left {
    left: 16px;
    right: auto;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content {
    padding-top: 44px;
    padding-bottom: 50px;
    min-height: 100vh;
}

/* 底部导航栏 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg-white);
    display: flex;
    border-top: 0.5px solid var(--border-color);
    z-index: 100;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 10px;
    position: relative;
    cursor: pointer;
    padding-top: 5px;
}

.tab-item.active { color: var(--wechat-green); }

.tab-icon {
    font-size: 22px;
    margin-bottom: 2px;
    line-height: 1;
}

.tab-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(14px);
    min-width: 16px;
    height: 16px;
    background: var(--danger-red);
    color: #fff;
    font-size: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* 登录页 */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 40px 40px;
    background: var(--bg-white);
}

.login-logo {
    width: 80px;
    height: 80px;
    background: var(--wechat-green);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 24px;
    color: #fff;
}

.login-title {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-black);
    margin-bottom: 50px;
}

.login-form {
    width: 100%;
    max-width: 320px;
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 0.5px solid var(--border-color);
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-gray);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.login-tab.active {
    color: var(--wechat-green);
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--wechat-green);
    border-radius: 1px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    height: 44px;
    border: none;
    border-bottom: 0.5px solid var(--border-color);
    padding: 0;
    font-size: 17px;
    color: var(--text-black);
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--wechat-green);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-input-group .form-input {
    flex: 1;
}

.code-btn {
    height: 32px;
    padding: 0 12px;
    background: transparent;
    color: var(--link-blue);
    border: 0.5px solid var(--link-blue);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-btn {
    width: 100%;
    height: 44px;
    background: var(--wechat-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    margin-top: 30px;
    transition: opacity 0.2s;
}

.submit-btn:active { opacity: 0.9; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 消息列表 */
.message-list {
    background: var(--bg-white);
}

.message-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-white);
    cursor: pointer;
    transition: background 0.1s;
}

.message-item:active {
    background: var(--bg-gray);
}

.message-avatar {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #ddd;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    flex: 1;
    min-width: 0;
    margin-left: 12px;
    border-bottom: 0.5px solid var(--border-color);
    padding: 10px 0;
}

.message-item:last-child .message-content {
    border-bottom: none;
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.message-name {
    font-size: 16px;
    color: var(--text-black);
    font-weight: 400;
}

.message-time {
    font-size: 12px;
    color: var(--text-light);
}

.message-preview {
    font-size: 14px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-badge {
    width: 18px;
    height: 18px;
    background: var(--danger-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* 搜索框 */
.search-bar {
    padding: 8px 12px;
    background: var(--bg-gray);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: 6px;
    padding: 0 12px;
    height: 36px;
}

.search-icon {
    color: var(--text-light);
    margin-right: 8px;
    font-size: 14px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-black);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-light);
}

/* 通讯录 */
.contact-section {
    margin-bottom: 0;
}

.contact-section-title {
    padding: 6px 16px;
    font-size: 13px;
    color: var(--text-gray);
    background: var(--bg-gray);
}

.contact-list {
    background: var(--bg-white);
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg-white);
    cursor: pointer;
}

.contact-item:active {
    background: var(--bg-gray);
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #ddd;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-white);
}

.contact-status.online { background: var(--wechat-green); }
.contact-status.offline { background: var(--text-light); }

.contact-info {
    flex: 1;
    margin-left: 12px;
    padding: 8px 0;
    border-bottom: 0.5px solid var(--border-color);
}

.contact-item:last-child .contact-info {
    border-bottom: none;
}

.contact-name {
    font-size: 16px;
    color: var(--text-black);
}

.contact-id {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* 任务清单 */
.task-tabs {
    display: flex;
    background: var(--bg-white);
    padding: 0;
    border-bottom: 0.5px solid var(--border-color);
}

.task-tab {
    flex: 1;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    position: relative;
    cursor: pointer;
}

.task-tab.active {
    color: var(--wechat-green);
    font-weight: 500;
}

/* 通讯录Tabs */
.contact-tabs {
    display: flex;
    background: var(--bg-white);
    padding: 0;
    border-bottom: 0.5px solid var(--border-color);
}

.contact-tab {
    flex: 1;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    position: relative;
    cursor: pointer;
}

.contact-tab.active {
    color: var(--wechat-green);
    font-weight: 500;
}

.contact-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--wechat-green);
    border-radius: 1px;
}

.task-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--wechat-green);
    border-radius: 1px;
}

.task-tab .badge {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    background: var(--danger-red);
    color: #fff;
    font-size: 10px;
    border-radius: 8px;
    text-align: center;
    line-height: 16px;
    margin-left: 4px;
    padding: 0 4px;
}

.task-group {
    margin-bottom: 0;
}

.task-group-title {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-gray);
    background: var(--bg-gray);
}

.task-list {
    background: var(--bg-white);
}

.task-item {
    padding: 14px 16px;
    background: var(--bg-white);
    border-bottom: 0.5px solid var(--border-color);
    cursor: pointer;
}

.task-item:active {
    background: var(--bg-gray);
}

.task-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.task-content {
    flex: 1;
    font-size: 16px;
    color: var(--text-black);
    line-height: 1.4;
    word-break: break-word;
}

.task-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    flex-shrink: 0;
}

.status-pending { background: #fff3e0; color: #ff9800; }
.status-progress { background: #e3f2fd; color: #2196f3; }
.status-waiting { background: #fff8e1; color: #f57c00; }
.status-done { background: #e8f5e9; color: var(--wechat-green); }

.task-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-gray);
}

.task-meta-item {
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.task-meta-item i { margin-right: 4px; }
.task-deadline { color: var(--danger-red); }

.task-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.task-btn {
    flex: 1;
    height: 32px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.task-btn:active { opacity: 0.8; }
.task-btn-primary { background: var(--wechat-green); color: #fff; }
.task-btn-secondary { background: var(--bg-gray); color: var(--text-gray); }

/* 聊天页面 */
.chat-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg-gray);
}

.chat-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-bottom: 0.5px solid var(--border-color);
}

.chat-messages {
    flex: 1;
    padding: 56px 12px 120px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    margin-bottom: 16px;
}

.chat-message.sent {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #ddd;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-bubble {
    max-width: 65%;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    word-break: break-word;
}

.chat-message.received .chat-bubble {
    margin-left: 8px;
    background: var(--bg-white);
    color: var(--text-black);
}

.chat-message.sent .chat-bubble {
    margin-right: 8px;
    background: var(--wechat-green-light);
    color: var(--text-black);
}

/* 语音消息 */
.voice-bubble {
    display: flex;
    align-items: center;
    min-width: 80px;
    cursor: pointer;
}

.voice-icon { font-size: 20px; margin-right: 6px; }
.voice-duration { font-size: 14px; }

.voice-bubble.playing .voice-icon {
    animation: voice-playing 1s infinite;
}

@keyframes voice-playing {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 任务卡片 */
.task-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    width: 220px;
    max-width: 220px;
    box-shadow: var(--shadow-light);
    margin-left: 8px;
}

.chat-message.sent .task-card {
    margin-left: 0;
    margin-right: 8px;
}

.task-card-header {
    padding: 8px 12px;
    background: var(--wechat-green);
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.task-card-header i { margin-right: 6px; }

.task-card-body { padding: 10px 12px; }

.task-card-content {
    font-size: 14px;
    color: var(--text-black);
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: break-word;
}

.task-card-deadline {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
}

.task-card-deadline i { margin-right: 4px; }

.task-card-footer {
    padding: 8px 12px;
    border-top: 0.5px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.task-card-btn {
    flex: 1;
    height: 28px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* 聊天输入框 */
.chat-input-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f5f5f5;
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
    z-index: 100;
    border-top: 0.5px solid var(--border-color);
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 切换按钮 */
.chat-mode-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    flex-shrink: 0;
    padding: 0;
}

.chat-mode-btn svg {
    width: 28px;
    height: 28px;
}

.chat-input-wrap {
    flex: 1;
    background: var(--bg-white);
    border-radius: 6px;
    padding: 8px 12px;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-black);
    outline: none;
    resize: none;
    max-height: 80px;
    line-height: 1.4;
}

/* 按住说话按钮 */
.chat-voice-hold-btn {
    flex: 1;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.chat-voice-hold-btn:active,
.chat-voice-hold-btn.recording {
    background: #e8e8e8;
    color: #07c160;
}

.chat-send-btn {
    height: 36px;
    padding: 0 16px;
    background: var(--wechat-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.chat-send-btn:disabled {
    background: #ccc;
}

/* 个人中心 */
.profile-header {
    background: var(--bg-white);
    padding: 30px 20px 20px;
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #ddd;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    margin-left: 16px;
}

.profile-name {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-black);
    cursor: pointer;
}

.profile-phone {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 4px;
}

.profile-stats {
    display: flex;
    background: var(--bg-white);
    margin-top: 10px;
    padding: 16px 0;
    border-top: 0.5px solid var(--border-color);
}

.profile-stat-item {
    flex: 1;
    text-align: center;
}

.profile-stat-value {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-black);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

.profile-menu {
    background: var(--bg-white);
    margin-top: 10px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 0.5px solid var(--border-color);
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:active {
    background: var(--bg-gray);
}

.profile-menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}

.profile-menu-text {
    flex: 1;
    font-size: 16px;
    color: var(--text-black);
}

.profile-menu-arrow {
    color: var(--text-light);
    font-size: 14px;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-overlay.show { display: flex; }

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
    overflow: hidden;
}

.modal-header {
    padding: 20px 16px 16px;
    text-align: center;
}

.modal-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-black);
}

.modal-body {
    padding: 0 16px 20px;
}

.modal-footer {
    display: flex;
    border-top: 0.5px solid var(--border-color);
}

.modal-btn {
    flex: 1;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
}

.modal-btn-cancel {
    color: var(--text-black);
    border-right: 0.5px solid var(--border-color);
}

.modal-btn-confirm {
    color: var(--wechat-green);
}

/* Toast */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 300;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.toast.show { opacity: 1; }

/* 加载 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--wechat-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    color: var(--text-gray);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
}

/* 通用按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.btn:active { opacity: 0.8; }
.btn-primary { background: var(--wechat-green); color: #fff; }
.btn-secondary { background: var(--bg-gray); color: var(--text-gray); }
.btn-danger { background: var(--danger-red); color: #fff; }
.btn-block { display: flex; width: 100%; }

/* 辅助类 */
.text-center { text-align: center; }
.text-muted { color: var(--text-gray); }
.text-danger { color: var(--danger-red); }
.text-success { color: var(--wechat-green); }
.hide { display: none !important; }

/* 语音任务识别弹窗 */
.voice-task-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}

.voice-task-modal.show {
    pointer-events: auto;
}

.voice-task-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
}

.voice-task-modal.show .voice-task-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.voice-task-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 12px;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.25s ease-out;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.voice-task-modal.show .voice-task-card {
    transform: scale(1);
    opacity: 1;
}

.voice-task-header {
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-task-icon {
    font-size: 20px;
}

.voice-task-body {
    padding: 16px 20px;
}

.voice-task-field {
    margin-bottom: 16px;
}

.voice-task-field label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

.voice-task-field input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.voice-task-field input:focus {
    border-color: var(--wechat-green);
}

.voice-task-text {
    background: #f7f7f7;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.voice-task-confidence {
    font-size: 12px;
    color: var(--wechat-green);
    margin-top: 8px;
}

.voice-task-footer {
    padding: 16px 20px;
    display: flex;
    gap: 12px;
}

.voice-task-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.voice-task-btn:active {
    opacity: 0.8;
}

.voice-task-btn.cancel {
    background: #f5f5f5;
    color: #666;
}

.voice-task-btn.confirm {
    background: var(--wechat-green);
    color: #fff;
}

/* 安全区域适配 - 已改为居中弹窗，不再需要 */

/* 微信风格语音录制弹窗 */
.voice-recording-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.voice-recording-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.voice-recording-box {
    width: 180px;
    height: 180px;
    background: rgba(50, 50, 50, 0.95);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.2s;
}

.voice-recording-modal.show .voice-recording-box {
    transform: scale(1);
}

.voice-recording-box.cancel {
    background: rgba(200, 50, 50, 0.95);
}

.voice-recording-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.voice-recording-icon svg {
    width: 50px;
    height: 50px;
    fill: #fff;
}

/* 微信风格音量波形 */
.voice-wave-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 50px;
}

.voice-wave-bar {
    width: 6px;
    background: #07c160;
    border-radius: 3px;
    animation: voice-wave 0.5s ease-in-out infinite;
}

.voice-wave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.voice-wave-bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.voice-wave-bar:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.voice-wave-bar:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.voice-wave-bar:nth-child(5) { height: 20px; animation-delay: 0.4s; }

@keyframes voice-wave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

.voice-recording-time {
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
}

.voice-recording-tip {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.voice-recording-box.cancel .voice-recording-tip {
    color: #fff;
}

/* 取消图标 */
.voice-cancel-icon {
    font-size: 50px;
}
