* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.page-shell {
    max-width: 1000px;
    margin: 30px auto;
}

header.event-banner {
    text-align: center;
    padding: 36px 32px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
    border-radius: 15px 15px 0 0;
    color: #fff;
}

header.event-banner h1.event-title {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.5;
    text-align: center;
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.container.team-panel {
    margin-top: 0;
    border-radius: 0 0 15px 15px;
}

.container.team-panel::before {
    display: none;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}

.header p {
    text-align: center;
    color: #7f8c8d;
    font-size: 18px;
    margin-bottom: 30px;
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 17px;
}

select, input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

select:focus, input:focus {
    border-color: #6a11cb;
    outline: none;
    box-shadow: 0 0 0 4px rgba(106, 17, 203, 0.1);
    background-color: #fff;
}

select:hover, input:hover {
    border-color: #6a11cb;
}

/* 错误状态样式 */
input.error, select.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

/* 错误信息样式 */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-banner {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.team-section {
    margin-top: 40px;
    border-top: 2px dashed #e1e8ed;
    padding-top: 30px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f3f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}

.member-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group label {
    font-size: 15px;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.add-member-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px dashed #d1d8e0;
}

.add-member-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.add-member-btn {
    background: linear-gradient(to right, #00b09b, #96c93d);
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 176, 155, 0.3);
}

.add-member-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 25px rgba(0, 176, 155, 0.4);
}

.add-member-btn:active {
    transform: translateY(0);
}

.add-member-btn i {
    margin-right: 10px;
    font-size: 22px;
}

/* 成员标签样式 */
.members-tags-section {
    margin-top: 30px;
}

.members-tags-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    min-height: 60px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px dashed #d1d8e0;
}

.member-tag {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(106, 17, 203, 0.2);
    transition: all 0.3s ease;
}

.member-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.tag-role {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 12px;
}

.tag-role.leader {
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.tag-name {
    margin-right: 10px;
}

.tag-edit {
    cursor: pointer;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    margin-right: 8px;
    transition: all 0.3s ease;
}

.tag-edit:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.tag-remove {
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.empty-tags {
    color: #7f8c8d;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
}

.submit-btn {
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    display: block;
    margin: 40px auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 117, 252, 0.3);
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 117, 252, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.footer-note {
    text-align: center;
    margin-top: 25px;
    color: #7f8c8d;
    font-size: 16px;
    font-style: italic;
}

.group-qr {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px dashed #e1e8ed;
    text-align: center;
}

.group-qr p {
    text-align: center;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.group-qr img {
    display: block;
    margin: 0 auto;
    width: 280px;
    max-width: 100%;
    height: auto;
}

/* Result page styles */
.success-message {
    font-size: 20px;
    color: #00b09b;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 500;
}

/* Users page styles */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 32px;
}

.header p {
    color: #7f8c8d;
    font-size: 18px;
}

.users-list {
    margin-top: 30px;
}

.team-card {
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #d1d8e0;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f3f7;
}

.team-name {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
}

.group-type {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.3);
}

.group-type.student {
    background: linear-gradient(to right, #00b09b, #96c93d);
    box-shadow: 0 4px 10px rgba(0, 176, 155, 0.3);
}

.team-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.detail-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f3f7;
}

.detail-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f3f7;
    font-weight: 700;
}

.detail-item {
    margin-bottom: 15px;
    display: flex;
}

.detail-label {
    font-weight: 600;
    color: #555;
    width: 100px;
    flex-shrink: 0;
}

.members-section h3 {
    color: #2c3e50;
    margin: 25px 0 20px;
    font-size: 22px;
    font-weight: 700;
}

.member-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.member-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f3f7;
}

.member-item h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f3f7;
    font-size: 18px;
    font-weight: 700;
}

.member-role {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    background: #6a11cb;
    color: white;
    margin-bottom: 10px;
}

.member-role.leader {
    background: #e74c3c;
}

.timestamp {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f3f7;
    color: #7f8c8d;
    font-size: 15px;
    text-align: right;
    font-style: italic;
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: #7f8c8d;
    font-size: 18px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 117, 252, 0.3);
    margin: 12px;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 25px rgba(37, 117, 252, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f3f7;
}

@media (max-width: 768px) {
    .container {
        padding: 25px 20px;
        margin: 15px;
    }

    .member-fields {
        grid-template-columns: 1fr;
    }

    .team-details {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 20px;
    }

    .submit-btn {
        padding: 16px 30px;
        font-size: 18px;
    }

    .btn {
        display: block;
        margin: 10px auto;
        padding: 14px 25px;
    }

    .tags-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .member-tag {
        width: 100%;
        justify-content: space-between;
    }
}
