/* 
################## 首页 ##################
 */

.home_page {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 80%;
    margin: 120px 0 0 70px;
    overflow: hidden;
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    z-index: 5;
}


/* 
################## 首页文字 ##################
 */
.home_page_text {
    width: 80%;
    min-width: 800px;
    height: 90%;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;

    /* background-color: #000; */
}

.logo_cover {
    width: 100px;
    height: 100px;
    border-radius: 50px;
}

.typing {
    width: 100%;
    /* min-width: 800px; */
    min-height: 20%;
    max-height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* margin-left: 100px; */
    font-family: Arial, sans-serif;
    z-index: 2;

    /* background-color: #ddcfa7; */
}

#typing-text {
    font-family: 'Courier New', Courier, monospace;
    color: #ffffffe3;
    /* font-weight: 700; */
    text-decoration: none;
    font-size: 4.5em;
    letter-spacing: 4px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
    border-right: 4px solid #525252;
    /* text-align: right; */
    padding-right: 10px;
    animation: blink-caret 0.75s step-end infinite;
}


.home_page_text_introduce {
    width: 100%;
    height: 30%;
}

.home_page_text_title {
    /* font-family: 'Courier New', Courier, monospace; */
    color: #ffffffe3;
    font-size: 24px;
    text-align: center;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
    padding-bottom: 50px;
}

.home_page_text_p {
    width: 100%;
    height: 50%;
    color: #ffffffe3;
    font-size: 20px;
    font-weight: 300;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* margin: 0 50px; */

}

.home_page_text button {
    width: 180px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    /* align-self: flex-end; */
    /* padding: 10px; */
    margin-top: 10px;
    border: none;
}

button:hover {
    transform: scale(1.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 
################## 标签 ##################
 */

.container {
    width: var(--container-width);
    min-height: 500px;
    height: calc(100vh - 100px);
    display: flex;
}

.tab-container {
    position: absolute;
    left: 0;
    top: 150px;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
        z-index: 11;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateX(-5px);
}

/* 单个标签样式 */
.tab {
    position: relative;
    display: flex;
    font-size: 20px;
    color: #ffffff;
    width: 50px;
    height: 100px;
    padding: 2px 10px;
    border-radius: 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0);
    cursor: pointer;
    min-width: 50px;
    transition: all 0.3s ease;
    font-weight: bold;
    overflow: hidden;
    opacity: 0.8;
    transform: translateX(0);
}

.tab:nth-child(1) {
    background-color: rgba(0, 0, 0, 0);
}

.tab:nth-child(2) {
    background-color: rgba(0, 0, 0, 0);
}

.tab:nth-child(3) {
    background-color: rgba(0, 0, 0, 0);
}

.tab:nth-child(4) {
    background-color: rgba(0, 0, 0, 0);
}

.tab:nth-child(5) {
    background-color: rgba(0, 0, 0, 0);
}



/* 鼠标悬浮标签 */
.tab:hover {
    transform: translateX(5px);
}

/* 标签内文字 */
.tab span {
    writing-mode: vertical-lr;
    text-align: center;
    position: relative;
}

/* 抽屉标签页背景 */
.tab::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 100%;
    background: inherit;
    border-radius: 0 10px 10px 0;
    transform: skewY(0deg);
}

/* 弹出活动标签页 */
.tab.active {
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transform: translateX(0);
    transition: transform 0.4s ease,
        opacity 0.4s ease,
        background-color 0.4s ease;
    z-index: 9;
}

/* 标签滑入动画 */
.tab.sliding {
    animation: slideOut 0.4s ease forwards;
}

/* 抽屉滑出动画 */
@keyframes slideOut {
    to {
        transform: translateX(60px);
    }
}

/* 
################## 抽屉 ##################
 */

/* 抽屉容器 */
.drawer-container {
    margin-top: 100px;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}


.drawer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px 20px 20px 50px;
    border-radius: 0 30px 30px 0;
    overflow: hidden;
    transform: translateX(-100%);
    visibility: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease,
        opacity 0.4s ease,
        visibility 0.4s;
    z-index: 10;
}

.drawer.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s ease,
        opacity 0.4s ease,
        visibility 0.4s,
        background-color 0.4s ease;
}

/* 抽屉内容 */
.drawer-content {
    width: 100%;
    height: 100%;
    padding: 24px 20px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    gap: 24px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 每个抽屉的颜色*/

#tab1 {
    background-color: rgba(0, 0, 0, 0);
}

#tab2 {
    background-color: rgba(0, 0, 0, 0);
}

#tab3 {
    background-color: rgba(0, 0, 0, 0);
}

#tab4 {
    background-color: rgba(0, 0, 0, 0);
}

#tab5 {
    background-color: rgba(0, 0, 0, 0);
}


/* 
################## 关于页 ##################
 */

#tab1 .drawer-content {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 28px;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 36px;
    box-shadow: 0 20px 35px -10px rgba(0, 20, 40, 0.25), inset 0 1px 4px rgba(255, 255, 255, 0.6);
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow-y: auto;
}

/* ---------- 左侧：立绘区 ---------- */
.character-left {
    flex: 1 1 38%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #fafcff;
    border-radius: 28px;
    padding: 20px 16px;
    /* box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02), 0 6px 12px rgba(42, 65, 98, 0.08); */
    transition: all 0.2s;
}

/* 主立绘容器 */
.character-portrait {
    width: 100%;
    max-width: 360px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 26px -6px rgba(20, 30, 50, 0.2);
    /* background-color: #f0f4fa; */
    aspect-ratio: 4 / 7;
    /* 维持立绘比例 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.25s;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.character-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.3s ease;
}

.character-portrait img:hover {
    transform: scale(1.02);
}

/* 图片按钮组 —— 缩略图切换 */
.portrait-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    width: 100%;
}

.thumb-btn {
    background: transparent;
    border: none;
    padding: 0;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    background: white;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

/* 按钮悬停/激活效果 */
.thumb-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 18px -6px rgba(30, 80, 150, 0.25);
}

.thumb-btn.active {
    box-shadow: 0 0 0 4px var(--tab1-color), 0 8px 16px rgba(59, 130, 246, 0.3);
    border: 2px solid white;
}

/* ---------- 右侧：角色信息区 ---------- */
.character-right {
    flex: 1 1 58%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 28px;
    padding: 8px 4px 8px 20px;
}

/* 角色介绍主体 */
.character-info {
    margin-bottom: 24px;
}

.character-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #0a1929;
    margin-bottom: 6px;
    line-height: 1.2;
    border-left: 8px solid var(--tab1-color);
    padding-left: 20px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c3e5c;
    margin-bottom: 20px;
    padding-left: 28px;
    opacity: 0.9;
    font-style: italic;
}

.character-info p {
    font-size: 1.08rem;
    line-height: 1.6;
    color: #1e2e44;
    background: #f6faff;
    padding: 20px 26px;
    border-radius: 24px;
    margin: 16px 0 20px 0;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid #e9f0fa;
}

.info-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    background: #f1f6fd;
    padding: 18px 26px;
    border-radius: 28px;
    margin-top: 10px;
    color: #1a3048;
    font-weight: 500;
    border: 1px solid #dde7f5;
}

.info-details span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.info-details span::before {
    content: "•";
    color: var(--tab1-color);
    font-weight: bold;
    font-size: 1.6rem;
    line-height: 0;
    margin-right: 4px;
}

/* 外部链接按钮组 —— 位于信息下部 */
.external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 2px dashed #cbd5e1;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 550;
    color: var(--tab1-color);
    text-decoration: none;
    border: 1px solid #bdd3eb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.link-btn i {
    font-size: 1.2rem;
    color: var(--tab1-color);
}

.link-btn:hover {
    color: var(--font-color);
    border-color: var(--tab1-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 18px -6px rgba(30, 58, 95, 0.25);
}

.link-btn:hover i {
    color: var(--font-color);
}


/* 
################## 导航页 ##################
 */

/* 导航分组 */
.nav-container {
    width: 100%;
    height: 100%;
}

.nav-group {
    margin-bottom: 28px;
}

.nav-group:last-child {
    margin-bottom: 0;
}

.group-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tab2-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    padding-left: 4px;
    letter-spacing: 0.3px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

/* 导航卡片 */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #334155;
    border-radius: 18px;
    padding: 12px 6px 10px 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    /* border: 1px solid rgba(0, 0, 0, 0.02); */
    justify-content: space-between;
}

/* 添加禁用状态的样式 */
.nav-item.disabled {
    color: #9ca3af;
    background-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-item:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

/* 禁用状态下不应用hover效果 */
.nav-item.disabled:hover {
    background-color: #e5e7eb;
    color: #9ca3af;
    transform: none;
}

.nav-item:active {
    transform: scale(0.97);
}

/* 禁用状态下不应用active效果 */
.nav-item.disabled:active {
    transform: none;
}

.nav-item i {
    font-size: 28px;
    margin-bottom: 6px;
    color: var(--tab2-color);
    /* 图标主题色*/
}

/* 新增图片支持样式 */
.nav-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
    object-fit: cover;
    border-radius: 15px;
}

.nav-item span {
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    /* word-break: break-word; */
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    /* font-weight: 500; */
}


/* 
################## 作品页 ##################
 */

.containersf {
    width: 100%;
    height: 92%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px;
    overflow: hidden;

}

.cardsf {
    flex: 1;
    transition: all 1s ease-in-out;
    height: 90%;
    position: relative;


}

.cardsf-head {
    background: var(--tab3-color);
    color: white;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    padding: 0.5em;
    transform: rotate(-90deg);
    transform-origin: 0% 0%;
    transition: all 0.5s ease-in-out;
    min-width: 100%;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 1em;
    white-space: nowrap;
    border-radius: 20px;

}

.cardsf:hover {
    flex-grow: 10;
}

.cardsf:hover img {
    filter: grayscale(0);
}

.cardsf:hover .cardsf-head {
    text-align: center;
    top: calc(100% - 2em);
    color: white;
    background: var(--tab3-color);
    font-size: 2em;
    transform: rotate(0deg);
}

.cardsf img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s ease-in-out;
    filter: grayscale(60%);
    border-radius: 20px;
    box-shadow: 0 5px 5px 2px rgba(30, 58, 95, 0.25);
}

.cardsf:not(:nth-child(5)) {
    margin-right: 1em;
}

/* 
################## 当前页 ##################
 */

.now-page {
    max-width: 100%;
    padding: 1.5rem;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #1e293b;
    background-color: transparent;
    box-sizing: border-box;
}

.now-page * {
    box-sizing: border-box;
}

.now-page-header {
    justify-content:start;
    margin-bottom: 2rem;
    margin: 40px;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.now-page-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0 0 0.5rem 0;
    background: var(--tab4-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.now-page-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-left: 30px;
    border-left: 3px solid var(--tab4-color);
    padding-left: 1rem;
}

/* 网格布局：自适应宽度 */
.now-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* 卡片样式 */
.now-card {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.now-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: #94a3b8;
}

/* 卡片图标区 */
.now-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(145deg, #dbeafe, #ede9fe);
    border-radius: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--tab4-color);
}

.now-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #0f172a;
}

.now-card-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
    margin: 0 0 1.25rem 0;
}

.now-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.now-card-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    letter-spacing: 0.025em;
}

.now-card-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--tab4-color);
    font-weight: 500;
}

.now-card-progress-bar {
    width: 60px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.now-card-progress-fill {
    height: 100%;
    background: var(--tab4-color);
    border-radius: 3px;
}

/* 更新说明 */
.now-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px dashed #cbd5e1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}

.now-footer-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.now-footer-note {
    background: #f8fafc;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
}


/* 
################## 联系方式页 ##################
 */
 /* 联系方式页面样式 */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.contact-header {
    text-align: center;
    /* margin-bottom: 2rem; */
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--tab5-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 14px;
    margin-bottom: 3rem;
    color: #666;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--tab5-color);
}

.contact-method {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-detail {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.contact-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--tab5-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.contact-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

