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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f0f9f0;
    color: #333;
    line-height: 1.6;
}

/* 导航栏样式 */
.nav-bar {
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.nav-btn.active {
    background: rgba(255,255,255,0.4);
    font-weight: bold;
}

/* 移动端样式 */
.mobile-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

/* 电脑端样式 */
@media (min-width: 768px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 20px;
        background-color: #e0f2e0;
    }
    .mobile-container {
        border-radius: 20px;
        overflow: hidden;
        min-height: 80vh;
        max-height: 90vh;
    }
    
    /* 电脑端首页特殊样式 */
    .desktop-home {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
        padding: 20px;
        max-height: none;
        overflow-y: auto;
    }
    .desktop-home .group-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    .desktop-home .group-avatar {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    .desktop-home .group-info {
        width: 100%;
    }
    .desktop-home .group-name {
        font-size: 1.1rem;
        margin-bottom: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .desktop-home .group-number {
        font-size: 0.9rem;
        color: #666;
    }
    .desktop-home .group-arrow {
        display: none;
    }
}

/* QQ群系统头部样式 */
.qq-header {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 10px 70px;
    text-align: center;
    position: relative;
}

.qq-header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.qq-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 黑名单系统头部样式 */
.blacklist-header {
    background: linear-gradient(135deg, #f44336, #e57373);
    color: white;
    padding: 10px 70px;
    text-align: center;
    position: relative;
}

.blacklist-header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.blacklist-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 群组列表样式 */
.group-list {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}

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

.group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.group-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4CAF50;
    margin-right: 15px;
}

.group-info {
    flex: 1;
}

.group-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.group-number {
    font-size: 0.9rem;
    color: #666;
}

.group-arrow {
    color: #4CAF50;
    font-size: 1.2rem;
}

/* 黑名单列表样式 */
.blacklist-container {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}

.blacklist-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blacklist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.blacklist-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #ffebee;
    border-bottom: 1px solid #ffcdd2;
}

.qq-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #c62828;
}

.reason {
    font-size: 0.9rem;
    color: #d32f2f;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blacklist-content {
    padding: 15px 20px;
}

.description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.blacklist-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.submit-time {
    font-size: 0.8rem;
    color: #888;
}

.view-detail-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-detail-btn:hover {
    background: #d32f2f;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-state img {
    width: 100px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 30px;
    color: #4CAF50;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    border-top-color: #4CAF50;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

.blacklist-loading {
    color: #f44336;
}

.blacklist-loading .loading-spinner {
    border: 3px solid rgba(244, 67, 54, 0.3);
    border-top-color: #f44336;
}

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

/* QQ群详情页样式 */
.qq-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn, .copy-link-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.back-btn i, .copy-link-btn i {
    margin-right: 5px;
}

.detail-content {
    padding: 20px;
}

.group-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.group-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4CAF50;
    margin-bottom: 15px;
}

.group-name-large {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.group-number-large {
    font-size: 1rem;
    color: #666;
}

.group-description {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.group-description h3 {
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.group-description p {
    color: #555;
    line-height: 1.6;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.join-btn, .copy-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-btn {
    background-color: #4CAF50;
    color: white;
}

.copy-btn {
    background-color: #2196F3;
    color: white;
}

.join-btn:hover {
    background-color: #45a049;
}

.copy-btn:hover {
    background-color: #0b7dda;
}

.join-btn i, .copy-btn i {
    margin-right: 8px;
}

/* 黑名单详情页样式 */
.blacklist-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f44336, #e57373);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.blacklist-detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.detail-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section.user-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qq-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f44336;
    margin-bottom: 15px;
}

.detail-label {
    font-weight: bold;
    color: #f44336;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-value {
    color: #333;
    line-height: 1.5;
}

.qq-number-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c62828;
    text-align: center;
    margin-bottom: 10px;
}

/* 复制链接提示 */
.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 1000;
    transition: opacity 0.3s;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* 页面切换动画 */
.page-enter-active, .page-leave-active {
    transition: opacity 0.3s, transform 0.3s;
}

.page-enter, .page-leave-to {
    opacity: 0;
    transform: translateX(20px);
}