* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
background-color: #f5f7fa;
color: #333;
line-height: 1.6;
padding: 20px;
}

.container {
max-width: 1200px;
margin: 0 auto;
background-color: white;
border-radius: 8px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
overflow: hidden;
}

.header {
background: linear-gradient(135deg, #1e3c72, #2a5298);
color: white;
padding: 30px 40px;
text-align: center;
}

.header h1 {
font-size: 28px;
margin-bottom: 10px;
letter-spacing: 1px;
}

.header p {
opacity: 0.9;
font-size: 16px;
}

.form-container {
padding: 20px;
}

.section-title {
font-size: 20px;
color: #2a5298;
margin-bottom: 15px;
padding-bottom: 5px;
border-bottom: 2px solid #eef2f7;
display: flex;
align-items: center;
}

.section-title i {
margin-right: 10px;
}

.form-group {
margin-bottom: 25px;
}

.form-row {
display: flex;
flex-wrap: wrap;
margin: 0 -10px;
}

.form-column {
flex: 1;
padding: 0 10px;
min-width: 250px;
}

label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #444;
font-size: 15px;
}

input, select {
width: 100%;
padding: 12px 15px;
border: 1px solid #d1d9e6;
border-radius: 5px;
font-size: 15px;
transition: border 0.3s, box-shadow 0.3s;
}

input:focus, select:focus {
outline: none;
border-color: #2a5298;
box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.attendees-container {
margin-top: 20px;
}

.attendee-card {
background-color: #f9fbfd;
border: 1px solid #e8edf5;
border-radius: 6px;
padding: 10px;
margin-bottom: 10px;
position: relative;
transition: all 0.3s ease;
}

/* 参会人信息单行显示 */
.attendee-single-row {
display: flex;
flex-wrap: wrap;
gap: 15px;
align-items: flex-end;
}

.attendee-field {
flex: 1;
min-width: 150px;
}

.attendee-field.small {
min-width: 100px;
flex: 0.5;
}

.attendee-field.medium {
min-width: 120px;
flex: 0.7;
}

.attendee-field.large {
min-width: 180px;
flex: 1.2;
}


.attendee-number {
font-weight: 600;
color: #2a5298;
font-size: 16px;
}

/* 移除参会人卡片内的删除按钮 */
.attendee-card .remove-attendee {
display: none;
}

.attendee-controls {
display: flex;
justify-content: center;
margin: 30px 0 15px;
}

.btn {
padding: 12px 24px;
border-radius: 5px;
font-weight: 600;
font-size: 15px;
cursor: pointer;
transition: all 0.3s;
border: none;
display: inline-flex;
align-items: center;
justify-content: center;
}

.btn-primary {
background-color: #2a5298;
color: white;
}

.btn-primary:hover {
background-color: #1e3c72;
}

.btn-add {
background-color: #27ae60;
color: white;
}

.btn-add:hover {
background-color: #219653;
}

.btn-remove {
background-color: #ffeded;
color: #e74c3c;
border: 1px solid #fadbd8;
}

.btn-remove:hover {
background-color: #fce4e4;
}

.btn-remove:disabled {
background-color: #f5f5f5;
color: #aaa;
border-color: #ddd;
cursor: not-allowed;
}

.btn i {
margin-right: 8px;
}

.form-footer {
display: flex;
justify-content: center;
margin-top: 40px;
padding-top: 25px;
border-top: 1px solid #eef2f7;
}

.required {
color: #e74c3c;
}

.instructions {
font-size: 14px;
color: #666;
margin-top: 5px;
}

.invoice-section {
margin-top: 30px;
padding: 20px;
background-color: #f9fbfd;
border-radius: 6px;
border: 1px solid #e8edf5;
transition: all 0.3s ease;
}

.invoice-options {
display: flex;
gap: 20px;
margin-bottom: 15px;
}

.invoice-option {
display: flex;
align-items: center;
margin-right: 15px;
}

.invoice-option input {
width: auto;
margin-right: 8px;
}

.invoice-type-options {
display: flex;
gap: 20px;
margin-bottom: 20px;
}

.invoice-type-option {
display: flex;
align-items: center;
margin-right: 15px;
}

.invoice-type-option input {
width: auto;
margin-right: 8px;
}

.invoice-details {
margin-top: 20px;
padding-top: 20px;
border-top: 1px dashed #d1d9e6;
display: none;
}

.invoice-details.active {
display: block;
animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

.invoice-required {
color: #e74c3c;
font-weight: normal;
}

@media (max-width: 992px) {
.form-container {
padding: 25px;
}

.header {
padding: 25px 20px;
}

.form-footer {
flex-direction: column;
gap: 15px;
}

.btn {
width: 100%;
}

.invoice-options, .invoice-type-options {
flex-direction: column;
gap: 10px;
}

.attendee-single-row {
flex-direction: column;
gap: 15px;
}

.attendee-field, .attendee-field.small, .attendee-field.medium, .attendee-field.large {
min-width: 100%;
flex: 1;
}

	.attendee-actions {
		flex-direction: column;
		gap: 10px;
	}
}

@media (max-width: 768px) {
	.attendee-single-row {
		gap: 12px;
	}
	.modal-content {
		padding: 30px 20px;
	}
}

.success-message {
display: none;
background-color: #d4edda;
color: #155724;
padding: 15px;
border-radius: 5px;
margin-top: 20px;
border: 1px solid #c3e6cb;
}

.radio-group {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-top: 8px;
}

.radio-option {
display: flex;
align-items: center;
}

.radio-option input {
width: auto;
margin-right: 8px;
}

.attendee-actions {
display: flex;
justify-content: center;
gap: 20px;
margin: 25px 0 15px;
position: sticky;
top: 20px;
z-index: 10;
background-color: white;
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
}

.submit-container {
text-align: center;
margin-top: 40px;
}

.action-buttons {
display: flex;
gap: 15px;
}

/* 固定按钮区域动画 */
.attendee-actions.sticky {
animation: slideDown 0.3s ease;
}

@keyframes slideDown {
from {
transform: translateY(-10px);
opacity: 0.8;
}
to {
transform: translateY(0);
opacity: 1;
}
}

/* 删除动画 */
.attendee-card.removing {
opacity: 0;
transform: translateX(-20px);
height: 0;
padding: 0;
margin: 0;
overflow: hidden;
transition: all 0.4s ease;
}

/* 弹层样式 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-content {
            background-color: white;
            width: 90%;
            max-width: 700px;
            border-radius: 16px;
            padding: 40px;
            text-align: center;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
            transform: translateY(30px);
            transition: transform 0.5s ease;
            position: relative;
        }
        
        .modal-overlay.active .modal-content {
            transform: translateY(0);
        }
        
        .modal-icon {
            font-size: 5rem;
            color: #2ecc71;
            margin-bottom: 20px;
            animation: bounce 1s ease;
        }
        
        @keyframes bounce {
            0%, 20%, 60%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-20px);
            }
            80% {
                transform: translateY(-10px);
            }
        }
        
        .modal-title {
            font-size: 2.2rem;
            color: #2c3e50;
            margin-bottom: 20px;
        }
        
        .modal-info {
            background-color: #f8fafc;
            border-radius: 10px;
            padding: 25px;
            margin: 25px 0;
            text-align: left;
        }
        
        .info-item {
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }
        
        .info-item:last-child {
            margin-bottom: 0;
        }
        
        .info-icon {
            color: #3498db;
            font-size: 1.2rem;
            width: 30px;
        }
        
        .info-label {
            font-weight: 600;
            color: #2c3e50;
            min-width: 70px;
        }
        
        .info-value {
            color: #7f8c8d;
            margin-left: 10px;
            word-break: break-all;
        }
        
        .close-btn {
            background: linear-gradient(to right, #2ecc71, #27ae60);
            color: white;
            border: none;
            border-radius: 10px;
            padding: 15px 40px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            letter-spacing: 1px;
        }
        
        .close-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
        }
        
        footer {
            text-align: center;
            color: #7f8c8d;
            margin-top: 20px;
            font-size: 0.9rem;
            width: 100%;
            padding-top: 20px;
            border-top: 1px solid #eef2f7;
        }