* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --danger: #ef4444;
    --success: #10b981;
    --dark: #1f2937;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --gray-bg: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9eef3 100%);
    min-height: 100vh;
    padding-bottom: 80px;
    transition: all 0.3s ease;
}

/* RTL 维吾尔语支持 */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .logo,
body.rtl .nav-item,
body.rtl .menu-item,
body.rtl .list-item,
body.rtl .job-card,
body.rtl .info-card,
body.rtl .detail-card,
body.rtl .desc-section,
body.rtl .contact-section,
body.rtl .user-card {
    direction: rtl;
    text-align: right;
}

body.rtl .card-footer,
body.rtl .action-row {
    direction: rtl;
}

body.rtl .bottom-nav {
    direction: ltr;
}

body.rtl .lang-modal-content {
    direction: ltr;
}

body.rtl .lang-option-btn {
    font-family: 'Segoe UI', 'Tahoma', sans-serif;
}

body.rtl .search-box {
    direction: ltr;
}

body.rtl .search-box input {
    direction: rtl;
    text-align: right;
}

body.rtl .banner-text {
    left: auto;
    right: 16px;
}

body.rtl .back-btn {
    left: auto;
    right: 20px;
}

body.rtl .category-tabs {
    direction: rtl;
}

/* 玻璃拟态卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

/* 渐变按钮 */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-gradient:active {
    transform: scale(0.96);
}

/* 头部毛玻璃 */
.header-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logo i {
    font-size: 24px;
}

.subtitle {
    font-size: 10px;
    color: var(--gray);
    margin-top: 4px;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 10px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-item i {
    font-size: 22px;
}

.nav-item.active {
    color: var(--primary);
    transform: translateY(-2px);
}

/* 页面切换动画 */
.page {
    display: none;
    animation: fadeInUp 0.35s ease-out;
}

.active-page {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
}

.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid var(--gray-bg);
    border-top-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 分类标签 */
.category-tabs {
    display: flex;
    gap: 12px;
    padding: 0 16px;
    margin: 16px 0;
}

.tab {
    padding: 10px 28px;
    background: white;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

/* 信息卡片 */
.job-list {
    padding: 0 16px;
}

.job-card {
    background: white;
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.job-card:active {
    transform: scale(0.98);
}

.job-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.company {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.salary {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 6px;
}

.location {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--gray-bg);
}

.date {
    font-size: 10px;
    color: var(--gray-light);
}

.view-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

/* 个人中心样式 */
.profile-container {
    padding: 16px;
}

.user-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 28px;
    padding: 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.user-avatar {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar i {
    font-size: 36px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-id {
    font-size: 11px;
    opacity: 0.8;
}

.vip-badge {
    background: linear-gradient(135deg, #f5b042, var(--secondary));
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stats-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

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

.stat-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 11px;
    color: var(--gray);
    margin-top: 4px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.menu-item {
    background: white;
    padding: 14px 8px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.menu-item:active {
    transform: scale(0.96);
}

.menu-item i {
    font-size: 22px;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

.menu-item span {
    font-size: 10px;
    font-weight: 500;
}

.menu-list {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-bg);
    cursor: pointer;
    transition: background 0.2s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:active {
    background: var(--gray-bg);
}

.list-item i:first-child {
    width: 32px;
    font-size: 18px;
    color: var(--primary);
}

.list-item span {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
}

.list-item i:last-child {
    color: var(--gray-light);
    font-size: 12px;
}

/* 微信登录按钮 */
.wechat-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 20px;
}

.wechat-login-btn {
    background: #07c160;
    color: white;
    border: none;
    padding: 14px 50px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
    transition: all 0.2s;
}

.wechat-login-btn:active {
    transform: scale(0.96);
}

/* 返回按钮 */
.back-btn {
    position: fixed;
    bottom: 30px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* 语言切换弹窗 */
.lang-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}

.lang-modal.active {
    visibility: visible;
    opacity: 1;
}

.lang-modal-content {
    background: white;
    width: 85%;
    max-width: 340px;
    border-radius: 48px;
    padding: 32px;
    text-align: center;
}

.lang-modal-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--dark);
}

.lang-option-btn {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    background: var(--gray-bg);
    transition: all 0.2s;
}

.lang-option-btn.active {
    background: var(--primary);
    color: white;
}

.close-btn {
    background: #e2e8f0;
    color: var(--gray);
}

/* 搜索框 */
.search-container {
    padding: 0 16px 12px;
}

.search-box {
    background: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 6px 6px 6px 20px;
    box-shadow: var(--shadow-md);
}

.search-box i {
    color: var(--gray);
    font-size: 16px;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 12px 10px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.search-box button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* 轮播图 */
.swiper-container {
    margin: 0 16px 16px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    bottom: 12px;
    left: 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 30px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
}

/* 响应式 */
@media (max-width: 480px) {
    .category-tabs {
        gap: 8px;
    }
    .tab {
        padding: 8px 20px;
        font-size: 12px;
    }
    .menu-grid {
        gap: 8px;
    }
    .menu-item {
        padding: 12px 6px;
    }
    .menu-item i {
        font-size: 20px;
    }
    .menu-item span {
        font-size: 9px;
    }
    .user-card {
        padding: 16px;
    }
    .user-avatar {
        width: 50px;
        height: 50px;
    }
    .user-avatar i {
        font-size: 28px;
    }
    .user-name {
        font-size: 16px;
    }
    .stats-card {
        padding: 16px;
    }
    .stat-number {
        font-size: 18px;
    }
    .back-btn {
        bottom: 20px;
        right: 16px;
        left: auto;
        padding: 10px 16px;
        font-size: 12px;
    }
    body.rtl .back-btn {
        left: 16px;
        right: auto;
    }
}