* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

h2 {
    color: #555;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #667eea;
}

.header-section h1 {
    margin: 0;
    flex: 1;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: #e8f2ff;
    border-radius: 20px;
    border: 1px solid #667eea;
}

.user-info span {
    color: #667eea;
    font-weight: 500;
}

.logout-btn {
    padding: 5px 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #c0392b;
}

.login-btn-header {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.login-btn-header:hover {
    transform: translateY(-2px);
}

.login-modal,
.register-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.login-modal-content,
.register-modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
}

.login-form,
.register-form {
    padding: 25px;
}

.login-buttons,
.register-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.login-btn,
.register-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.login-btn:hover,
.register-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.register-link-btn,
.login-link-btn {
    flex: 1;
    padding: 12px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.register-link-btn:hover,
.login-link-btn:hover {
    transform: translateY(-2px);
    background: #7f8c8d;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.payer-select {
    background-color: white;
}

.participants-section {
    border: 2px solid #e8f2ff;
    border-radius: 10px;
    padding: 20px;
    background: #f8f9ff;
}

.add-participant-section {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.add-participant-section input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.add-participant-section input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.add-participant-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
    white-space: nowrap;
}

.add-participant-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
}

.manage-participants-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
    white-space: nowrap;
}

.manage-participants-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
}

.participants-instruction {
    margin-bottom: 15px;
    padding: 10px;
    background: #e8f4fd;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.instruction-text {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
}

.participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    min-height: 50px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.participants-list:empty::after {
    content: "暂无参与者，请先添加参与者";
    color: #999;
    font-style: italic;
    width: 100%;
    text-align: center;
    padding: 20px;
}

.participant-tag {
    background: #e8f2ff;
    padding: 10px 16px;
    border-radius: 25px;
    border: 2px solid #667eea;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.participant-name {
    flex: 1;
}

.delete-participant-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.delete-participant-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.participant-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.participant-tag.selected {
    background: #667eea;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.participant-tag.selected::after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.selected-participants-info {
    text-align: center;
    padding: 10px;
    background: #e8f5e8;
    border-radius: 6px;
    border: 1px solid #27ae60;
}

.selected-participants-info span {
    color: #27ae60;
    font-weight: bold;
    font-size: 14px;
}

.add-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.add-btn:hover {
    transform: translateY(-2px);
}

.bill-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 5px solid #667eea;
    position: relative;
}

.bill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bill-description {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.bill-amount {
    font-size: 20px;
    color: #e74c3c;
    font-weight: bold;
}

.bill-details {
    color: #666;
    margin-bottom: 10px;
}

.bill-participants {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.participant-chip {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 2px;
    display: inline-block;
}

.participant-chip.approved {
    background: #27ae60;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.participant-chip:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.participant-chip.approved:hover {
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
}

.delete-btn:hover {
    background: #c0392b;
}

.summary {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #667eea;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.transfer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    font-size: 14px;
}

.transfer-item span:nth-child(2) {
    margin: 0 10px;
    color: #666;
    font-weight: bold;
}

.transfer-item span:last-child {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.add-bill-section,
.bills-section,
.summary-section {
    margin-bottom: 40px;
}

.image-upload-section {
    margin-top: 10px;
}

.image-upload-section input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
}

.image-upload-section input[type="file"]:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-image-btn:hover {
    background: #c0392b;
}

.bill-images {
    margin-top: 15px;
}

.bill-images-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.bill-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bill-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.bill-image-item:hover {
    transform: scale(1.05);
}

.bill-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-image-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(231, 76, 60, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-image-btn:hover {
    background: #e74c3c;
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
}

.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.admin-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.admin-modal-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.admin-modal-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.admin-modal-content input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.admin-modal-content input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.admin-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.verify-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.verify-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.cancel-btn {
    padding: 12px 25px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.cancel-btn:hover {
    transform: translateY(-2px);
    background: #7f8c8d;
}

.participant-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.participant-modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.close-modal-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.participant-list-container {
    min-height: 200px;
}

.participant-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.participant-modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.participant-modal-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.participant-details {
    display: flex;
    flex-direction: column;
}

.participant-name-modal {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.participant-stats {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.participant-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.edit-btn {
    background: #3498db;
    color: white;
}

.edit-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.delete-btn-modal {
    background: #e74c3c;
    color: white;
}

.delete-btn-modal:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #f8f9fa;
}

.bill-comments {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.comments-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.no-comments {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.comment-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    position: relative;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.commenter-name {
    font-weight: bold;
    color: #667eea;
    font-size: 14px;
}

.comment-time {
    color: #999;
    font-size: 12px;
}

.delete-comment-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.delete-comment-btn:hover {
    background: #c0392b;
}

.comment-content {
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

.add-comment-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.comment-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.commenter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 120px;
}

.commenter-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.comment-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.comment-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.add-comment-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s;
    white-space: nowrap;
}

.add-comment-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.bill-approval-status {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.approval-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
}

.fully-approved {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.pending-approval {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.approval-status-text {
    font-size: 14px;
}

.approval-count {
    font-size: 12px;
    opacity: 0.8;
}

.approval-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
    padding: 5px 0;
}

.participant-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    min-width: 180px;
    margin-right: 10px;
    background: white;
}

.participant-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

@media (max-width: 600px) {
    .container {
        padding: 8px;
        margin: 0;
        max-width: 100vw;
        border-radius: 0;
        box-shadow: none;
    }

    h1 {
        font-size: 1.3em;
        word-break: break-all;
    }

    .header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 10px;
    }

    .user-section {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .user-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        padding: 6px 8px;
        font-size: 13px;
    }

    .login-btn-header,
    .logout-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .add-bill-section,
    #addBillSection {
        padding: 12px 4px;
        box-shadow: none;
        margin-bottom: 16px;
    }

    .form-group input,
    .form-group select {
        padding: 8px;
        font-size: 13px;
    }

    .add-participant-section {
        flex-direction: column;
        gap: 6px;
    }

    .participants-section {
        padding: 10px 2px;
    }

    .participants-list {
        gap: 6px;
        padding: 6px;
        min-height: 30px;
    }

    .participant-tag {
        padding: 6px 10px;
        font-size: 12px;
        max-width: 90vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .selected-participants-info {
        padding: 6px;
        font-size: 12px;
    }

    .add-btn,
    #toggleAddBillBtn {
        padding: 10px;
        font-size: 15px;
    }

    .bill-item {
        padding: 10px 4px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .bill-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .bill-description {
        font-size: 15px;
        word-break: break-all;
    }

    .bill-amount {
        font-size: 16px;
    }

    .bill-details {
        font-size: 13px;
        word-break: break-all;
    }

    .bill-participants {
        gap: 3px;
        margin-bottom: 6px;
    }

    .participant-chip {
        padding: 2px 7px;
        font-size: 11px;
        max-width: 80vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bill-images {
        padding: 4px 0;
    }

    .bill-image-item img,
    .image-preview-item img {
        max-width: 90vw;
        height: auto;
        border-radius: 6px;
    }

    .add-comment-section {
        padding: 0;
    }

    .comment-input-group {
        flex-direction: column;
        gap: 6px;
    }

    .comment-input {
        font-size: 13px;
        padding: 6px 8px;
    }

    .add-comment-btn {
        padding: 7px 10px;
        font-size: 13px;
    }

    .bill-approval-status {
        padding: 8px 2px;
        font-size: 12px;
    }

    .approval-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 6px;
        font-size: 13px;
    }

    .approval-note {
        font-size: 11px;
        padding: 2px 0;
    }

    .login-modal-content,
    .register-modal-content,
    .admin-modal-content,
    .change-password-modal-content {
        max-width: 98vw;
        width: 98vw;
        border-radius: 8px;
        padding: 0 2vw;
    }

    .login-form,
    .register-form {
        padding: 10px 2px;
    }

    .modal-header h3 {
        font-size: 1.1em;
    }

    .modal-body {
        padding: 6px 2px;
    }

    .participant-modal-content {
        max-width: 98vw;
        width: 98vw;
        border-radius: 8px;
        padding: 0 2vw;
    }

    .participant-modal-list {
        gap: 6px;
    }

    .participant-modal-item {
        padding: 6px 2px;
        font-size: 13px;
    }

    .summary {
        padding: 10px 2px;
        font-size: 13px;
    }

    .summary-item {
        padding: 6px 2px;
    }

    .transfer-item {
        font-size: 12px;
    }

    .change-password-modal-content {
        padding: 10px 2px;
    }
}

/* 修改密码模态框样式 */
.change-password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}

.change-password-modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
}

.change-password-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.change-password-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.change-password-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* 添加账单展开按钮样式 */
.add-bill-toggle-section {
    text-align: right;
    margin-bottom: 10px;
}

#toggleAddBillBtn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.2s;
}

#toggleAddBillBtn:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

#addBillSection {
    margin-bottom: 30px;
    background: #f8f9ff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.08);
    padding: 30px 20px;
}