/* 基础样式 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #F3F4F6;
    color: #1F2937;
}

/* 页面切换动画 */
.page-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.page-content.hidden {
    display: none;
}

/* 导航按钮样式 */
.nav-btn {
    color: #9CA3AF;
    transition: all 0.2s ease;
}

.nav-btn.active {
    color: #3B82F6;
}

.nav-btn i {
    margin-bottom: 4px;
}

/* 按钮基础样式 */
button {
    cursor: pointer;
    font-family: inherit;
}

/* 输入框基础样式 */
input, textarea {
    font-family: inherit;
}

/* 卡片样式 */
.card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 16px;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* 加载动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 淡入淡出动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.animate-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* 工具类 */
.hidden {
    display: none !important;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.mb-4 {
    margin-bottom: 16px;
}

.mt-2 {
    margin-top: 8px;
}

.p-4 {
    padding: 16px;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 14px;
}

.text-xl {
    font-size: 20px;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-gray-500 {
    color: #6B7280;
}

.text-gray-700 {
    color: #374151;
}

.text-primary {
    color: #3B82F6;
}

.bg-gray-50 {
    background-color: #F9FAFB;
}

.bg-white {
    background-color: #FFFFFF;
}

.border {
    border: 1px solid #E5E7EB;
}

.border-gray-300 {
    border-color: #D1D5DB;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* 响应式设计 */
@media (max-width: 640px) {
    .phone-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    
    body {
        background-color: #FFFFFF;
    }
}