/* style.css */
:root {
    --primary-color: #23d5ab;
    --secondary-color: #f8f9fa;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #E6EDE3;
    padding-bottom: 62px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: white;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.logo {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0;
}

.scan-icon {
    display: flex;
    padding: 30px;
    border-radius: 50%;
    transition: all 0.3s;
}

.scan-icon svg {
    width: 24px;
    height: 24px;
    fill: #23d5ab;
}

.scan-icon:hover {
    background: rgba(0,0,0,0.05);
}


.nav-tabs {
    position: fixed;
    top: 60px;
    width: 100%;
    display: flex;
    background: white;
    border-bottom: 1px solid #eee;
    z-index: 999;
}

.nav-tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.page-content {
    padding: 120px 16px 80px;
}

/* 其他样式保持与之前相同... */

.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 1000;
}



.search-bar {
    position: relative;
    margin: 12px 0;
}

.search-bar input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #666;
}

.group-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
    color: #5C5C5C;
}

.group-card, .my-group-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #0A0A0A;
}
.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 0 10px;
}

/* 导航项 */
.nav-item {
    flex: 1;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}



/* 图标样式 */
.nav-item svg {
    width: 26px;  /* 统一图标尺寸 */
    height: 26px; /* 统一图标尺寸 */
    margin-bottom: 3px; /* 调整间距 */
    transition: transform 0.2s ease;
}


/* 文字样式 */
.nav-text {
    font-size: 0.75rem;
    line-height: 1.2;
}
/* manquxingqiu/assets/css/components.css */
.nav-item {
    flex: 1;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}


.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

@media (max-width: 480px) {
    .nav-tab {
        padding: 12px;
        font-size: 0.9rem;
    }
    .page-content {
        padding: 120px 12px 80px;
    }
}
.invite-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(35,213,171,0.2);
}

.invite-button:hover {
    background: #1ac39a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(35,213,171,0.3);
}

.invite-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(35,213,171,0.2);
}

/* 在style.css中添加 */
/* 修改CSS部分 */
.fab {
    position: fixed;
    right: 20px;
    bottom: 80px; /* 距离底部高度 */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #23d5ab, #1ac39a);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(35,213,171,0.3);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 16px rgba(35,213,171,0.4);
}

.fab:active {
    transform: scale(0.95);
}

@media (max-width: 480px) {
    .fab {
        right: 16px;
        bottom: 72px; /* 移动端适当降低高度 */
        width: 48px;
        height: 48px;
    }
    
    /* 确保底部导航不会遮挡 */
    .nav-bottom {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
/* 在style.css中添加 */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.auth-modal {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { transform: translateY(20%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.auth-modal h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
}

.auth-modal p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn.cancel {
    background: #f8f9fa;
    color: var(--text-secondary);
}

.modal-btn.confirm {
    background: var(--primary-color);
    color: white;
}

.modal-btn:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .auth-modal {
        padding: 20px;
    }
    
    .modal-actions {
        gap: 8px;
    }
    
    .modal-btn {
        font-size: 0.9rem;
        padding: 10px;
    }
}
