/**
 * 500SMS 控制台 - 新拟态（Neumorphism）/Soft UI 风格
 */

:root {
    /* 配色 - 新拟态风格 */
    --bg-primary: #F4F6FB;
    --bg-card: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --bg-header: #FFFFFF;
    --bg-input: #FFFFFF;
    
    /* 文字颜色 */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    
    /* 强调色 - 品牌蓝/青 */
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --primary-dark: #2563EB;
    --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    
    /* 状态颜色 - 低饱和度柔色 */
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --error: #EF4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --info: #3B82F6;
    --info-bg: rgba(59, 130, 246, 0.1);
    
    /* 边框 */
    --border-color: rgba(0, 0, 0, 0.05);
    --border-light: rgba(255, 255, 255, 0.8);
    
    /* 新拟态阴影 - 外暗+内亮 */
    --shadow-soft: 8px 8px 16px rgba(0, 0, 0, 0.1), -8px -8px 16px rgba(255, 255, 255, 0.8);
    --shadow-soft-inset: inset 4px 4px 8px rgba(0, 0, 0, 0.1), inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    --shadow-soft-hover: 12px 12px 24px rgba(0, 0, 0, 0.12), -12px -12px 24px rgba(255, 255, 255, 0.9);
    --shadow-soft-pressed: inset 4px 4px 8px rgba(0, 0, 0, 0.15), inset -4px -4px 8px rgba(255, 255, 255, 0.7);
    
    /* 圆角 */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Inter', sans-serif;
    background: var(--bg-primary);
    background-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 顶部导航栏 - 新拟态风格 */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 -2px 8px rgba(255, 255, 255, 0.8);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.logo:hover {
    box-shadow: var(--shadow-soft-hover);
    transform: translateY(-2px);
}

.logo-icon {
    color: white;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.site-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 var(--spacing-xl);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    gap: 12px;
    box-shadow: var(--shadow-soft-inset);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: var(--shadow-soft);
    background: var(--bg-card);
}

.search-box svg {
    color: var(--text-secondary);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 400;
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-clear {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.search-clear:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.icon-badge {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.icon-badge:hover {
    box-shadow: var(--shadow-soft-hover);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.icon-badge svg {
    width: 20px;
    height: 20px;
}

.badge-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--error);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.user-profile:hover {
    box-shadow: var(--shadow-soft-hover);
    transform: translateY(-2px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.user-dropdown {
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.user-profile:hover .user-dropdown {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft-hover);
    min-width: 160px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.user-dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    font-weight: 400;
}

.user-dropdown-menu a:hover {
    background: var(--bg-primary);
    color: var(--primary);
}

.lang-switcher-header {
    display: flex;
    gap: 4px;
    background: var(--bg-primary);
    border-radius: var(--radius-pill);
    padding: 4px;
    box-shadow: var(--shadow-soft-inset);
}

.lang-switcher-header button {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-switcher-header button.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}

/* 主布局 */
.main-layout {
    display: flex;
    margin-top: 72px;
    min-height: calc(100vh - 72px);
}

/* 左侧导航菜单 - 新拟态风格 */
.sidebar-nav {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 72px;
    bottom: 0;
    overflow-y: auto;
    padding: var(--spacing-lg) 0;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.04), -4px 0 12px rgba(255, 255, 255, 0.8);
}

.nav-menu {
    padding: 0 var(--spacing-md);
}

.nav-group {
    margin-bottom: var(--spacing-lg);
}

.nav-group-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    padding: 0 var(--spacing-md);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 14px var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 6px;
    position: relative;
    background: transparent;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    transform: translateX(4px);
}

.nav-item.active {
    background: var(--bg-primary);
    color: var(--primary);
    box-shadow: var(--shadow-soft);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 0 4px 4px 0;
}

/* 子菜单 */
.nav-submenu {
    max-height: 200px;
    overflow: visible;
}

.nav-subitem {
    padding-left: 52px !important;
    font-size: 13px;
    font-weight: 400;
}

.nav-subitem::before {
    display: none;
}

.nav-subitem.active {
    background: var(--bg-primary);
    color: var(--primary);
    font-weight: 500;
}

/* 主内容区 */
.main-content-wrapper {
    flex: 1;
    margin-left: 260px;
    padding: var(--spacing-lg);
    min-height: calc(100vh - 72px);
    max-width: calc(100vw - 260px);
}

/* 容器 */
.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* 卡片样式 - 新拟态 */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-soft-hover);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

/* 按钮样式 - 新拟态 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
    font-family: inherit;
    letter-spacing: -0.2px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3), var(--shadow-soft);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4), var(--shadow-soft-hover);
    transform: translateY(-2px);
}

.btn-primary:active {
    box-shadow: var(--shadow-soft-pressed);
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #34D399 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3), var(--shadow-soft);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error) 0%, #F87171 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3), var(--shadow-soft);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-soft-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* 输入框样式 - 新拟态 */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: var(--shadow-soft-inset);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), var(--shadow-soft);
    background: var(--bg-card);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* 统计卡片 - 新拟态 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.stat-card:hover {
    box-shadow: var(--shadow-soft-hover);
    transform: translateY(-4px);
}

.stat-card::before {
    display: none;
}

.stat-card-header {
    display: flex;
    align-items: center;
    margin: 0;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    box-shadow: var(--shadow-soft);
    color: var(--primary);
    flex-shrink: 0;
}

.stat-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.stat-card-footer {
    display: flex;
    gap: var(--spacing-md);
    font-size: 13px;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.stat-badge.success {
    color: var(--success);
}

.stat-badge.warning {
    color: var(--warning);
}

.stat-badge.error {
    color: var(--error);
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    table-layout: fixed; /* 固定表格布局，防止变形 */
}

/* 表头只有上方圆角的表格样式 */
.table[style*="border-collapse: separate"] {
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.table[style*="border-collapse: separate"] thead {
    background: var(--bg-primary);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
}

.table thead {
    background: var(--bg-primary);
}

.table th,
.table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap; /* 防止换行 */
    overflow: hidden;
    text-overflow: ellipsis; /* 超长内容显示省略号 */
}

.table th {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.2s;
}

.table tbody tr:hover {
    background: var(--bg-primary);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* 标签样式 - 新拟态 */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-danger {
    background: var(--error-bg);
    color: var(--error);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 提示消息 - 新拟态 */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 14px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.alert-success {
    background: #10B981;
    color: white;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info);
    border-color: rgba(59, 130, 246, 0.2);
}

/* 登录页面 - 新拟态 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    background-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    padding: var(--spacing-lg);
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-soft-hover);
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border-color);
}

.login-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.login-card-header .logo {
    width: 56px;
    height: 56px;
}

.login-card h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.login-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar-nav {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .main-content-wrapper {
        margin-left: 0;
        max-width: 100vw;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header-center {
        display: none;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }

/* 模态框样式 - 新拟态 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft-hover);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 2001;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-lg);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.badge-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #6B7280;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 短信内容可复制样式 */
.sms-content-wrapper {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    width: 100%;
}

.sms-content-wrapper:hover {
    background: var(--bg-primary);
}

.sms-content-wrapper .copy-icon {
    display: none;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
    opacity: 0.6;
    margin-left: 4px;
}

.sms-content-wrapper:hover .copy-icon {
    display: inline-block;
}

.sms-content-wrapper:hover .copy-icon:hover {
    color: var(--primary);
    opacity: 1;
}

.sms-content-wrapper:active {
    background: var(--bg-secondary);
    transform: scale(0.98);
}

.sms-content-text {
    flex: 1;
    word-wrap: break-word;
    word-break: break-all;
}

/* 通用短信接收表格列宽优化 */
.table tbody td:nth-child(2) {
    min-width: 500px;
    max-width: 700px;
}

/* 历史记录表格列宽优化 */
#historyRecordsList .table tbody td:nth-child(1) {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
}

#historyRecordsList .table tbody td:nth-child(2) {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

#historyRecordsList .table tbody td:nth-child(3) {
    min-width: 400px;
}
