/* --- 斗罗大陆主题UI --- */
.ctn-dldl {
    font-family: 'Microsoft YaHei', 'SimSun', sans-serif;
    background: radial-gradient(circle, #f0e6d2, #e6d8b8);
    border: 2px solid #b38b4c;
    border-radius: 12px;
    padding: 10px;
    color: #4a3c28;
    box-shadow: 0 4px 15px rgba(120, 80, 30, 0.3);
    position: relative;
    overflow: hidden;
}
.ctn-dldl::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNNTAsMiBDMzAsMTIgMjAsMzAgMiA1MCAxMiw3MCAzMCw5MCA1MCw5OCBDNzAsOTAgODAsNzAgOTgsNTAgODgsMzAgNzAsMTIgNTAsMiBaIE01MCwxMCBDNjgsMjAgNzgsMzUgODYsNTAgNzgsNjUgNjgsODAgNTAsOTAgMzIsODAgMjIsNjUgMTQsNTAgMjIsMzUgMzIsMjAgNTAsMTAgWiIgZmlsbD0icmdiYSgxOTksIDE2MiwgOTgsIDAuMikiLz48L3N2Zz4=) no-repeat;
    background-size: contain;
    opacity: 0.5;
    transform: rotate(15deg);
}
.ctn-dldl::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNNTAsMiBDMzAsMTIgMjAsMzAgMiA1MCAxMiw3MCAzMCw5MCA1MCw5OCBDNzAsOTAgODAsNzAgOTgsNTAgODgsMzAgNzAsMTIgNTAsMiBaIE01MCwxMCBDNjgsMjAgNzgsMzUgODYsNTAgNzgsNjUgNjgsODAgNTAsOTAgMzIsODAgMjIsNjUgMTQsNTAgMjIsMzUgMzIsMjAgNTAsMTAgWiIgZmlsbD0icmdiYSgxOTksIDE2MiwgOTgsIDAuMikiLz48L3N2Zz4=) no-repeat;
    background-size: contain;
    opacity: 0.5;
    transform: rotate(-30deg);
}
.dldl-section {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #d4bda1;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.dldl-section:last-child {
    margin-bottom: 0;
}
.dldl-section[open] {
    box-shadow: 0 2px 8px rgba(120, 80, 30, 0.15);
}
.dldl-section summary {
    padding: 12px 20px;
    font-weight: bold;
    font-size: 16px;
    color: #6d5b3f;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to top, #e6d8b8, #f0e6d2);
    border-bottom: 1px solid #d4bda1;
}
.dldl-section[open] summary {
    border-bottom-color: transparent;
}
.dldl-section summary::-webkit-details-marker {
    display: none;
}
.dldl-section summary::before {
    content: '▶';
    font-size: 12px;
    margin-right: 10px;
    color: #b38b4c;
    transition: transform 0.3s ease;
}
.dldl-section[open] > summary::before {
    transform: rotate(90deg);
}
.dldl-content, .dldl-options, .dldl-content-grid, .dldl-table-container {
    padding: 15px;
    line-height: 1.7;
}
.main-body {
    padding: 15px;
    line-height: 1.7;
}
.dldl-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.dldl-grid-item {
    background: #fdf9f0;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e6d8b8;
}
.dldl-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 5px 0;
    font-size: 14px;
}
.dldl-progress-container {
    margin: 15px 0;
}
.dldl-progress-label {
    font-size: 14px;
    margin-bottom: 5px;
}
.dldl-progress-bar {
    width: 100%;
    height: 18px;
    background-color: #e6d8b8;
    border-radius: 9px;
    border: 1px solid #c7a77d;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.dldl-progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ffd700, #ffec8b);
    border-radius: 9px;
    transition: width 0.5s ease-in-out;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.dldl-sub-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #d4bda1;
}
.dldl-sub-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.dldl-sub-section > p {
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #8c7352;
}
.dldl-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}
.dldl-list li {
    padding: 8px 12px;
    background: rgba(253, 249, 240, 0.7);
    border-radius: 4px;
    margin-bottom: 5px;
    border-left: 3px solid #c7a77d;
}
.dldl-scroll-box {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}
.dldl-scroll-box::-webkit-scrollbar { width: 8px; }
.dldl-scroll-box::-webkit-scrollbar-track { background: #e6d8b8; border-radius: 4px; }
.dldl-scroll-box::-webkit-scrollbar-thumb { background: #b38b4c; border-radius: 4px; }
.dldl-scroll-box::-webkit-scrollbar-thumb:hover { background: #a17c45; }
.dldl-npc-card {
    background: #fdf9f0;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e6d8b8;
}
.dldl-npc-card ul { padding-left: 20px; list-style-type: disc; }
.dldl-npc-card ul li { padding: 0; background: none; border: none; }
.dldl-divider {
    border: none;
    border-top: 1px solid #d4bda1;
    margin: 20px 0;
}
.dldl-table-container {
    overflow-x: auto;
}
.dldl-table-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 10px;
}
.dldl-table-container th, .dldl-table-container td {
    padding: 10px;
    text-align: left;
    border: 1px solid #d4bda1;
}
.dldl-table-container th {
    background-color: #e6d8b8;
    font-weight: bold;
    color: #6d5b3f;
}
.dldl-table-container tr:nth-child(even) {
    background-color: rgba(253, 249, 240, 0.7);
}
.dldl-options {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dldl-options li {
    padding: 12px 15px;
    background: linear-gradient(to right, #fdf9f0, #f8f2e6);
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #e6d8b8;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 35px;
}
.dldl-options li:last-child { margin-bottom: 0; }
.dldl-options li::before {
    counter-increment: option-counter;
    content: counter(option-counter);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #b38b4c;
    font-weight: bold;
}
.dldl-options { counter-reset: option-counter; }
.dldl-options li:hover {
    background: linear-gradient(to right, #e6d8b8, #f0e6d2);
    border-color: #c7a77d;
    color: #4a3c28;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(120, 80, 30, 0.2);
}
@media (max-width: 768px) {
    .ctn-dldl {
        padding: 5px;
    }
    .dldl-section summary {
        padding: 10px 15px;
        font-size: 15px;
    }
    .dldl-content, .dldl-options, .dldl-content-grid, .dldl-table-container {
        padding: 10px;
    }
    .dldl-info-bar {
        font-size: 13px;
        gap: 10px;
    }
}