/* 全局自定义样式 */
:root {
    --primary-color: #2563eb; /* 蓝色 */
    --primary-hover: #1d4ed8;
    --secondary-color: #e5e7eb;
    --text-color: #1f2937;
    --light-text: #4b5563;
    --lighter-text: #9ca3af;
}

/* 区域卡片样式 */
.region-card {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.region-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 号码卡片样式 */
.number-card {
    transition: all 0.2s ease;
}

.number-card:hover {
    background-color: #f3f4f6;
}

/* 消息项样式 */
.message-item {
    transition: background-color 0.2s ease;
}

.message-item:hover {
    background-color: #f9fafb;
    cursor: pointer;
}

/* 分页按钮样式 */
.page-button {
    transition: all 0.2s ease;
}

.page-button.active {
    background-color: var(--primary-color);
    color: white;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 加载中动画 */
.loading-spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 消息已读/未读状态 */
.message-unread {
    border-left: 3px solid var(--primary-color);
}

/* 国旗图像样式 */
.flag-image {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    max-height: 50px;
    max-width: 70px;
}

.flag-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .message-content {
        max-height: 100px;
        overflow: hidden;
    }
}

/* 手机号格式化显示 */
.phone-number {
    letter-spacing: 0.05em;
    font-family: 'Courier New', monospace;
}

/* 搜索框聚焦效果 */
.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* 按钮禁用状态 */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 消息详情模态框自定义样式 */
.modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

/* 语言切换器样式 */
.language-switcher {
    display: inline-flex;
    border-radius: 0.375rem;
    overflow: hidden;
    border: 1px solid var(--primary-color);
}

.language-switcher a {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.language-switcher a:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

.language-switcher a.active {
    background-color: var(--primary-color);
    color: white;
}

/* 移动设备上的语言切换器 */
@media (max-width: 768px) {
    .language-switcher-mobile {
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* RTL支持 (将来需要时可以启用) */
[dir="rtl"] .language-switcher a:first-child {
    border-right: none;
    border-left: 1px solid var(--primary-color);
}

/* 语言标识图标 */
.lang-icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
    vertical-align: text-bottom;
} 