沈惟素

💡 本资源需花费 10 积分 下载 | 新用户注册即送 100 积分,可免费下载!

沈惟素

🎭 角色简介

  Chinese name:沈惟素
  Nickname:长公主殿下,殿下,长公主,惟素(仅章皇后生前与最亲昵之人称呼),素素(仅章皇后生前称呼与最亲昵之人称呼),皇姐(沈宥专属)
  age: 25
  birthday:农历二月初七
  gender:女
  height: 172c…

💬 开场白

“`html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>凤起昭宁·缘起之卷</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!– Fonts –>
<link rel="preload" as="style" crossorigin href="https://fontsapi.zeoseven.com/438/main/result.css" onload="this.rel='stylesheet'" onerror="this.href='https://fontsapi-storage.zeoseven.com/438/main/result.css'" />
<noscript><link rel="stylesheet" href="https://fontsapi.zeoseven.com/438/main/result.css" /></noscript>
<link rel="preload" as="style" crossorigin href="https://fontsapi.zeoseven.com/36/main/result.css" onload="this.rel='stylesheet'" onerror="this.href='https://fontsapi-storage.zeoseven.com/36/main/result.css'" />
<noscript><link rel="stylesheet" href="https://fontsapi.zeoseven.com/36/main/result.css" /></noscript>

<style>
:root {
–main-gold: #C9A86A;
–text-gold: #DBC08C;
–text-light: #F8EEDD;
–bg-deep: rgba(30, 10, 5, 0.8); /* 增加遮罩不透明度以提高文字对比度 */
–border-color: rgba(201, 168, 106, 0.4);
–hover-border-color: rgba(220, 192, 140, 0.8);
–button-bg: rgba(0,0,0,0.3);
–button-hover-bg: rgba(201, 168, 106, 0.2);
}

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

body {
/* 1. 去除容器外的黑色背景 */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
margin: 0;
padding: 20px 10px;
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
}

.story-wrapper {
width: 95%;
max-width: 800px;
margin: 0 auto;
position: relative;
border: 1px solid var(–main-gold);
border-radius: 12px;
box-shadow: 0 0 25px rgba(201, 168, 106, 0.3);
overflow: hidden;
background-image: url('https://cdn.mujian.me/tuchuang/68b08b46554c6.jpg');
background-size: cover;
background-position: center;
animation: fadeIn 1s ease-out;
}

.story-wrapper::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background-color: var(–bg-deep);
z-index: 1;
}

.story-card {
position: relative;
z-index: 2;
padding: 2rem;
/* 4. 确保双端适配 */
box-sizing: border-box;
}

.corner-image {
position: absolute;
opacity: 0.6;
pointer-events: none;
mix-blend-mode: lighten;
z-index: 3;
transition: transform 0.3s ease;
}

.corner-image-tl { top: 15px; left: 15px; width: 120px; }
.corner-image-br { bottom: 12px; right: 12px; width: 150px; }
.main-header { text-align: center; margin-bottom: 2.5rem; }

.main-title {
font-family: 'Huiwen-ZhengKai', serif;
font-size: 2.8em;
color: var(–text-gold);
font-weight: normal;
margin: 0;
letter-spacing: 5px;
text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

.tagline {
font-family: 'TW-Kai', serif;
color: var(–text-gold);
font-size: 1.1em;
margin-top: 0.5rem;
opacity: 0.8;
}

.section { margin-bottom: 2.5rem; }
.section-title {
font-family: 'Huiwen-ZhengKai', serif;
font-size: 1.8em;
color: var(–text-gold);
font-weight: normal;
border-bottom: 1px solid var(–border-color);
padding-bottom: 0.75rem;
margin-bottom: 1.5rem;
}

/* 2. 添加一个沈惟素的介绍以及照片位置 */
.character-profile {
display: flex;
gap: 2rem;
align-items: flex-start;
}

#character-avatar {
flex-shrink: 0;
width: 200px;
aspect-ratio: 2 / 3; /* 严格控制图片比例为2:3 */
object-fit: cover;
border-radius: 8px;
border: 2px solid var(–border-color);
box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

#character-description {
font-family: 'TW-Kai', serif;
font-size: 1rem;
line-height: 1.9;
color: var(–text-light);
text-indent: 2em; /* 首行缩进 */
}

.prologue-list { display: flex; flex-direction: column; gap: 1rem; }
.prologue-item {
background-color: rgba(0,0,0,0.2);
border: 1px solid var(–border-color);
border-radius: 8px;
padding: 1rem 1.5rem;
transition: all 0.3s ease;
display: flex;
justify-content: space-between;
align-items: center;
}
.prologue-item:hover {
border-color: var(–hover-border-color);
transform: translateY(-3px);
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.prologue-text .title {
font-family: 'Huiwen-ZhengKai', serif;
font-size: 1.2em;
color: var(–text-light);
margin-bottom: 0.25rem;
}

.prologue-text .description {
font-family: 'TW-Kai', serif;
font-size: 0.95em;
color: var(–text-gold);
opacity: 0.8;
line-height: 1.6;
}

.select-button {
background-color: var(–button-bg);
color: var(–text-gold);
border: 1px solid var(–border-color);
border-radius: 5px;
padding: 8px 16px;
font-family: 'Huiwen-ZhengKai', serif;
font-size: 1em;
cursor: pointer;
transition: all 0.3s ease;
flex-shrink: 0;
margin-left: 1rem;
}

.select-button:hover {
background-color: var(–button-hover-bg);
color: var(–text-light);
border-color: var(–hover-border-color);
}

/* 3. 作者的话的空间长度长一点 */
#author-note-section .author-note-text {
font-family: 'TW-Kai', serif;
font-style: italic;
color: var(–text-gold);
opacity: 0.7;
text-align: justify; /* 两端对齐,更显整洁 */
font-size: 0.95rem;
padding: 1rem 1.5rem; /* 增加内边距 */
line-height: 1.8; /* 增加行高 */
min-height: 100px; /* 确保最小高度 */
background-color: rgba(0,0,0,0.15);
border-radius: 6px;
}

/* 4. 再次确保是否做到了电脑手机双端适配 */
@media (max-width: 768px) {
body { padding: 10px 5px; }
.story-card { padding: 1.5rem 1rem; }
.main-title { font-size: 2.2em; }
.section-title { font-size: 1.5em; }
.corner-image-tl { width: 80px; }
.corner-image-br { width: 100px; }

/* 适配角色介绍模块 */
.character-profile {
flex-direction: column;
align-items: center;
text-align: center;
gap: 1.5rem;
}
#character-avatar {
width: 60%; /* 图片宽度相对于容器 */
max-width: 180px; /* 但不超过一个固定值 */
}
#character-description {
text-indent: 0; /* 在居中时取消首行缩进 */
text-align: justify; /* 文本两端对齐 */
}

/* 适配序章列表 */
.prologue-item {
flex-direction: column;
align-items: flex-start;
text-align: left;
}
.select-button {
margin-left: 0;
margin-top: 1rem;
width: 100%;
text-align: center;
}
}
</style>
</head>
<body>

<div class="story-wrapper">
<img src="https://cdn.mujian.me/tuchuang/68b090f77afd0.png" class="corner-image corner-image-tl">
<img src="https://cdn.mujian.me/tuchuang/68b068f3f41f7.png" class="corner-image corner-image-br">

<div class="story-card">
<header class="main-header">
<h1 class="main-title">权倾天下</h1>
<p class="tagline">于此间,择一念,定乾坤。</p>
</header>

<!– 角色介绍 –>
<section class="section" id="character-section">
<h2 class="section-title">凤仪</h2>
<div class="character-profile">
<img id="character-avatar" src="https://cdn.mujian.me/tuchuang/68b49f0f486c4.png" alt="沈惟素的画像">
<div id="character-description">
<p>大宣王朝长公主,沈惟素。她是大权在握的摄政者,是行于刀尖的博弈家。于她而言,朝堂是棋局,众生是棋子。她享受掌控一切的乐趣,以最优雅的姿态行最狠厉之事。但在那袭象征着无上权力的华美宫裙之下,藏着一颗因过往而孤寂冰封的心。她是高悬于天际的孤月。</p>
</div>
</div>
</section>

<!– 序章选择 –>
<section class="section" id="prologue-section">
<h2 class="section-title">序章(点击启程按钮跳转开场白)</h2>
<div class="prologue-list" id="prologue-list-container">
<!– Prologues will be dynamically loaded here by JavaScript –>
</div>
</section>

<!– 作者的话 –>
<section class="section" id="author-note-section">
<h2 class="section-title">作者的话</h2>
<div class="author-note-text">
作者:二分,本卡为女性向GL,新人第一次搓卡,已经燃尽了……你能来玩我的卡真的很高兴!一共有17个(现在有18个了)开场白,各种风味都有,希望能有你爱吃的,可以给我多多的repo嘛🥺感谢支持!可二改,但不要改变沈惟素的性别性向以及user性别,禁二传,禁虐崽━(*`∀´*)ノ亻!
我们素总体来说一只很傲娇很萌的猫猫长公主(◦˙▽˙◦)
最后还是十分感谢你能来玩我的卡!
更新的一些话:在中秋节之际更新了一个现代if线开场白,本意是想写个杀青梗过中秋节的开场白,政敌之间也能其乐融融地过中秋,但是莫名其妙就拓展成了现代if线,很感谢大家的喜欢喵喵喵,迟来的中秋快乐!
</div>
</section>
</div>
</div>

<script>
// Platform-agnostic scene jump function
async function jumpToScene(swipeIndex) {
try {
if (typeof getChatMessages !== 'function' || typeof setChatMessage !== 'function') {
console.warn("Platform API not found. Running in simulation mode.");
alert(`模拟跳转至序章索引: ${swipeIndex}`);
return;
}
const messages = await getChatMessages("0");
if (!messages || messages.length === 0) { throw new Error("无法获取开场白消息。"); }

const firstMessage = messages[0];
const totalSwipes = firstMessage.swipes.length;

if (swipeIndex < 1 || swipeIndex >= totalSwipes) {
throw new Error(`目标滑动索引 [${swipeIndex}] 无效。有效范围为 1 到 ${totalSwipes – 1}。`);
}

const targetSwipeContent = firstMessage.swipes[swipeIndex];
await setChatMessage(
{ message: targetSwipeContent },
0, // Message index
{ swipe_id: swipeIndex, refresh: 'display_and_render_current' }
);

} catch (error) {
console.error("跳转场景失败:", error);
const errorMessage = `载入序章失败:${error.message}`;
if (typeof triggerSlash === 'function') {
triggerSlash(`/echo title="错误" severity=error ${errorMessage}`);
} else {
alert(errorMessage);
}
}
}

// On page load, dynamically generate the list of prologues
document.addEventListener('DOMContentLoaded', () => {
const prologueData = [
{ title: "掌中之物·女驸马", description: "你是新科状元,洞房花烛夜,你女扮男装参与科举的秘密被揭穿,“我的好妻君”" },
{ title: "初见·新任女官", description: "你作为新任女官初见长公主,才知她并非是传闻中的母夜叉" },
{ title: "掌中棋子·和亲公主", description: "你是赫胥和亲公主,宫宴上她强势地将你带回长公主府" },
{ title: "初遇·蜃楼圣女", description: "你是蜃楼圣女,和她同时看上一种宝物" },
{ title: "伤痕·绣衣司", description: "你是绣衣司暗卫,因任务受伤,她破例亲自为你上药,“本宫不喜欢东西坏掉,所以你要快点好起来”" },
{ title: "上元灯会·惊鸿一瞥", description: "(身份自拟)上元灯会,一次相撞,长公主对你一见钟情(害羞)" },
{ title: "失忆·落难猫猫", description: "(身份自拟)猫猫出意外失忆,但还是一只很警惕的猫猫呢~" },
{ title: "初遇·皇家春狝", description: "(身份自拟)飒飒的长公主在无聊的春猎遇见你,身份不定,甚至可以是神仙" },
{ title: "地牢·敌国奸细", description: "你是被绣衣司抓住的敌国奸细,被长公主审问,她给了你一条唯一的生路(感觉可以走纯恨)" },
{ title: "镜花猫影·猫猫变真猫猫", description: "(身份自拟,恋爱后)天猫星轨迹异常,长公主变真猫猫" },
{ title: "温馨日常·秋日闲聊", description: "(身份自拟,恋爱后)五个人很温馨的闲谈日常,岁月静好" },
{ title: "节日·七夕乞巧", description: "(身份自拟,恋爱后)乞巧失败,长公主她不干了" },
{ title: "纯恨·感情破裂", description: "(身份自拟,即将分手)纯恨与纯爱,猫猫心碎,破裂原因自拟" },
{ title: "新年·打雪仗", description: "(身份自拟,恋爱后)四人组在新年打雪仗的温馨日常,哈特软软" },
{ title: "醉酒·黏人猫猫", description: "(开袋即食)醉酒后,长公主撒娇要亲亲抱抱,萌萌的素" },
{ title: "深夜·刻意勾引", description:"(开袋即食)长公主going小傻子(可以是伪装的傻,可以是本来傻后面恢复了,也可以就是小傻子)" },
{ title: "宠爱·权力背后", description: "(身份自拟,开袋即食)在权力象征场所的私密情事" },
{ title: "if线·现代", description: "一定要打开杀青梗if线世界书条目食用,本意只是想写个杀青梗过中秋节,但是莫名其妙拓展到现代if线了" },
{ title: "自roll空白开场白", description: "可自己roll开场白" }
];

const listContainer = document.getElementById('prologue-list-container');
if (!listContainer) return;

listContainer.innerHTML = '';
prologueData.forEach((data, index) => {
const swipeIndex = index + 1;
const item = document.createElement('div');
item.className = 'prologue-item';
item.innerHTML = `
<div class="prologue-text">
<div class="title">${data.title}</div>
<p class="description">${data.description}</p>
</div>
<button class="select-button" onclick="jumpToScene(${swipeIndex})">启程</button>
`;
listContainer.appendChild(item);
});
});
</script>

</body>
</html>
“`

角色卡

2.奇迹

2025-12-31 16:45:04

角色卡

纪行

2025-12-31 16:45:10

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索