.zib-red-packet {
    max-width: 300px;
    margin: 20px auto;
}

.zib-red-packet-container {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
    position: relative;
    overflow: hidden;
}

.zib-red-packet-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #ffd666, #ffc53d, #ffd666);
}

.zib-red-packet-header {
    color: #ffd666;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.zib-red-packet-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.zib-red-packet-body {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
}

.zib-red-packet-info {
    color: #fff;
    margin-bottom: 15px;
}

.zib-red-packet-sender {
    font-size: 14px;
    margin-bottom: 5px;
}

.zib-red-packet-message {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.zib-red-packet-status {
    font-size: 13px;
    opacity: 0.9;
}

.zib-red-packet-btn {
    background: linear-gradient(135deg, #ffd666 0%, #ffc53d 100%);
    color: #8c4700;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 198, 61, 0.4);
}

.zib-red-packet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 198, 61, 0.6);
}

.zib-red-packet-btn:active {
    transform: translateY(0);
}

.zib-red-packet-open-btn {
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    line-height: 60px;
}

.zib-red-packet-records {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.zib-red-packet-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
}

.zib-red-packet-record:last-child {
    border-bottom: none;
}

.zib-red-packet-record-amount {
    color: #ffd666;
    font-weight: bold;
}

.zib-red-packet-create {
    max-width: 400px;
    margin: 20px auto;
}

.zib-red-packet-create-btn {
    display: block;
    width: 100%;
}

.zib-red-packet-create-form {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.zib-red-packet-form-group {
    margin-bottom: 15px;
}

.zib-red-packet-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.zib-red-packet-input,
.zib-red-packet-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.zib-red-packet-input:focus,
.zib-red-packet-select:focus {
    outline: none;
    border-color: #ff4d4f;
}

.zib-red-packet-submit-btn {
    width: 100%;
    margin-top: 10px;
}

.zib-red-packet-result {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.zib-red-packet-result.success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.zib-red-packet-result.error {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.zib-red-packet-amount-show {
    font-size: 32px;
    color: #ffd666;
    font-weight: bold;
    margin: 10px 0;
}

.zib-red-packet-amount-show small {
    font-size: 16px;
}

.zib-red-packet-combined {
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.zib-red-packet-tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
}

.zib-red-packet-tab {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.zib-red-packet-tab:hover {
    background: rgba(255, 77, 79, 0.05);
}

.zib-red-packet-tab.active {
    background: #fff;
    color: #ff4d4f;
    font-weight: bold;
    border-bottom: 2px solid #ff4d4f;
}

.zib-red-packet-tab-content {
    padding: 20px;
}

.zib-red-packet-list {
    min-height: 200px;
}

.zib-red-packet-list-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.zib-red-packet-list-loading {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.zib-red-packet-list-item {
    padding: 15px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    margin-bottom: 10px;
    border: 1px solid #ffccc7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zib-red-packet-list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.zib-red-packet-list-item-content {
    display: flex;
    align-items: center;
}

.zib-red-packet-list-item-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.zib-red-packet-list-item-remain {
    font-size: 11px;
    color: #ff4d4f;
    font-weight: bold;
    margin-top: 2px;
}

.zib-red-packet-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.15);
}

.zib-red-packet-list-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.zib-red-packet-list-item-info {
    flex: 1;
    padding-left: 15px;
}

.zib-red-packet-list-item-name {
    font-weight: bold;
    color: #333;
}

.zib-red-packet-list-item-amount {
    font-size: 18px;
    font-weight: bold;
    color: #ff4d4f;
}

.zib-red-packet-list-item-desc {
    font-size: 13px;
    color: #666;
}

.zib-red-packet-list-item-expire {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.dark-theme .zib-red-packet-list-item-expire {
    color: #888a8f;
}

.zib-red-packet-list-item-amount-inline {
    font-size: 16px;
    font-weight: bold;
    color: #ff4d4f;
}

.zib-red-packet-list-item-amount-row {
    font-size: 18px;
    font-weight: bold;
    color: #ff4d4f;
    margin-bottom: 4px;
}

.dark-theme .zib-red-packet-list-item-amount-inline,
.dark-theme .zib-red-packet-list-item-amount-row {
    color: #ff7875;
}

.zib-red-packet-list-item-icon {
    font-size: 28px;
}

.dark-theme .zib-red-packet-combined {
    background: #37383a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dark-theme .zib-red-packet-tabs {
    background: #2d2e30;
    border-bottom-color: #444;
}

.dark-theme .zib-red-packet-tab {
    color: #b4b6bb;
}

.dark-theme .zib-red-packet-tab:hover {
    background: rgba(255, 77, 79, 0.1);
}

.dark-theme .zib-red-packet-tab.active {
    background: #37383a;
    border-bottom-color: #ff4d4f;
}

.dark-theme .zib-red-packet-create-form {
    background: #2d2e30;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dark-theme .zib-red-packet-form-group label {
    color: #e5eef7;
}

.dark-theme .zib-red-packet-input,
.dark-theme .zib-red-packet-select {
    background: #37383a;
    border-color: #444;
    color: #e5eef7;
}

.dark-theme .zib-red-packet-input:focus,
.dark-theme .zib-red-packet-select:focus {
    border-color: #ff4d4f;
}

.dark-theme .zib-red-packet-result.success {
    background: rgba(82, 196, 26, 0.1);
    color: #52c41a;
    border-color: rgba(82, 196, 26, 0.3);
}

.dark-theme .zib-red-packet-result.error {
    background: rgba(255, 77, 79, 0.1);
    color: #ff7875;
    border-color: rgba(255, 77, 79, 0.3);
}

.dark-theme .zib-red-packet-list-empty,
.dark-theme .zib-red-packet-list-loading {
    color: #888a8f;
}

.dark-theme .zib-red-packet-list-item {
    background: linear-gradient(135deg, #2d2e30 0%, #37383a 100%);
    border-color: #444;
}

.dark-theme .zib-red-packet-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-theme .zib-red-packet-list-item-name {
    color: #e5eef7;
}

.dark-theme .zib-red-packet-list-item-amount {
    color: #ff7875;
}

.dark-theme .zib-red-packet-list-item-desc {
    color: #b4b6bb;
}

.dark-theme .zib-red-packet-list-item-remain {
    color: #ff7875;
}

.zib-red-packet-lucky-king {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ffd700 100%);
    background-size: 200% 200%;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 6px;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}

.zib-red-packet-record-lucky {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    padding: 10px 8px !important;
    margin: 4px 0;
}

.zib-red-packet-record-lucky .zib-red-packet-record-amount {
    color: #ffd700;
    font-size: 15px;
}

.zib-red-packet-ranking {
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.zib-red-packet-ranking-title {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: #fff;
    padding: 15px 20px;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.zib-red-packet-ranking-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.zib-red-packet-ranking-list {
    padding: 10px 0;
}

.zib-red-packet-ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.zib-red-packet-ranking-item:hover {
    background-color: #fafafa;
}

.zib-red-packet-ranking-item:last-child {
    border-bottom: none;
}

.zib-red-packet-ranking-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 12px;
}

.zib-red-packet-ranking-rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffc107 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

.zib-red-packet-ranking-rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(160, 160, 160, 0.4);
}

.zib-red-packet-ranking-rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(184, 115, 51, 0.4);
}

.zib-red-packet-ranking-avatar {
    flex-shrink: 0;
    margin-right: 12px;
}

.zib-red-packet-ranking-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.zib-red-packet-ranking-info {
    flex: 1;
    min-width: 0;
}

.zib-red-packet-ranking-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zib-red-packet-ranking-count {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.zib-red-packet-ranking-amount {
    font-size: 18px;
    font-weight: bold;
    color: #ff4d4f;
    flex-shrink: 0;
    margin-left: 12px;
}

.dark-theme .zib-red-packet-ranking {
    background: #37383a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dark-theme .zib-red-packet-ranking-item {
    border-bottom-color: #444;
}

.dark-theme .zib-red-packet-ranking-item:hover {
    background-color: #2d2e30;
}

.dark-theme .zib-red-packet-ranking-name {
    color: #e5eef7;
}

.dark-theme .zib-red-packet-ranking-count {
    color: #888a8f;
}

.dark-theme .zib-red-packet-ranking-amount {
    color: #ff7875;
}

.zib-red-packet-style-blue .zib-red-packet-container {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.zib-red-packet-style-blue .zib-red-packet-container::before {
    background: linear-gradient(90deg, #91d5ff, #69c0ff, #91d5ff);
}

.zib-red-packet-style-blue .zib-red-packet-header {
    color: #e6f7ff;
}

.zib-red-packet-style-blue .zib-red-packet-btn {
    background: linear-gradient(135deg, #91d5ff 0%, #69c0ff 100%);
    color: #0050b3;
    box-shadow: 0 2px 8px rgba(105, 192, 255, 0.4);
}

.zib-red-packet-style-blue .zib-red-packet-btn:hover {
    box-shadow: 0 4px 12px rgba(105, 192, 255, 0.6);
}

.zib-red-packet-style-blue .zib-red-packet-record-amount {
    color: #91d5ff;
}

.zib-red-packet-style-green .zib-red-packet-container {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.zib-red-packet-style-green .zib-red-packet-container::before {
    background: linear-gradient(90deg, #d9f7be, #b7eb8f, #d9f7be);
}

.zib-red-packet-style-green .zib-red-packet-header {
    color: #f6ffed;
}

.zib-red-packet-style-green .zib-red-packet-btn {
    background: linear-gradient(135deg, #d9f7be 0%, #b7eb8f 100%);
    color: #237804;
    box-shadow: 0 2px 8px rgba(183, 235, 143, 0.4);
}

.zib-red-packet-style-green .zib-red-packet-btn:hover {
    box-shadow: 0 4px 12px rgba(183, 235, 143, 0.6);
}

.zib-red-packet-style-green .zib-red-packet-record-amount {
    color: #d9f7be;
}

.zib-red-packet-style-purple .zib-red-packet-container {
    background: linear-gradient(135deg, #722ed1 0%, #9254de 100%);
    box-shadow: 0 4px 12px rgba(114, 46, 209, 0.3);
}

.zib-red-packet-style-purple .zib-red-packet-container::before {
    background: linear-gradient(90deg, #d3adf7, #c084fc, #d3adf7);
}

.zib-red-packet-style-purple .zib-red-packet-header {
    color: #f9f0ff;
}

.zib-red-packet-style-purple .zib-red-packet-btn {
    background: linear-gradient(135deg, #d3adf7 0%, #c084fc 100%);
    color: #391085;
    box-shadow: 0 2px 8px rgba(192, 132, 252, 0.4);
}

.zib-red-packet-style-purple .zib-red-packet-btn:hover {
    box-shadow: 0 4px 12px rgba(192, 132, 252, 0.6);
}

.zib-red-packet-style-purple .zib-red-packet-record-amount {
    color: #d3adf7;
}

.zib-red-packet-style-gold .zib-red-packet-container {
    background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
    box-shadow: 0 4px 12px rgba(250, 173, 20, 0.3);
}

.zib-red-packet-style-gold .zib-red-packet-container::before {
    background: linear-gradient(90deg, #ffecb3, #ffe58f, #ffecb3);
}

.zib-red-packet-style-gold .zib-red-packet-header {
    color: #fffbe6;
}

.zib-red-packet-style-gold .zib-red-packet-btn {
    background: linear-gradient(135deg, #ffecb3 0%, #ffe58f 100%);
    color: #874d00;
    box-shadow: 0 2px 8px rgba(255, 229, 143, 0.4);
}

.zib-red-packet-style-gold .zib-red-packet-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 229, 143, 0.6);
}

.zib-red-packet-style-gold .zib-red-packet-record-amount {
    color: #ffecb3;
}
