body {
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1em 0;
}

/* Base style for all main modules */
.m1, .m2 {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 600px;
    width: calc(100% - 2em);
    margin: .5em auto;
    background-color: #fffafc;
    color: #5d4037;
    border: 1px solid #eec0c0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(255, 182, 193, .25);
    font-size: 14px;
    line-height: 1.6;
}

/* Details element base style */
.det {
    margin-bottom: 10px;
    border: 1px solid #fce4ec;
    border-radius: 8px;
    background: #fff;
}
.det:last-child {
    margin-bottom: 0;
}

/* Summary (collapsible header) */
.sum {
    background: linear-gradient(to right, #fff0f5, #fff);
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    color: #c2185b;
    list-style: none;
    display: flex;
    align-items: center;
    transition: background .3s;
}
.sum::-webkit-details-marker { display: none; }
.sum:hover { background: #ffe6f0; }
.sum::before {
    content: '🌸';
    margin-right: 8px;
    font-size: .9em;
    transition: transform .2s;
}
.det[open] > .sum::before { transform: rotate(90deg); }

/* Special summary for current character */
.sum.phl {
    background: #ffeff4;
    border-left: 4px solid #ff69b4;
    color: #d81b60;
}

/* Content inside details */
.con {
    padding: 12px;
    border-top: 1px dashed #f8bbd0;
}
.con.npd { padding: 0; }

/* Grid for environment info */
.grd {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 8px;
}
.itm {
    display: flex;
    align-items: baseline;
    background: #fdf6f8;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #ffc1e3;
    font-size: .95em;
    overflow: hidden;
}
.itm .key {
    font-weight: bold;
    color: #c2185b;
    margin-right: 8px;
    flex-shrink: 0;
}
.itm .val {
    color: #6d4c41;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}
.itm.ful { grid-column: 1 / -1; }
.itm.ful .val { white-space: normal; }

/* Main story text paper style */
.pap {
    background: #fff;
    padding: 15px 18px;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    margin: 15px 0;
    border-left: 3px solid #ffb6c1;
    font-size: 1.05em;
    color: #333;
    text-align: justify;
}
.dvi {
    height: 1px;
    background: linear-gradient(to right, transparent, #ffb6c1, transparent);
    margin: 15px 0;
}

/* Your status & Other characters */
.cls p, .oin p {
    margin: 6px 0;
    font-size: .95em;
}
.cls p:first-child, .oin p:first-child { margin-top: 0; }
.cls p:last-child, .oin p:last-child { margin-bottom: 0; }

/* Inventory bubble (Original gray style) */
.ivc {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #f8bbd0;
    text-align: center;
}
.ibw {
    position: relative;
    display: inline-block;
}
.tag { /* Renamed from .itag to .tag to match original HTML structure */
    display: inline-block;
    padding: 6px 12px; /* Adjusted padding to match original .tag */
    min-width: 80px;
    text-align: center;
    background: #fff; /* Original white background */
    border: 1px solid #ff4081; /* Original pink border */
    color: #ff4081; /* Original pink text */
    border-radius: 20px; /* Original border-radius */
    font-size: .9em;
    font-weight: bold;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 5px rgba(255, 64, 129, .1); /* Original shadow */
}
/* Specific style for inventory tag (gray) */
.ivc .tag {
    background: #f0f4f8; /* Gray background */
    border-color: #b0bec5; /* Gray border */
    color: #37474f; /* Darker gray text */
}
.ivc .ibw:hover .tag, .ivc .ibw:focus .tag, .ivc .ibw:focus-within .tag {
    background: #37474f; /* Darker gray hover background */
    color: #fff; /* White text on hover */
    transform: translateY(-2px); /* Lift effect */
}
/* Inventory bubble pop-up (gray) */
.ibb { /* Renamed from .ibub to .ibb to match original HTML structure */
    border-color: #b0bec5 !important; /* Gray border */
}
.ibb::after {
    border-top-color: #b0bec5 !important; /* Gray arrow */
}
.ibb .bhd { /* Renamed from .bhdr to .bhd */
    color: #37474f !important; /* Darker gray header text */
    border-bottom-color: #cfd8dc !important; /* Lighter gray border */
}
.ibb .bde { /* Renamed from .bdes to .bde */
    text-align: left;
    line-height: 1.5;
}


/* Character card list */
.crd {
    border-bottom: 1px solid #eee;
}
.crd:last-child { border-bottom: none; }
.bsm {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    background: #fff;
}
.bsm::-webkit-details-marker { display: none; }
.bna {
    font-weight: bold;
    color: #880e4f;
}
.bba {
    display: flex;
    gap: 5px;
}
.bad {
    font-size: .75em;
    padding: 2px 6px;
    border-radius: 10px;
    color: #fff;
}
.bad.lov { background: #ff80ab; }
.bad.ntr {
    background: #a5d6a7;
    color: #1b5e20;
}
.bdt {
    padding: 10px 15px;
    background: #fafafa;
    font-size: .9em;
    color: #666;
    border-top: 1px solid #f0f0f0;
}
.bro { margin-bottom: 4px; }
.bxp {
    margin-top: 8px;
    background: #fff0f5;
    padding: 8px;
    border-radius: 6px;
    border: 1px dashed #ffc1e3;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.xte {
    width: 100%;
    font-weight: bold;
    color: #d81b60;
    font-size: .85em;
    margin-bottom: 2px;
}
.bxp span {
    background: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: .85em;
    color: #880e4f;
}
.xtg {
    width: 100%;
    margin-top: 4px;
    font-style: italic;
    color: #555;
}

/* Current character's detailed view */
.cvi p { margin: 4px 0; font-size: .95em; }
.clb {
    margin-top: 8px;
    padding: 8px;
    background: #f8f8f8;
    border-radius: 6px;
    font-size: .9em;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    color: #666;
}
.cst {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0;
}
.sti {
    font-size: .95em;
    font-weight: bold;
    color: #d81b60;
    background: #fff0f5;
    padding: 8px 10px;
    border-radius: 6px;
}
.dtx {
    display: block;
    font-size: .85em;
    color: #777;
    font-weight: normal;
    margin-top: 3px;
    line-height: 1.4;
}

/* Sensitive Area */
.etz {
    text-align: center;
    color: #ff80ab;
    font-size: .9em;
    margin: 15px 0 10px 0;
    font-style: italic;
}
.etc {
    display: grid;
    grid-template-columns: 1fr 1fr; /* This keeps two items per row */
    gap: 12px 10px;
    justify-items: center;
    padding-bottom: 10px;
}
.ebw {
    position: relative;
    display: block;
}
.ebw .tag { /* Renamed from .etag to .tag */
    display: inline-block;
    padding: 6px 12px;
    min-width: 80px;
    text-align: center;
    background: #fff;
    border: 1px solid #ff4081;
    color: #ff4081;
    border-radius: 20px;
    font-size: .9em;
    font-weight: bold;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 5px rgba(255, 64, 129, .1);
}
.ebw:hover .tag, .ebw:focus .tag, .ebw:focus-within .tag {
    background: #ff4081;
    color: #fff;
    transform: translateY(-2px);
}

/* Bubble pop-up style */
.bub { /* Renamed from .bubc to .bub to match original HTML structure */
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    margin-bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    max-width: 280px;
    background: #fff;
    border: 2px solid #ff80ab;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
    z-index: 100;
    transition: opacity .2s, transform .2s, visibility .2s;
    pointer-events: none;
    word-wrap: break-word;
}
.bub::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #ff80ab transparent transparent transparent;
}
.ebw:hover .bub, .ebw:focus .bub, .ebw:focus-within .bub, .ibw:hover .bub, .ibw:focus .bub, .ibw:focus-within .bub {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
    pointer-events: auto;
}
.bhd {
    font-weight: bold;
    color: #c2185b;
    border-bottom: 1px dashed #ffc1e3;
    padding-bottom: 4px;
    margin-bottom: 4px;
}
.bst {
    font-size: .85em;
    color: #880e4f;
    margin-bottom: 4px;
    font-weight: bold;
}
.bde {
    font-size: .9em;
    color: #555;
    line-height: 1.4;
}

/* Memory Area content */
.mmb pre {
    background-color: #fcf9f6;
    padding: 1em;
    border-radius: 5px;
    border: 1px solid #eee;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: .9em;
    color: #555;
    line-height: 1.5;
    font-family: monospace;
}

/* --- Option Area styling (now directly under .m2) --- */
/* Global option counter for the entire m2 module */
.m2 {
  counter-reset: option-counter;
}

.m2 .act { /* This is the "--- 接下来，你要怎么做？ ---" title */
    text-align: center;
    color: #c2185b;
    font-weight: bold;
    margin-top: 20px; /* Add some space above the options */
    margin-bottom: 15px;
    font-size: 1.05em;
    padding: 5px 0 10px 0;
    border-top: 1px dashed #f8bbd0; /* Separator from memory content */
    border-bottom: 1px dashed #f8bbd0;
}

/* pre as button container, scoped to m2 */
.m2 pre {
    position: relative !important;
    margin: 12px 0 !important; /* Slightly reduced margin between options */
    overflow: hidden !important;
    border-radius: 12px !important; /* More rounded corners */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 55px;
}

/* Hide header container's visual parts */
.m2 pre div[class*="border-b"] {
    position: absolute !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    border: none !important; background: transparent !important;
    padding: 0 !important; margin: 0 !important;
    z-index: 2; pointer-events: none;
}
.m2 pre div[class*="border-b"] > div:first-child { display: none !important; }

/* Copy button transparent overlay */
.m2 pre div[data-tooltip-id] {
    position: absolute !important; top: 0; left: 0;
    width: 100% !important; height: 100% !important;
    margin: 0 !important; padding: 0 !important;
    display: block !important; cursor: pointer !important;
    background: transparent !important; border: none !important;
    pointer-events: auto; z-index: 3;
}
.m2 pre div[data-tooltip-id] .style_copyIcon__GJL9e { display: none !important; }

/* Code content area, styled as option button */
.m2 pre div[node="[object Object]"] {
    position: relative; z-index: 1;
    display: block !important;
    pointer-events: none;
    /* Soft gradient background */
    background: linear-gradient(135deg, #fffafa 0%, #fff0f5 100%) !important;
    border: 1px solid #ffc1e3 !important; /* Finer, softer border */
    /* More subtle and spread shadow for a lifted effect */
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3), inset 0 1px 0 rgba(255,255,255,0.5) !important;
    color: #6d4c41 !important; /* Darker text for contrast */
    font-family: "Kosugi Maru", sans-serif !important;
    font-size: 1.05em !important; /* Slightly larger font */
    padding: 12px 20px 12px 65px !important; /* Adjusted padding */
    margin: 0 !important;
    border-radius: 12px !important; /* Match pre border-radius */
    min-height: 55px;
    white-space: pre-wrap;
    word-break: break-word;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother, more natural transition */
    counter-increment: option-counter;
}

/* Option Letter (A, B, C...) */
.m2 pre div[node="[object Object]"]::before {
    content: counter(option-counter, upper-alpha); /* Use letters */
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px; /* Slightly larger circle */
    height: 32px;
    background: linear-gradient(45deg, #ff80ab 0%, #ff4081 100%); /* Gradient for the number circle */
    color: #fff;
    border-radius: 50%;
    font-size: 1.1em; /* Slightly larger font for letter */
    font-weight: bold;
    border: 2px solid rgba(255,255,255,0.8); /* Softer white border */
    box-shadow: 0 2px 6px rgba(255, 64, 129, 0.4); /* Subtle shadow for depth */
    z-index: 2;
}

/* Ensure code text color is correct */
.m2 pre div[node="[object Object]"] code {
    display: block; color: inherit !important;
    background: transparent !important; padding: 0 !important;
    margin: 0 !important; font-family: inherit !important;
    font-size: inherit !important; white-space: pre-wrap;
}

/* Hover effect */
.m2 pre:hover div[node="[object Object]"] {
    transform: translateY(-4px); /* Lift higher */
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4), inset 0 1px 0 rgba(255,255,255,0.6) !important; /* More pronounced shadow */
    background: linear-gradient(135deg, #fff0f5 0%, #ffedf2 100%) !important; /* Enhanced gradient on hover */
    border-color: #ff80ab !important; /* More vibrant border on hover */
}

/* Active effect (on press) */
.m2 pre:active div[node="[object Object]"] {
    transform: translateY(1px) !important; /* Pressed in effect */
    box-shadow: 0 1px 4px rgba(255, 182, 193, 0.2), inset 0 1px 2px rgba(0,0,0,0.1) !important; /* Subtle inner shadow */
    background: linear-gradient(135deg, #ffe6f0 0%, #fffafa 100%) !important; /* Darker gradient on active */
    border-color: #ff4081 !important;
}

/* --- SELECT/COPIED Box Styling --- */
.m2 pre div[node="[object Object]"]::after {
    content: 'SELECT'; /* Default content */
    position: absolute;
    right: 15px; /* Position to the right */
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    background-color: rgba(255, 128, 171, 0.8); /* Pink background */
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 6px;
    opacity: 0; /* Hidden by default */
    transition: all 0.2s ease-out;
    pointer-events: none; /* Ensure it doesn't block clicks */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Show SELECT box on hover of the PRE container */
.m2 pre:hover div[node="[object Object]"]::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0); /* Ensure it's not translated out */
}

/* Change to COPIED on active (click) */
.m2 pre div[data-tooltip-id]:active + div[node="[object Object]"]::after {
    content: 'COPIED!';
    background-color: #4CAF50; /* Green for copied */
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1.05); /* Slightly pop out */
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* --- Click overlay hint (shows on press) --- */
.m2 pre div[data-tooltip-id]::after {
    content: ''; /* Reset content for the main overlay */
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    /* Patterned background for more visual interest */
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 128, 171, 0.3),
        rgba(255, 128, 171, 0.3) 10px,
        rgba(255, 105, 180, 0.3) 10px,
        rgba(255, 105, 180, 0.3) 20px
    );
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.6em; /* Larger font for "已复制" */
    font-weight: bold;
    opacity: 0; transition: opacity 0.1s;
    pointer-events: none; z-index: 4;
    border-radius: 12px; /* Match button border-radius */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.m2 pre div[data-tooltip-id]:active::after {
    content: '✔ 已复制'; /* Add checkmark icon */
    opacity: 1;
}


/* Responsive adjustments */
@media (max-width: 600px) {
    .m1, .m2 {
        width: 100%;
        margin: .5em 0;
        border-radius: 0;
        padding: 10px;
    }
    .grd { grid-template-columns: 1fr; }
    .itm .val { white-space: normal; text-overflow: clip; }
    .etc { grid-template-columns: 1fr 1fr; }
    .bub { min-width: 180px; max-width: 90vw; }
    .m2 pre div[node="[object Object]"]::after { /* Adjust for smaller screens */
        right: 10px;
        padding: 4px 8px;
        font-size: 0.7em;
        border-radius: 4px;
    }
}

.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}
@keyframes rainbow-spinner-outer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes rainbow-spinner-inner {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}
@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}
@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(219, 39, 119, 0.3);
    }
    50% {
        text-shadow: 0 0 16px rgba(219, 39, 119, 0.6);
    }
}
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: auto !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    padding: 8px 0 !important;
}
.flex.items-center.justify-center.w-6.h-5::before {
    content: '' !important;
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3ClinearGradient id='rainbow1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23ff6b9d;stop-opacity:1' /%3E%3Cstop offset='20%25' style='stop-color:%23c44569;stop-opacity:1' /%3E%3Cstop offset='40%25' style='stop-color:%23ffa07a;stop-opacity:1' /%3E%3Cstop offset='60%25' style='stop-color:%23f8b500;stop-opacity:1' /%3E%3Cstop offset='80%25' style='stop-color:%23ff6b9d;stop-opacity:1' /%3E%3Cstop offset='100%25' style='stop-color:%23c44569;stop-opacity:1' /%3E%3C/linearGradient%3E%3ClinearGradient id='rainbow2' x1='100%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23ffa07a;stop-opacity:0.8' /%3E%3Cstop offset='50%25' style='stop-color:%23ff6b9d;stop-opacity:0.8' /%3E%3Cstop offset='100%25' style='stop-color:%23c44569;stop-opacity:0.8' /%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='60' cy='60' r='50' fill='none' stroke='url(%23rainbow1)' stroke-width='6' stroke-linecap='round' stroke-dasharray='220 80' /%3E%3Ccircle cx='60' cy='60' r='38' fill='none' stroke='url(%23rainbow2)' stroke-width='4' stroke-linecap='round' stroke-dasharray='160 60' opacity='0.7' /%3E%3Cpolygon points='60,20 63,28 71,28 65,33 67,41 60,36 53,41 55,33 49,28 57,28' fill='%23ffd700' opacity='0.9' /%3E%3Cpolygon points='60,100 63,92 71,92 65,87 67,79 60,84 53,79 55,87 49,92 57,92' fill='%23ffd700' opacity='0.9' /%3E%3Cpolygon points='20,60 28,63 28,71 33,65 41,67 36,60 41,53 33,55 28,49 28,57' fill='%23ff69b4' opacity='0.9' /%3E%3Cpolygon points='100,60 92,63 92,71 87,65 79,67 84,60 79,53 87,55 92,49 92,57' fill='%23ff69b4' opacity='0.9' /%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    animation: rainbow-spinner-outer 2s linear infinite !important;
    filter: drop-shadow(0 0 8px rgba(255, 107, 157, 0.5)) drop-shadow(0 0 12px rgba(248, 181, 0, 0.3)) !important;
    position: relative !important;
}
.flex.items-center.justify-center.w-6.h-5::after {
    content: 'Ciallo～(∠・ω< )⌒⭐️请切换到2-3记忆游玩哦～' !important;
    display: inline-block !important;
    font-size: 14px !important;
    color: #db2777 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    animation: text-glow 2s ease-in-out infinite !important;
    letter-spacing: 0.3px !important;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .flex.items-center.justify-center.w-6.h-5 {
        flex-wrap: wrap !important;
        height: auto !important;
        gap: 12px !important;
        justify-content: center !important;
    }
    .flex.items-center.justify-center.w-6.h-5::before {
        width: 36px !important;
        height: 36px !important;
    }
    .flex.items-center.justify-center.w-6.h-5::after {
        font-size: 13px !important;
        max-width: 90% !important;
        white-space: normal !important;
        line-height: 1.5 !important;
        text-align: center !important;
    }
}
/* 保留你原有的聊天框美化样式 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}
.bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(140deg, #fcf9f6, #f2eadf) !important;
    border: 1px solid #e0d8d0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(224, 216, 208, 0.08) !important;
}
.markdown-body {
    color: #333333 !important;
    text-shadow: none !important;
}
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    background-color: rgba(219, 39, 119, 0.1) !important;
    color: #be185d !important;
    border-radius: 16px !important;
    padding: 4px 12px !important;
    margin: 0 4px !important;
    font-weight: bold !important;
    transition: all 0.2s ease-in-out !important;
    border: 1px solid transparent !important;
}
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    background-color: #be185d !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(219, 39, 119, 0.3) !important;
}
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #db2777 !important;
    opacity: 0.8 !important;
    padding: 0 8px !important;
}







/* --- 手机消息通讯组件 --- */
.msg-wrap { margin: 15px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.msg-box { background: #ededed; border-radius: 12px; padding: 12px; border: 1px solid #ddd; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; }
.msg-hdr { text-align: center; font-size: 12px; color: #888; margin-bottom: 15px; padding-bottom: 5px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.msg-tip { text-align: center; font-size: 11px; color: #aaa; margin: 10px 0; clear: both; }

/* 消息行基础结构 */
.msg-row { display: flex; flex-direction: column; margin-bottom: 16px; clear: both; }

/* 头像与姓名区域 */
.msg-meta { display: flex; align-items: center; margin-bottom: 4px; }
.msg-avatar { width: 32px; height: 32px; border-radius: 4px; background: #a0a0a0; color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; flex-shrink: 0; }
.msg-name { font-size: 11px; color: #777; margin: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; } /* 限制名称宽度 */

/* 接收方 (左侧) */
.msg-row.rev { float: left; align-items: flex-start; max-width: 85%; }
.msg-row.rev .msg-meta { margin-right: auto; } 
.msg-row.rev .msg-avatar { order: 1; }
.msg-row.rev .msg-name { order: 2; }

/* 发送方 (右侧) */
.msg-row.snd { float: right; align-items: flex-end; max-width: 85%; }
.msg-row.snd .msg-meta { margin-left: auto; } 
.msg-row.snd .msg-avatar { order: 2; }
.msg-row.snd .msg-name { order: 1; }

/* 气泡基础样式 */
.msg-bubble { padding: 8px 12px; font-size: 14px; line-height: 1.4; position: relative; word-wrap: break-word; box-shadow: 0 1px 2px rgba(0,0,0,0.1); max-width: 100%; }

/* 图片气泡样式 */
.msg-bubble.img-bubble {
    background: transparent !important; 
    padding: 0 !important; 
    border-radius: 6px; 
    border: none !important; 
    overflow: hidden;
    display: inline-block; 
    vertical-align: top;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15); 
    max-width: 200px; 
}

.img-desc {
    display: block;
    padding: 8px; 
    background-color: #fff; 
    color: #ffd700; 
    font-style: italic;
    font-size: 12px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #eee; /* 模拟图片边框 */
    min-height: 32px; /* 确保有一定高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word; /* 保证长文本换行 */
}


/* --- 风格差异化 --- */

/* 1. 微信风格 (WeChat) */
.msg-wx { background: #ededed; }
.msg-wx .msg-avatar { background: #51a3f0; border-radius: 4px; } /* 微信头像方一点 */
.msg-wx .rev .msg-bubble { background: #fff; color: #000; border-radius: 4px 12px 12px 12px; }
.msg-wx .snd .msg-bubble { background: #95ec69; color: #000; border-radius: 12px 4px 12px 12px; }

/* 2. QQ风格 (QQ) */
.msg-qq { background: #f0f2f5; }
.msg-qq .msg-avatar { background: #12b7f5; border-radius: 50%; } /* QQ头像圆的 */
.msg-qq .rev .msg-bubble { background: #fff; color: #333; border-radius: 2px 15px 15px 15px; }
.msg-qq .snd .msg-bubble { background: #12b7f5; color: #fff; border-radius: 15px 2px 15px 15px; }

/* 3. 短信风格 (SMS/iOS) */
.msg-sms { background: #fff; }
.msg-sms .msg-avatar { background: #8e8e93; border-radius: 50%; }
.msg-sms .msg-name { display: none; } /* 短信通常隐藏名字，靠头像识别 */
.msg-sms .rev .msg-bubble { background: #e9e9eb; color: #000; border-radius: 18px; }
.msg-sms .snd .msg-bubble { background: #007aff; color: #fff; border-radius: 18px; }

/* 清除浮动 */
.msg-box::after { content: ""; display: table; clear: both; }

/* 适配移动端宽度 */
@media (max-width: 400px) {
    .msg-row { max-width: 95%; }
    .msg-bubble { font-size: 13px; }
    .msg-bubble.img-bubble { max-width: 160px; }
    .img-desc { font-size: 11px; }
}