/* 基础样式 */
:root {
    /* 默认绿色主题 */
    --primary-color: #4CAF50;
    --primary-dark: #45a049;
    --primary-light: #81C784;
    --text-on-primary: white;
}

/* 主题颜色方案 */
.theme-green {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --secondary-color: #81C784;
    --secondary-dark-color: #66BB6A;
}

.theme-blue {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #BBDEFB;
    --secondary-color: #64B5F6;
    --secondary-dark-color: #42A5F5;
}

.theme-red {
    --primary-color: #F44336;
    --primary-dark: #D32F2F;
    --primary-light: #FFCDD2;
    --secondary-color: #EF5350;
    --secondary-dark-color: #E53935;
}

.theme-purple {
    --primary-color: #8E24AA;
    --primary-dark: #6A1B9A;
    --primary-light: #EDE7F6;
    --secondary-color: #BA68C8;
    --secondary-dark-color: #9C27B0;
}

.theme-yellow {
    --primary-color: #FFB300;
    --primary-dark: #F57C00;
    --primary-light: #FFF8E1;
    --secondary-color: #FFD54F;
    --secondary-dark-color: #FFB74D;
}

.theme-pink {
    --primary-color: #EC407A;
    --primary-dark: #C2185B;
    --primary-light: #FCE4EC;
    --secondary-color: #F06292;
    --secondary-dark-color: #BA68C8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap !important;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 10px;
    overflow-x: auto;
    background-color: var(--primary-color);
    position: relative;
}

.logo {
    margin: 0 auto;
    color: white;
    padding: 10px 15px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .header {
        flex-wrap: nowrap;
        justify-content: center;
    }
    .header .header-right {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap !important;
        gap: 5px;
    }

    .header .logo {
        margin: 0 auto;
        display: block;
        flex-shrink: 0;
        text-align: center;
        min-width: 120px;
    }
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 15px 0;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    white-space: nowrap;
    color: #333;
    font-size: 14px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    flex: 1;
}

.nav-link {    color: white;    text-decoration: none;    margin: 0 3px;    font-size: 14px;    white-space: nowrap;    padding: 3px 5px;}

.nav-link:hover {
    text-decoration: underline;
}

.theme-selector { margin-right: 5px; flex-shrink: 0; min-width: min-content; }


.theme-selector select {
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

/* 主内容区样式 */
.main-content {
    min-height: calc(100vh - 160px);
}

/* 表单样式 */
.form-container {
    background-color: white;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 50px auto;
}

.form-title {
    text-align: center;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn-secondary { background-color: var(--secondary-color); }

.btn-secondary:hover { background-color: var(--secondary-dark-color); }

/* 列表样式 */
.list-container {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.list-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.list-item:hover {
    background-color: #f9f9f9;
}

/* 头像占位符样式 */
.avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* 圆形头像 */
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    background-color: #f0f2f5; /* 背景色 */
    color: #666; /* 文字颜色 */
    font-weight: bold;
    font-size: 18px;
    overflow: hidden; /* 确保生成的内容不会超出圆形范围 */
    vertical-align: middle; /* 与旁边的文字垂直居中对齐 */
}

/* 列表项整体样式优化 */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.list-item:hover {
    background-color: #f9fafb;
}

.list-item > div {
    display: flex;
    align-items: center;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-title {
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* 标签页样式 */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

.tab-content {
    display: none;
}

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

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.table tr:hover {
    background-color: #f5f5f5;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    color: #777;
    border-top: 1px solid #ddd;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

/* 头像样式 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

/* 状态标签 */
.status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-success {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.status-warning {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

.status-danger {
    background-color: var(--primary-dark);
    color: white;
}

/* 胜利/加油标签 */
.win {
    color: var(--primary-color);
    font-weight: bold;
}

.lose {
    color: #777;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 响应式按钮样式 */
    .circle-enter-btn {
        width: auto !important;
        min-width: 30px;
        padding: 8px 10px;
        font-size: 14px;
        background-color: var(--primary-color);
        color: white;
    }

    .circle-enter-btn:hover {
        background-color: var(--primary-dark);
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        width: 100%;
        padding: 0 0 10px 0;
    }

    .header-right {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: flex-end;
    flex-shrink: 0;
    }

    .nav-link {
        margin: 0 5px;
    }

    .form-container {
        padding: 15px;
        margin: 20px auto;
    }

    /* 列表项响应式调整 */
    .list-item > div {
        margin-bottom: 10px;
    }
}
