/* --- [1111] Relink UX 万能美化内核：杜鹃婚约版 --- */

/* 1. 全局容器与折叠样式 */
.dark-to-light-paper {
    background: #ffffff !important;
    border: 2px solid #2d3436 !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
    box-shadow: 8px 8px 0px #2d3436 !important; /* 经典1111硬阴影 */
    overflow: hidden !important;
    font-family: 'Segoe UI', 'PingFang SC', sans-serif !important;
    transition: transform 0.2s ease !important;
}

.dark-to-light-paper:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 10px 10px 0px #ff7675 !important;
}

.dark-to-light-paper summary {
    padding: 14px 20px !important;
    font-weight: 900 !important;
    font-size: 1.1em !important;
    background: #2d3436 !important;
    color: #fff !important;
    list-style: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.dark-to-light-paper summary::after {
    content: '➔' !important;
    transition: transform 0.3s !important;
}

.dark-to-light-paper[open] summary::after {
    transform: rotate(90deg) !important;
}

/* 2. 手机模拟器美化 */
.device-phone-case {
    background: linear-gradient(145deg, #2d3436, #000000) !important;
    border-radius: 35px !important;
    padding: 15px !important;
    border: 4px solid #636e72 !important;
    box-shadow: inset 0 0 15px rgba(255,255,255,0.1) !important;
}

.phone-screen-layout {
    background: #dfe6e9 !important;
    border-radius: 20px !important;
    border: 3px solid #000 !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2) !important;
}

.phone-widget {
    border: 2px solid #2d3436 !important;
    box-shadow: 3px 3px 0px #2d3436 !important;
    background: #fff !important;
}

.status-bar {
    background: #ff7675 !important;
    color: #fff !important;
    border-radius: 0 0 10px 10px !important;
}

/* 3. 角色档案美化 (1111 极秘风格) */
.anime-dossier {
    background-color: #f9f9f9 !important;
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px) !important;
    background-size: 15px 15px !important;
    border: 2px solid #2d3436 !important;
    margin: 15px !important;
    padding: 20px !important;
    position: relative !important;
}

/* 胶带效果 */
.tape {
    background: rgba(255, 234, 167, 0.7) !important;
    border-left: 1px dashed rgba(0,0,0,0.1) !important;
    border-right: 1px dashed rgba(0,0,0,0.1) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* 订书钉效果 */
.dossier-sidebar::before {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    width: 20px !important;
    height: 4px !important;
    background: #b2bec3 !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

.d-item {
    border: 1px solid #2d3436 !important;
    border-radius: 0px !important; /* 1111 风格偏好直角 */
    background: #fff !important;
    box-shadow: 2px 2px 0px #2d3436 !important;
}

.highlight-box {
    background: #ffeaa7 !important;
    border: 2px solid #fab1a0 !important;
}

.stamp-confidential {
    border: 3px double #d63031 !important;
    color: #d63031 !important;
    font-size: 18px !important;
    padding: 5px 10px !important;
    background: rgba(214, 48, 49, 0.05) !important;
}

/* 4. Galgame 选项框美化 */
.light-gal-choices {
    background: rgba(45, 52, 54, 0.95) !important;
    border: 3px solid #fd79a8 !important;
    padding: 25px !important;
    box-shadow: 0 0 20px rgba(253, 121, 168, 0.3) !important;
}

.light-choice-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-left: 5px solid #fd79a8 !important;
    padding: 12px 20px !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
    position: relative !important;
    overflow: hidden !important;
}

.light-choice-item:hover {
    background: #fd79a8 !important;
    color: #fff !important;
    transform: translateX(10px) !important;
    box-shadow: -5px 0 15px rgba(253, 121, 168, 0.5) !important;
}

/* 选项扫光动画 */
.light-choice-item::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 50% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: 0.5s !important;
}

.light-choice-item:hover::after {
    left: 100% !important;
}

.choice-arrow {
    color: #fab1a0 !important;
    text-shadow: 0 0 5px #fd79a8 !important;
}

/* 
 * 杜鹃的婚约 - 恋爱修罗场 UI CSS
 * 包含：折叠面板、手机UI、档案夹、记忆归档、选项框
 */

/* 基础折叠面板样式 */
.dark-to-light-paper {
    background: #fdfaf5;
    border: 1px solid #e0d8c8;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
}

.dark-to-light-paper summary {
    padding: 12px 16px;
    font-weight: bold;
    cursor: pointer;
    background: #f4eee1;
    border-bottom: 1px dashed #d4c5b0;
    list-style: none;
    position: relative;
    user-select: none;
}

.dark-to-light-paper summary::-webkit-details-marker {
    display: none;
}

.dark-to-light-paper summary::before {
    content: "▼";
    position: absolute;
    right: 16px;
    font-size: 12px;
    color: #8c7e6a;
    transition: transform 0.3s ease;
}

.dark-to-light-paper[open] summary::before {
    transform: rotate(180deg);
}

.dark-to-light-paper blockquote {
    font-size: 0.9em;
    color: #887a68;
    font-style: italic;
    margin: 12px 16px;
    padding-left: 10px;
    border-left: 3px solid #d4c5b0;
}

/* 手机屏幕 UI */
.device-phone-case {
    background: #111;
    border-radius: 24px;
    padding: 12px 8px;
    margin: 16px auto;
    max-width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2), inset 0 0 5px rgba(255,255,255,0.2);
}

.phone-top-bar {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 10px;
    padding: 0 12px 6px;
}

.phone-screen-layout {
    background: #f0f2f5;
    border-radius: 16px;
    height: 400px;
    overflow-y: auto;
    padding: 12px;
}

.phone-widget {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.status-bar {
    text-align: center;
    font-size: 0.85em;
    font-weight: bold;
    color: #555;
    background: #e8f0fe;
}

.highlight-info {
    color: #1a73e8;
}

.widget-title {
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
    color: #444;
}

.badge-new, .badge-hot, .badge-unread {
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 10px;
    color: #fff;
    vertical-align: text-top;
}
.badge-new { background: #ff4d4f; }
.badge-hot { background: #fa8c16; }
.badge-unread { background: #52c41a; }

.app-item {
    font-size: 0.85em;
    margin-bottom: 6px;
    line-height: 1.4;
    color: #555;
}

.tag-hot, .tag-top {
    font-size: 0.75em;
    padding: 1px 4px;
    border-radius: 4px;
    margin-right: 4px;
    color: #fff;
}
.tag-hot { background: #eb2f96; }
.tag-top { background: #f5222d; }

.sms-bubble {
    background: #e6f7ff;
    border-radius: 8px;
    padding: 8px;
    font-size: 0.85em;
}
.sms-sender { font-size: 0.9em; margin-bottom: 4px; }
.sms-time { color: #999; font-size: 0.8em; float: right; }

/* 角色极秘档案 UI */
.anime-dossier {
    background: #faf8f5;
    border: 2px solid #5a5a5a;
    padding: 16px;
    margin: 16px;
    position: relative;
    background-image: radial-gradient(#d4c5b0 1px, transparent 1px);
    background-size: 20px 20px;
}

.tape {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 100px;
    height: 25px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border-left: 1px dashed rgba(0,0,0,0.1);
    border-right: 1px dashed rgba(0,0,0,0.1);
}

.dossier-layout {
    display: flex;
    gap: 16px;
}

.dossier-sidebar {
    width: 100px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dossier-photo-box {
    width: 80px;
    height: 100px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 4px;
    position: relative;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.1);
}

.paper-clip {
    position: absolute;
    top: -8px;
    left: 10px;
    width: 12px;
    height: 25px;
    border: 2px solid #888;
    border-radius: 6px;
    background: transparent;
    z-index: 2;
}

.photo-placeholder {
    width: 100%;
    height: 70px;
    background: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-label {
    text-align: center;
    font-size: 10px;
    margin-top: 4px;
    font-weight: bold;
    color: #666;
}

.character-motif {
    font-size: 24px;
    margin-top: 8px;
}

.stamp-confidential, .stamp-target {
    margin-top: 16px;
    border: 2px solid #d9363e;
    color: #d9363e;
    font-weight: bold;
    font-size: 14px;
    padding: 4px;
    text-align: center;
    transform: rotate(-15deg);
    border-radius: 4px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.dossier-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-grow: 1;
}

.d-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    padding: 6px 10px;
    font-size: 0.85em;
    border-radius: 4px;
    flex: 1 1 calc(50% - 8px);
    box-sizing: border-box;
}

.d-full {
    flex: 1 1 100%;
}

.d-item strong {
    color: #333;
}

.highlight-box {
    background: #fff3e0;
    border-color: #ffb74d;
    box-shadow: inset 0 0 5px rgba(255, 183, 77, 0.2);
}

/* 记忆归档 UI */
.yukinoshita-file {
    background: #fff;
    padding: 16px;
    margin: 16px;
    border-left: 4px solid #8c7e6a;
    background-image: linear-gradient(#e5e5e5 1px, transparent 1px);
    background-size: 100% 24px;
    line-height: 24px;
    font-family: "Kaiti", "STKaiti", serif; /* 模拟手写/印刷体 */
}

.file-rule {
    font-size: 0.8em;
    color: #d9363e;
    background: rgba(217, 54, 62, 0.1);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    line-height: 1.5;
    font-family: sans-serif;
}

.handwritten-log p {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 0.95em;
}

/* 选项分支 UI */
.light-gal-choices {
    position: relative;
    padding: 20px;
    background: rgba(0, 0, 0, 0.75);
    margin: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gal-ui-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
}
.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

.light-choice-item {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    border-left: 3px solid #61dafb;
    color: #fff;
    padding: 10px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.light-choice-item:hover {
    background: linear-gradient(90deg, rgba(97,218,251,0.3) 0%, rgba(255,255,255,0) 100%);
    padding-left: 20px;
    border-left-color: #fff;
}

.choice-arrow {
    color: #61dafb;
    margin-right: 8px;
}