/* ========== 重置样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.5;
    overflow-x: hidden;
    transition: opacity 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    opacity: 1;
}

body.page-exit {
    opacity: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

ul, li {
    list-style: none;
}

/* ========== 字体定义 ========== */
@font-face {
    font-family: 'Gabriola';
    src: url('/Fonts/Gabriola.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ========== 背景装饰 ========== */
.bg-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-wrap[data-color="white"] {
    background-color: #ffffff;
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
}

.bg-line {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.bg-line svg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: auto;
}

/* ========== 布局 ========== */
#Wrap {
    position: relative;
    min-height: 100vh;
}

/* ========== PC侧边栏 ========== */
.l-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    padding: 60px 40px;
    background: transparent;
    z-index: 100;
}

/* Logo */
.logo {
    margin-bottom: 60px;
}

.logo img {
    max-width: 280px;
    width: 100%;
    transition: filter 0.3s ease;
}

.logo a {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo a:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.logo a:hover img {
    filter: brightness(1.02) contrast(1.02);
}

/* PC导航菜单 */
.l-gnav__block {
    margin-bottom: 40px;
}

.md-ttl__label {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 500;
}

.md-ttl__label span {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.l-gnav__block ul li {
    margin-bottom: 12px;
}

.l-gnav__block ul li a {
    position: relative;
    display: inline-block;
    padding: 4px 0;
    color: #666;
    font-family: 'Gabriola', sans-serif;
    font-size: 18px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.l-gnav__block ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #333, #666);
    transition: width 0.3s ease;
}

.l-gnav__block ul li a:hover {
    color: #000;
    transform: translateX(8px);
    letter-spacing: 1px;
}

.l-gnav__block ul li a:hover::before {
    width: 100%;
}

/* ========== 主内容区 ========== */
.l-main {
    margin-left: 280px;
    padding: 60px 80px;
    min-height: 100vh;
}

/* ========== 作品网格 ========== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f8f8;
    transition: box-shadow 0.3s ease;
}

.work-link {
    display: block;
    text-decoration: none;
    position: relative;
}

.work-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-item:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* 悬浮信息框 */
.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6) 60%, transparent);
    color: white;
    padding: 20px 16px 16px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    backdrop-filter: blur(2px);
}

.work-item:hover .work-info {
    transform: translateY(0);
}

.work-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #fff;
}

.work-version {
    font-size: 12px;
    margin: 0 0 8px 0;
    color: rgba(255, 255, 255, 0.8);
}

.work-hint {
    display: inline-block;
    font-size: 12px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.work-item:hover .work-hint {
    opacity: 1;
    transform: translateX(4px);
}

/* ========== 横线分隔 ========== */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 20px 0 40px;
}

/* ========== 公告区样式 ========== */
.announcements-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e5e5;
    display: inline-block;
}

.announcements-list {
    list-style: none;
    padding: 0;
}

.announcement-item {
    display: flex;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.announcement-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.announcement-date {
    flex-shrink: 0;
    width: 100px;
    font-size: 14px;
    color: #999;
    font-family: monospace;
}

.announcement-link {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.announcement-link:hover {
    color: #000;
    transform: translateX(4px);
}

/* ========== 公告详情页样式 ========== */
.announcement-detail {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    animation: elegantEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: scale(0.98) translateY(30px);
}

@keyframes elegantEntrance {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(40px);
        filter: blur(4px);
    }
    40% {
        opacity: 0.6;
        transform: scale(0.99) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.announcement-header {
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 24px;
    animation: headerGlide 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) 0.1s forwards;
    opacity: 0;
    transform: translateY(15px);
    position: relative;
}

@keyframes headerGlide {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.announcement-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #333, transparent);
    animation: lineGrow 0.8s ease 0.2s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes lineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.announcement-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1a1a1a;
    animation: titleReveal 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.15s forwards;
    opacity: 0;
    transform: translateX(-8px);
}

@keyframes titleReveal {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.announcement-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    animation: metaFade 0.5s ease 0.25s forwards;
    opacity: 0;
}

@keyframes metaFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.announcement-meta time {
    font-family: monospace;
    color: #999;
}

.announcement-category {
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 12px;
    color: #666;
}

.announcement-content {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
}

.announcement-content a {
    color: #0071e3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.announcement-content a:hover {
    color: #0051a8;
    border-bottom-color: #0051a8;
}

.announcement-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    animation: footerFadeUp 0.5s ease 0.7s forwards;
    opacity: 0;
}

@keyframes footerFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.back-link {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    color: #666;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.back-link:hover {
    color: #333;
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateX(-4px);
}

/* ========== 固定社交链接 ========== */
.l-fixed--snslinks {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 200;
}

.l-sns__links {
    display: flex;
    gap: 16px;
}

.l-sns__links li a {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    overflow: hidden;
}

.l-sns__links li a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.l-sns__links li a:hover {
    transform: scale(1.1);
}

/* ========== 页脚 ========== */
.l-footer {
    text-align: center;
    padding: 40px 0 60px;
    margin-left: 280px;
    font-size: 12px;
    color: #999;
}

/* ========== 响应式显示控制 ========== */
.is-pctab {
    display: block;
}

.is-sponly {
    display: none;
}

/* ========== 手机头部样式 ========== */
@media (max-width: 768px) {
    .is-pctab {
        display: none;
    }
    .is-sponly {
        display: block;
    }

    .l-sidebar {
        display: none;
    }

    .l-main {
        margin-left: 0;
        padding: 20px 20px 60px;
        margin-top: 56px;
    }

    .l-footer {
        margin-left: 0;
        padding: 30px 0;
    }

    .l-fixed--snslinks {
        bottom: 20px;
        right: 20px;
    }

    /* 手机头部 */
    .l-spheader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 1002;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    .l-spheader__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 16px;
        min-height: 56px;
    }

    .l-spheader .logo img {
        height: 40px;
        width: auto;
        max-width: 180px;
        object-fit: contain;
    }

    /* 菜单按钮 */
    .menu-trigger {
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        position: relative;
    }

    .menu-trigger span {
        display: block;
        position: absolute;
        width: 22px;
        height: 2px;
        background: #333;
        left: 9px;
        transition: all 0.3s ease;
    }

    .menu-trigger span:nth-child(1) { top: 13px; }
    .menu-trigger span:nth-child(2) { top: 19px; }
    .menu-trigger span:nth-child(3) { top: 25px; }

    .menu-trigger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 19px;
    }
    .menu-trigger.active span:nth-child(2) { opacity: 0; }
    .menu-trigger.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 19px;
    }

    /* 手机全屏菜单 */
    .l-spnav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .l-spnav[data-status="visible"] {
        transform: translateX(0);
    }

    .l-spnav__inner {
        padding: 70px 24px 40px;
        min-height: 100vh;
    }

    .l-spnav .l-gnav__block {
        margin-bottom: 32px;
    }

    .l-spnav .md-ttl__label {
        display: block;
        margin-bottom: 16px;
    }

    .l-spnav .md-ttl__label span {
        display: inline-block;
        font-size: 14px;
        letter-spacing: 1.5px;
        font-weight: 600;
        color: #333;
        border-bottom: 2px solid #333;
        padding-bottom: 6px;
        font-family: 'Gabriola', sans-serif;
    }

    .l-spnav .l-gnav__block ul {
        margin-top: 16px;
        padding-left: 0;
    }

    .l-spnav .l-gnav__block ul li {
        margin-bottom: 14px;
        list-style: none;
    }

    .l-spnav .l-gnav__block ul li a {
        display: inline-block;
        font-size: 16px;
        color: #555;
        text-decoration: none;
        font-family: 'Gabriola', sans-serif;
        transition: all 0.2s ease;
        padding: 4px 0;
    }

    .l-spnav .l-gnav__block ul li a:hover,
    .l-spnav .l-gnav__block ul li a:active {
        color: #000;
        transform: translateX(4px);
    }

    .l-spnav .l-sns {
        margin-top: 32px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .l-spnav .l-sns__links {
        display: flex;
        justify-content: center;
        gap: 24px;
        padding: 0;
    }

    .l-spnav .l-sns__links li a {
        display: block;
        width: 40px;
        height: 40px;
    }

    .l-spnav .l-sns__links li a img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* ========== 平板适配 ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .l-sidebar {
        width: 240px;
        padding: 40px 25px;
    }
    .l-main {
        margin-left: 240px;
        padding: 40px;
    }
    .l-footer {
        margin-left: 240px;
    }
    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 30px;
    }
}