/* ========== 遇见 - 品牌样式表 ========== */
/* 主色：#FF6B6B 辅色1：#4ECDC4 辅色2：#FFE66D 中性色：#2C3E50 #95A5A6 #ECF0F1 */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #FFF5F5 0%, #F0FFF4 50%, #FFFBEB 100%);
    color: #2C3E50;
    line-height: 1.6;
    min-height: 100vh;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 450px;
    margin: 0 auto;
}

.status-time {
    font-size: 14px;
    font-weight: 600;
    color: #2C3E50;
}

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* App Main */
.app-main {
    padding: 0 16px 80px;
    max-width: 450px;
    margin: 0 auto;
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 8px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #FF6B6B;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    gap: 12px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-btn:active {
    background: rgba(255,107,107,0.1);
    transform: scale(0.9);
}

/* Banner Carousel */
.banner-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(255,107,107,0.2);
    height: 180px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    padding: 30px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: white;
}

.slide-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slide-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.slide-btn {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    padding: 10px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-btn:active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.4);
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 8px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.action-item:active {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-item span {
    font-size: 12px;
    color: #2C3E50;
    font-weight: 500;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #2C3E50;
}

.more-link {
    font-size: 13px;
    color: #FF6B6B;
    cursor: pointer;
    font-weight: 500;
}

.more-link:active {
    opacity: 0.7;
}

/* User Cards */
.user-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.user-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-card:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.user-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
}

.user-card-info {
    padding: 12px;
}

.user-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 4px;
}

.user-card-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
}

.tag.tag-green {
    background: linear-gradient(135deg, #4ECDC4, #6EE7B7);
}

.tag.tag-yellow {
    background: linear-gradient(135deg, #FFE66D, #FFD93D);
    color: #2C3E50;
}

.user-card-desc {
    font-size: 12px;
    color: #95A5A6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Event Cards */
.event-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.event-card {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-card-img {
    width: 100px;
    min-height: 100px;
    background: linear-gradient(135deg, #FFE66D, #FFD93D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.event-card-info {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 4px;
}

.event-card-date {
    font-size: 12px;
    color: #95A5A6;
    margin-bottom: 4px;
}

.event-card-location {
    font-size: 12px;
    color: #FF6B6B;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 450px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 12px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 99;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #95A5A6;
    font-size: 10px;
    padding: 4px 12px;
    min-width: 64px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: #FF6B6B;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -8px;
    width: 20px;
    height: 3px;
    background: #FF6B6B;
    border-radius: 0 0 3px 3px;
}

.nav-item:active {
    transform: scale(0.9);
}

/* Toast */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(44,62,80,0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ========== Profile Page ========== */
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.profile-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FF6B6B;
}

.avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #4ECDC4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 4px;
}

.profile-bio {
    font-size: 13px;
    color: #95A5A6;
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

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

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2C3E50;
}

.stat-label {
    font-size: 12px;
    color: #95A5A6;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(255,107,107,0.2);
}

.btn-primary.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
}

/* Settings List */
.settings-list {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #ECF0F1;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.setting-item:active {
    background: #FFF5F5;
}

.setting-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-left span {
    font-size: 14px;
    font-weight: 500;
    color: #2C3E50;
}

/* ========== Admin Panel ========== */
.login-section {
    padding: 40px 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    max-width: 360px;
    margin: 0 auto;
}

.login-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #2C3E50;
    margin-bottom: 6px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ECF0F1;
    border-radius: 12px;
    font-size: 15px;
    color: #2C3E50;
    background: #FAFAFA;
    transition: all 0.3s ease;
    outline: none;
    min-height: 44px;
}

.input-field:focus {
    border-color: #FF6B6B;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.color-input {
    height: 44px;
    padding: 4px;
    cursor: pointer;
}

.login-error {
    color: #FF6B6B;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    min-height: 20px;
}

/* Admin Panel */
.admin-panel {
    margin-top: 16px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: white;
    color: #95A5A6;
    transition: all 0.3s ease;
    min-height: 44px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}

.tab-btn:active {
    transform: scale(0.95);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2C3E50;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-item {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.admin-item-info {
    flex: 1;
}

.admin-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 2px;
}

.admin-item-sub {
    font-size: 12px;
    color: #95A5A6;
}

.admin-item-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 36px;
}

.action-btn.edit {
    background: #4ECDC4;
    color: white;
}

.action-btn.delete {
    background: #FF6B6B;
    color: white;
}

.action-btn:active {
    transform: scale(0.9);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #ECF0F1;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
}

.modal-close {
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #95A5A6;
    padding: 4px 8px;
}

.modal-body {
    padding: 20px;
}

.modal-body .input-group {
    margin-bottom: 16px;
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========== Responsive ========== */
@media (min-width: 451px) {
    body {
        border-left: 1px solid rgba(0,0,0,0.05);
        border-right: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 0 30px rgba(0,0,0,0.05);
    }
}

@media (max-width: 374px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .user-cards {
        grid-template-columns: 1fr;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #FF6B6B;
    border-radius: 2px;
}