/**
 * 活动签到和报名样式
 */

.lms-event-checkin-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lms-checkin-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.lms-checkin-result {
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.lms-checkin-result.lms-checkin-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.lms-checkin-result.lms-checkin-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.lms-checkin-message {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lms-checkin-icon {
    font-size: 24px;
    font-weight: bold;
}

.lms-checkin-text {
    font-size: 16px;
    font-weight: 500;
}

.lms-checkin-details {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.lms-notice {
    padding: 15px;
    background: #f0f0f0;
    border-left: 4px solid #0073aa;
    margin: 20px 0;
}

/* 用户签到历史 */
.lms-user-event-history {
    margin: 20px 0;
}

.lms-event-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.lms-event-history-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #1d2327;
}

.lms-event-history-table tbody tr:hover {
    background: #f8f9fa;
}

.lms-event-history-table tbody tr:last-child td {
    border-bottom: none;
}

/* 日历活动列表模态框样式 */
.lms-calendar-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lms-calendar-event-item-modal {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.lms-calendar-event-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.lms-calendar-event-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    flex: 1;
    min-width: 0;
}

.lms-calendar-event-booking-indicator {
    flex-shrink: 0;
}

.lms-calendar-event-time-modal {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.lms-calendar-event-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-top: 8px;
}

.lms-calendar-event-desc.is-clamped {
    position: relative;
    display: block;
    overflow: hidden;
    max-height: calc(1.5em * 4);
    word-break: break-word;
    padding-bottom: 2px;
}

.lms-calendar-event-desc.is-clamped::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.2em;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0), #f8f9fa 88%);
}

.lms-calendar-event-desc.is-clamped a {
    color: #2271b1;
    text-decoration: underline;
}

.lms-calendar-event-actions {
    display: flex !important;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.lms-calendar-event-actions .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-height: 40px;
    height: 40px;
    line-height: 1;
    box-sizing: border-box;
    vertical-align: middle;
    flex: 1;
}

.lms-calendar-event-actions .button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
    display: inline-block;
}

.lms-calendar-event-actions .lms-btn-booking {
    background: #2271b1;
    color: #fff;
    border: none;
}

.lms-calendar-event-actions .lms-btn-booking:hover {
    background: #135e96;
}

.lms-calendar-event-actions .lms-btn-checkin-staff {
    background: #00a32a;
    color: #fff;
    border: none;
}

.lms-calendar-event-actions .lms-btn-checkin-staff:hover {
    background: #008a20;
}

.lms-calendar-event-actions .lms-btn-details {
    background: #50575e;
    color: #fff;
    border: none;
}

.lms-calendar-event-actions .lms-btn-details:hover {
    background: #3c434a;
}

.lms-calendar-event-actions .lms-btn-cancel-booking {
    background: #d63638;
    color: #fff;
    border: none;
}

.lms-calendar-event-actions .lms-btn-cancel-booking:hover {
    background: #b32d2e;
}

/* 活动时间线 */
.lms-event-timeline {
    margin: 20px 0;
}

.lms-timeline-section {
    margin-bottom: 30px;
}

.lms-timeline-section h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.lms-timeline-past h3 {
    border-color: #999;
    color: #666;
}

.lms-timeline-today h3 {
    border-color: #aa0000;
    color: #aa0000;
}

.lms-timeline-future h3 {
    border-color: #46b450;
    color: #46b450;
}

.lms-timeline-date-group {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.lms-timeline-date-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
    color: #1d2327;
}

.lms-timeline-event-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.lms-timeline-event-item:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #c3c4c7;
}

.lms-event-info {
    flex: 1;
}

.lms-event-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.lms-event-time {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lms-other-times {
    color: #646970;
    font-size: 13px;
}

.lms-time-label {
    font-weight: 500;
    color: #1d2327;
}

.lms-time-value {
    color: #2271b1;
    font-weight: 600;
}

.lms-event-times {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.lms-time-zones-title {
    font-size: 12px;
    font-weight: 500;
    color: #646970;
    margin-bottom: 8px;
}

.lms-time-zones-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lms-time-zone-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.lms-time-zone-label {
    color: #646970;
    min-width: 80px;
}

.lms-time-zone-value {
    color: #1d2327;
    font-weight: 500;
}

.lms-time-zone {
    display: inline-block;
    margin-right: 10px;
}

.lms-event-description {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

.lms-event-actions {
    margin-left: 15px;
}

.lms-btn-booking,
.lms-btn-details,
.lms-booking-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    min-width: 100px;
    height: 40px;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 8px;
    line-height: 1;
    box-sizing: border-box;
    white-space: nowrap;
}

.lms-btn-booking,
.lms-btn-details {
    cursor: pointer;
}

.lms-booking-status {
    cursor: default;
}

.lms-btn-booking {
    box-shadow: 0 2px 8px rgba(98, 125, 255, 0.3);
}

.lms-btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 125, 255, 0.4);
}

.lms-btn-details {
    box-shadow: 0 2px 8px rgba(70, 180, 80, 0.3);
}

.lms-btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 180, 80, 0.4);
}

.lms-btn-booking .dashicons,
.lms-btn-details .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.lms-booking-status {
    background: linear-gradient(135deg, #ff9800 0%, #ff6b35 100%);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.lms-btn-booking .dashicons,
.lms-btn-details .dashicons,
.lms-booking-status .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* 我的报名 */
.lms-my-event-bookings {
    margin: 20px 0;
}

.lms-bookings-list {
    margin-top: 15px;
}

.lms-booking-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.lms-booking-item:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #c3c4c7;
}

.lms-booking-info {
    flex: 1;
}

.lms-booking-event-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.lms-booking-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.lms-booking-details span {
    margin-right: 15px;
}

.lms-booking-times {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.lms-booking-description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    line-height: 1.5;
}

.lms-booking-meta {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

.lms-booking-meta span {
    margin-right: 15px;
}

.lms-booking-actions {
    margin-left: 15px;
}

.lms-btn-cancel-booking {
    padding: 8px 16px;
    background: #dc3232;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.lms-btn-cancel-booking:hover {
    background: #b52727;
}

/* 报名方式选择模态框 */
.lms-booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lms-booking-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lms-booking-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.lms-booking-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

.lms-booking-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #646970;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lms-booking-modal-close:hover {
    background: #f0f0f0;
    color: #1d2327;
}

.lms-booking-modal-body {
    padding: 24px;
}

.lms-booking-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lms-booking-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
}

.lms-booking-option:hover {
    border-color: #627dff;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 125, 255, 0.15);
}

.lms-booking-option:active,
.lms-booking-option.lms-booking-option-selected {
    transform: translateY(0);
    border-color: #627dff;
    background: #e8ebff;
    box-shadow: 0 2px 8px rgba(98, 125, 255, 0.2);
}

.lms-booking-option-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #627dff 0%, #c084fc 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.lms-booking-option-label {
    font-size: 18px;
    font-weight: 500;
    color: #1d2327;
}

/* 活动详情模态框 */
.lms-event-details-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.2s ease;
}

.lms-event-details-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.lms-event-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    gap: 15px;
}

.lms-event-details-header-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 0;
}

.lms-event-details-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

.lms-event-details-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #646970;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lms-event-details-close:hover {
    background: #f0f0f0;
    color: #1d2327;
}

.lms-event-details-body {
    padding: 24px;
}

.lms-detail-section {
    margin-bottom: 24px;
}

.lms-detail-section:last-child {
    margin-bottom: 0;
}

.lms-btn-go-lesson {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 163, 92, 0.45) !important;
    background: linear-gradient(135deg, #ff9f4a 0%, #ff7f2a 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(255, 127, 42, 0.28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.lms-btn-go-lesson:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 127, 42, 0.34);
    filter: brightness(1.03);
}

.lms-btn-go-lesson .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.lms-lesson-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.lms-lesson-link-meta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background: #f4f7fb;
    border: 1px solid #d5deea;
    border-radius: 10px;
    padding: 8px 12px;
}

.lms-lesson-link-meta .v {
    color: #1b2b42;
    font-weight: 600;
    line-height: 1.4;
}

/* 强制按钮在浅色/白色背景下保持可读 */
.lms-btn-go-lesson,
.lms-btn-go-lesson:visited {
    color: #ffffff !important;
}

.lms-lesson-link-meta .lms-btn-go-lesson {
    margin-left: auto;
    white-space: nowrap;
}

.lms-detail-actions {
    display: flex !important;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.lms-detail-actions .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-height: 40px;
    height: 40px;
    line-height: 1;
    box-sizing: border-box;
    vertical-align: middle;
}

.lms-detail-actions .lms-btn-booking {
    background: #2271b1;
    color: #fff;
    border: none;
}

.lms-detail-actions .lms-btn-booking:hover {
    background: #135e96;
}

.lms-detail-actions .lms-btn-checkin-staff {
    background: #00a32a;
    color: #fff;
    border: none;
}

.lms-detail-actions .lms-btn-checkin-staff:hover {
    background: #008a20;
}

.lms-detail-actions .lms-booking-status {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #c3e6cb;
    min-height: 40px;
    height: 40px;
    line-height: 1;
    box-sizing: border-box;
    vertical-align: middle;
}

.lms-event-details-header .lms-booking-status {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 8px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #c3e6cb;
    line-height: 1.2;
    box-sizing: border-box;
    vertical-align: middle;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}

/* 已报名指示灯样式 - 小圆点 + 文字 */
.lms-booking-indicator-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

.lms-booking-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.6), 0 0 8px rgba(40, 167, 69, 0.4);
    flex-shrink: 0;
    animation: indicatorPulse 2s ease-in-out infinite;
}

.lms-booking-indicator-booked {
    background: #28a745;
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.6), 0 0 8px rgba(40, 167, 69, 0.4);
}

.lms-booking-indicator-unbooked {
    background: #ffc107;
    box-shadow: 0 0 4px rgba(255, 193, 7, 0.6), 0 0 8px rgba(255, 193, 7, 0.4);
    animation: none;
}

.lms-booking-indicator-text {
    font-size: 12px;
    color: #28a745 !important;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

.lms-booking-indicator-text-unbooked {
    color: #ffc107 !important;
}

@keyframes indicatorPulse {
    0%, 100% {
        box-shadow: 0 0 4px rgba(40, 167, 69, 0.6), 0 0 8px rgba(40, 167, 69, 0.4);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.8), 0 0 12px rgba(40, 167, 69, 0.6);
        opacity: 0.9;
    }
}

.lms-detail-actions .lms-btn-cancel-booking {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #dc3232;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    box-sizing: border-box;
    white-space: nowrap;
    min-height: 40px;
    height: 40px;
}

.lms-detail-actions .lms-btn-cancel-booking:hover {
    background: #b52727;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 50, 50, 0.3);
}

.lms-detail-actions .button .dashicons,
.lms-detail-actions .lms-booking-status .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
    display: inline-block;
}

.lms-event-details-header .lms-booking-status .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    line-height: 1;
    display: inline-block;
    margin-top: -1px;
}

/* 小屏幕优化 - 指示灯 */
@media (max-width: 768px) {
    .lms-booking-indicator-wrapper {
        gap: 4px;
        margin-left: 6px;
    }
    
    .lms-booking-indicator {
        width: 6px;
        height: 6px;
    }
    
    .lms-booking-indicator-text {
        font-size: 11px;
        color: #28a745 !important;
    }
}

.lms-detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.lms-detail-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lms-quick-cell {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lms-quick-cell .k {
    font-size: 12px;
    color: #64748b;
    line-height: 1.2;
}

.lms-quick-cell .v {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.lms-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.lms-detail-item:last-child {
    margin-bottom: 0;
}

.lms-detail-label {
    font-weight: 500;
    color: #646970;
    min-width: 100px;
    flex-shrink: 0;
}

.lms-detail-value {
    color: #1d2327;
    flex: 1;
}

.lms-detail-time-zones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lms-detail-time-zones-inline {
    color: #1d2327;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #46b450;
}

/* 其他时区：三格布局，地区在上、时间在下 */
.lms-detail-time-zones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 4px;
}

.lms-timezone-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    min-height: 64px;
}

.lms-timezone-cell .lms-timezone-region {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.lms-timezone-cell .lms-timezone-time {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.lms-location-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lms-location-pairs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lms-location-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lms-location-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lms-location-group-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px;
}

.lms-location-group-head {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #dbe3ef;
}

.lms-location-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.lms-location-group-addresses {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lms-group-address-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.lms-group-address-main {
    min-width: 0;
    flex: 1;
}

.lms-group-address-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.lms-group-address-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
    word-break: break-word;
}

.lms-location-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px;
    min-width: 0;
}

.lms-location-card-head {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.lms-location-card-addr {
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
}

.lms-location-card-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lms-location-address-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.lms-location-address-text {
    color: #1e293b;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    flex: 1;
}

.lms-location-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
}

.lms-location-nav-btn:hover {
    background: #dbeafe;
    color: #1e40af;
    text-decoration: none;
}

.lms-location-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
}

.lms-location-row .k {
    color: #64748b;
    flex-shrink: 0;
}

.lms-location-row .v {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    max-width: 68%;
}

.lms-location-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lms-location-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .lms-detail-quick-grid {
        grid-template-columns: 1fr;
    }

    .lms-detail-time-zones-grid {
        grid-template-columns: 1fr;
    }

    .lms-location-pair {
        grid-template-columns: 1fr;
    }

    .lms-group-address-item {
        flex-direction: column;
    }
}

.lms-detail-time-zone-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-right: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #46b450;
}

.lms-detail-time-zone-label {
    font-weight: 500;
    color: #646970;
    min-width: 100px;
}

.lms-detail-time-zone-value {
    color: #1d2327;
    font-weight: 500;
}

.lms-detail-description {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #1d2327;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .lms-timeline-event-item,
    .lms-booking-item {
        flex-direction: column;
    }
    
    .lms-event-actions,
    .lms-booking-actions {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .lms-btn-booking,
    .lms-btn-details,
    .lms-booking-status,
    .lms-btn-cancel-booking {
        width: 100%;
        margin-left: 0;
        min-width: auto;
    }
    
    .lms-booking-modal,
    .lms-event-details-modal {
        width: 95%;
        margin: 20px;
    }
    
    .lms-booking-modal-header,
    .lms-event-details-header {
        padding: 20px 20px 16px;
    }
    
    .lms-booking-modal-body,
    .lms-event-details-body {
        padding: 20px;
    }
    
    .lms-booking-option {
        padding: 16px;
    }
    
    .lms-booking-option-icon {
        font-size: 28px;
        width: 44px;
        height: 44px;
    }
    
    .lms-booking-option-label {
        font-size: 16px;
    }
    
    .lms-detail-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .lms-detail-label {
        min-width: auto;
    }
    
    .lms-detail-time-zone-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .lms-detail-time-zone-label {
        min-width: auto;
    }
}

/* 炫酷日历样式 - 深红金配色 */
.lms-event-calendar {
    background: linear-gradient(135deg, #60120a 0%, #7a1a0e 35%, #8b2012 65%, #a52a0a 85%, #D8A10A 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(96, 18, 10, 0.45),
                0 0 0 1px rgba(216, 161, 10, 0.25) inset;
    position: relative;
    overflow: hidden;
}


.lms-event-calendar-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(216, 161, 10, 0.4);
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lms-event-calendar-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 0 20px rgba(216, 161, 10, 0.15);
    letter-spacing: 0.5px;
    line-height: 1.5;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

.lms-event-calendar-footer-nav {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lms-event-calendar-footer-nav .lms-calendar-nav-prev {
    justify-content: flex-start;
}

.lms-event-calendar-footer-nav .lms-calendar-nav-today {
    justify-content: center;
}

.lms-event-calendar-footer-nav .lms-calendar-nav-next {
    justify-content: flex-end;
}

.lms-calendar-nav-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.15);
    transition: all 0.15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.lms-calendar-nav-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
}

.lms-calendar-nav-today {
    border-style: solid;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.lms-calendar-nav-today.is-current {
    opacity: 0.85;
    cursor: default;
}

@media (max-width: 600px) {
    .lms-event-calendar-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .lms-event-calendar-footer-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .lms-event-calendar-footer-nav .lms-calendar-nav-btn {
        justify-content: center;
    }
}

.lms-btn-batch-booking {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(216, 161, 10, 0.9) 0%, rgba(184, 134, 11, 0.95) 100%);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lms-btn-batch-booking:hover {
    background: linear-gradient(135deg, rgba(216, 161, 10, 1) 0%, rgba(184, 134, 11, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lms-btn-batch-booking:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.lms-btn-batch-booking .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.lms-batch-booking-desc {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #333;
}

.lms-event-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.lms-event-calendar-grid:last-child {
    margin-bottom: 0;
}

.lms-event-calendar-no-events {
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.lms-event-calendar-no-events-text {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lms-calendar-weekday {
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    padding: 10px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 8px rgba(216, 161, 10, 0.2);
}

.lms-calendar-weekday-hidden {
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
}

.lms-calendar-day {
    min-height: 90px;
    padding: 10px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(216, 161, 10, 0.35);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.lms-calendar-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(216, 161, 10, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lms-calendar-day:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(216, 161, 10, 0.4) inset;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(216, 161, 10, 0.55);
}

.lms-calendar-day:hover::before {
    opacity: 1;
}

.lms-calendar-day-empty {
    background: transparent;
    cursor: default;
    min-height: 0;
    padding: 0;
    border: none;
}

.lms-calendar-day-empty:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.lms-calendar-day-number {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    align-self: flex-start;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.lms-calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    align-items: flex-start;
    flex: 1;
    position: relative;
    z-index: 1;
}

.lms-calendar-event-item {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    position: relative;
}

.lms-calendar-event-item:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.lms-calendar-day-past .lms-calendar-event-item {
    border-left-color: #404040;
    border-left-width: 4px;
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.8) 0%, rgba(55, 65, 81, 0.9) 100%);
}

.lms-calendar-day-today .lms-calendar-event-item {
    border-left-color: #8e2323;
    border-left-width: 4px;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.85) 0%, rgba(153, 27, 27, 0.95) 100%);
}

.lms-calendar-day-future .lms-calendar-event-item {
    border-left-color: #2edf84;
    border-left-width: 4px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.8) 0%, rgba(4, 120, 87, 0.9) 100%);
}

.lms-calendar-event-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
    overflow: visible;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lms-calendar-event-booking-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.lms-calendar-event-booking-dot.lms-booking-dot-booked {
    background: #28a745;
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.8), 0 0 8px rgba(40, 167, 69, 0.6);
    animation: indicatorPulse 2s ease-in-out infinite;
}

.lms-calendar-event-booking-dot.lms-booking-dot-unbooked {
    background: #ffc107;
    box-shadow: 0 0 4px rgba(255, 193, 7, 0.8), 0 0 8px rgba(255, 193, 7, 0.6);
}

.lms-calendar-event-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 过去的活动样式 */
.lms-calendar-day-past {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(216, 161, 10, 0.25);
}

.lms-calendar-day-past .lms-calendar-day-number {
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 2px rgba(0, 0, 0, 0.3);
}

/* 今天的活动样式 */
.lms-calendar-day-today {
    background: linear-gradient(to bottom right, rgba(239, 67, 67, 1), rgba(220, 38, 38, 0.64));
    border-color: rgba(239, 68, 68, 0.7);
    border-width: 3px;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.35),
                0 0 0 1px rgba(216, 161, 10, 0.3) inset;
    animation: todayPulse 2s ease-in-out infinite;
}

@keyframes todayPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.35), 0 0 0 1px rgba(216, 161, 10, 0.3) inset; }
    50% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.5), 0 0 0 2px rgba(216, 161, 10, 0.4) inset; }
}

.lms-calendar-day-today .lms-calendar-day-number {
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    text-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
}

/* 未来的活动样式 */
.lms-calendar-day-future {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(216, 161, 10, 0.45);
}

.lms-calendar-day-future .lms-calendar-day-number {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 2px rgba(0, 0, 0, 0.3);
}

.lms-calendar-day-future:hover {
    background: rgba(216, 161, 10, 0.2);
    border-color: rgba(216, 161, 10, 0.65);
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* 让父容器在小屏幕上减少padding，让日历占满宽度 */
    .lms-event-timeline-layout {
        padding: 0 10px !important;
    }
    
    .lms-event-calendar-wrapper {
        margin-left: -10px;
        margin-right: -10px;
        overflow: hidden;
    }
    
    .lms-event-calendar {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 15px 10px;
        border-radius: 16px;
    }
    
    .lms-event-calendar-title {
        font-size: 16px;
        line-height: 1.4;
        word-break: break-word;
    }
    
    .lms-event-calendar-grid {
        gap: 6px;
    }
    
    .lms-calendar-day {
        min-height: auto;
        padding: 6px 4px;
        border-radius: 8px;
    }
    
    .lms-calendar-day-number {
        font-size: 13px;
    }
    
    .lms-calendar-event-title {
        font-size: 9px;
        line-height: 1.3;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        display: block;
        overflow: visible;
    }
    
    .lms-calendar-event-time {
        font-size: 9px;
    }
    
    .lms-calendar-day-today .lms-calendar-day-number {
        font-size: 15px;
    }
    
    .lms-calendar-event-item {
        padding: 5px 4px;
        min-height: auto;
    }
    
    .lms-calendar-weekday {
        font-size: 11px;
        padding: 6px 2px;
    }
}

@media (max-width: 480px) {
    /* 进一步减少父容器padding */
    .lms-event-timeline-layout {
        padding: 0 8px !important;
    }
    
    .lms-event-calendar-wrapper {
        margin-left: -8px;
        margin-right: -8px;
        overflow: hidden;
    }
    
    .lms-event-calendar {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding: 12px 8px;
        border-radius: 12px;
    }
    
    .lms-event-calendar-title {
        font-size: 14px;
        line-height: 1.4;
        word-break: break-word;
    }
    
    .lms-btn-batch-booking {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .lms-event-calendar-grid {
        gap: 4px;
    }
    
    .lms-calendar-day {
        padding: 5px 3px;
        border-radius: 6px;
    }
    
    .lms-calendar-day-number {
        font-size: 12px;
    }
    
    .lms-calendar-event-title {
        font-size: 6px;
        line-height: 1.3;
    }
    
    .lms-calendar-event-time {
        font-size: 8px;
    }
    
    .lms-calendar-day-today .lms-calendar-day-number {
        font-size: 14px;
    }
    
    .lms-calendar-event-item {
        padding: 4px 3px;
        border-left-width: 3px;
    }
    
    .lms-calendar-weekday {
        font-size: 10px;
        padding: 5px 1px;
    }
}