/* 详情页样式 - macOS Tahoe毛玻璃效果 + 朝霞渐变背景 */

/* 主布局 */
.page-main {
    padding-top: 0;
    padding-bottom: 40px;
    background: linear-gradient(180deg, #FFE4EC 0%, #FFD1DC 20%, #E8D4F0 40%, #C8E6F0 60%, #A8D4E8 80%, #8BB8E0 100%);
}

/* 内容网格 */
.content-grids {
    width: 100%;
    margin: 0;
}

/* 左侧内容区域 */
.page-left {
    float: left;
    width: 63%;
    height: auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
    margin-top: 30px;
    box-sizing: border-box;
}

/* 电影互动区域 */
.movie-interaction {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 183, 120, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(255, 183, 120, 0.08);
}

.movie-interaction h3 {
    padding: 0 0 15px 0;
    margin: 0 0 15px 0;
    border-bottom: 2px solid rgba(255, 183, 120, 0.2);
    font-size: 18px;
    color: #E86A5E;
    font-weight: 700;
}

/* 角色评分 */
.character-ratings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.character-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.character-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.character-name {
    color: #7A7A7A;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    width: 50px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars .star {
    font-size: 20px;
    color: #DDD;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars .star:hover,
.rating-stars .star.active {
    color: #FFB78F;
}

.rating-stars .star:hover ~ .star {
    color: #DDD;
}

.rating-avg {
    font-size: 16px;
    font-weight: 700;
    color: #FFB78F;
    margin-right: 8px;
}

.rating-count {
    font-size: 12px;
    color: #999;
}

/* 观影场景推荐 */
.scene-recommendations {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scene-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 183, 120, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scene-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 183, 120, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 183, 120, 0.15);
}

.scene-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.scene-info h4 {
    color: #6A6A6A;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.scene-score {
    color: #999;
    font-size: 12px;
    margin: 0;
}

.scene-score span {
    color: #FF9A7E;
    font-weight: 700;
}

/* 心情匹配模式 */
.mood-matcher {
    margin: 30px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 240, 0.95) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid rgba(255, 183, 120, 0.25);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(255, 160, 122, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.mood-matcher::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFB78F, #FF9A7E, #FFB78F, #FFD4BF);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.mood-matcher h3 {
    color: #E86A5E;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.mood-hint {
    color: #9A9A9A;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.mood-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.mood-btn {
    flex: 1;
    min-width: 90px;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 183, 120, 0.15);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.mood-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 183, 120, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 183, 120, 0.15);
}

.mood-btn.active {
    background: linear-gradient(135deg, #FF9A7E, #FFB78F);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(255, 154, 126, 0.35);
}

.mood-btn.active .mood-emoji,
.mood-btn.active .mood-label {
    color: white;
}

.mood-emoji {
    font-size: 32px;
    transition: transform 0.3s ease;
}

.mood-btn:hover .mood-emoji {
    transform: scale(1.2);
}

.mood-label {
    font-size: 13px;
    font-weight: 600;
    color: #6A6A6A;
}

.mood-count {
    font-size: 10px;
    font-weight: 700;
    color: #FF9A7E;
    background: rgba(255, 183, 120, 0.15);
    padding: 2px 6px;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
}

.mood-result {
    background: rgba(255, 245, 235, 0.5);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 183, 120, 0.15);
}

.mood-match {
    display: flex;
    gap: 16px;
    align-items: center;
}

.mood-match-icon {
    font-size: 48px;
    flex-shrink: 0;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mood-match-text h4 {
    color: #E86A5E;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.mood-match-text p {
    color: #7A7A7A;
    font-size: 14px;
    margin: 0;
}

.mood-result.show {
    display: block;
}

.mood-result.hide {
    display: none;
}

/* 右侧内容区域 */
.page-right {
    float: left;
    width: 30%;
    margin-left: 5%;
    height: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 240, 0.95) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid rgba(255, 183, 120, 0.25);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(255, 160, 122, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-top: 30px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.page-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFB78F, #FF9A7E, #FFB78F, #FFD4BF);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* 最新更新区域 */
.latest-updates h3 {
    padding: 0 0 20px 0;
    margin: 0 0 25px 0;
    height: auto;
    line-height: 32px;
    border-bottom: 2px solid rgba(255, 183, 120, 0.25);
    font-size: 20px;
    color: #E86A5E;
    font-weight: 700;
}

.latest-updates h3::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #FF9A7E, #FFB78F);
}

/* 时间轴风格列表 */
.latest-list {
    position: relative;
    padding-left: 20px;
}

.latest-list::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, rgba(255, 183, 120, 0.3) 0%, rgba(255, 154, 126, 0.1) 100%);
    border-radius: 2px;
}

.latest-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 183, 120, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.latest-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #FF9A7E, #FFB78F);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 183, 120, 0.2);
    transition: all 0.3s ease;
    z-index: 1;
}

.latest-item:hover::before {
    background: #FFB78F;
    box-shadow: 0 0 0 4px rgba(255, 183, 120, 0.3);
    transform: translateY(-50%) scale(1.2);
}

.latest-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 183, 120, 0.15);
    border-color: rgba(255, 183, 120, 0.25);
}

.latest-poster {
    flex-shrink: 0;
    width: 50px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.latest-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-item:hover .latest-poster img {
    transform: scale(1.08);
}

.latest-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.latest-title {
    color: #5A5A5A;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-desc {
    color: #9A9A9A;
    font-size: 12px;
    margin: 0 0 6px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-date {
    color: #FF9A7E;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.latest-date::before {
    content: '🕐';
    font-size: 10px;
}

/* 右侧标题 */
.page-right h3 {
    padding: 0 0 15px 0;
    margin: 0 0 15px 0;
    height: auto;
    line-height: 30px;
    border-bottom: 3px solid #A0D8EF;
    font-size: 18px;
    color: #5A7A9A;
}

/* 右侧列表 */
.page-right ul {
    padding: 0;
    list-style: none;
}

.page-right ul li {
    width: 100%;
    height: auto;
    line-height: 40px;
    border-bottom: dashed 1px rgba(240, 224, 255, 0.15);
    display: block;
    margin: 0;
    padding: 0;
}

.page-right ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: block;
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-right ul li a:hover {
    color: #A0D8EF;
    background: rgba(160, 216, 239, 0.1);
    padding-left: 15px;
}

.page-right ul li span {
    float: right;
    color: #999;
    font-size: 12px;
    margin-top: 12px;
}

/* 广告区域 */
.page-ads {
    width: 100%;
    min-height: 240px;
    background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,248,240,.72));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 183, 120, 0.28);
    border-radius: 12px;
    color: #999;
    font-size: 14px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 24px rgba(255,160,122,.08);
}

.side-movie-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.side-poster-link {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    text-decoration: none;
    background: #f7f7f7;
}

.side-poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.side-poster-link:hover img {
    transform: scale(1.04);
}

.side-poster-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(20, 28, 38, .58));
    pointer-events: none;
}

.side-poster-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 1;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(90, 122, 154, .72);
    backdrop-filter: blur(10px);
}

.side-movie-info {
    padding: 14px 16px 16px;
}

.side-movie-info h3 {
    margin: 0 0 6px;
    color: #5A7A9A;
    font-size: 18px;
    line-height: 1.35;
}

.side-movie-info p {
    margin: 0 0 12px;
    color: #9A7A6A;
    font-size: 13px;
}

.side-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.side-score {
    color: #fff;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(255, 107, 107, .22);
}

.side-action {
    color: #E86A5E;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* 内容主区域 */
.content-main {
    padding: 0;
}

/* 内容网格头部 */
.content-grid-head {
    background: linear-gradient(135deg, rgba(160, 216, 239, 0.15), rgba(184, 198, 219, 0.1));
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(160, 216, 239, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.content-grid-head h3 {
    float: left;
    color: #5A7A9A;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.content-grid-head h4 {
    float: right;
    color: #999;
    font-size: 14px;
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
    margin: 0;
    line-height: 30px;
}

.content-grid-head h4 a {
    color: #A0D8EF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-grid-head h4 a:hover {
    color: #6FA8D8;
}

/* 内容详情 */
.content-grid-info, .content-grid-single {
    background-size: 100% 100%;
    padding: 0;
}

.content-grid-info h3, .content-sec-info h3 {
    font-size: 1.5em;
}

.content-grid-info h3 a, .content-sec-info h3 a {
    color: #87655B;
    margin-bottom: 0.5em;
    text-decoration: none;
    display: block;
    font-family: 'Oswald', sans-serif;
}

.content-grid-info h3 a:hover, .content-sec-info h3 a:hover {
    color: #A0D8EF;
}

.content-grid-info p, .content-sec-info p {
    color: #666;
    line-height: 1.8em;
    width: 100%;
    font-size: 15px;
    font-family: 'Source Sans Pro', sans-serif;
    margin-bottom: 1em;
}

.content-grid-info img, .content-sec-info img {
    width: 100%;
}

a.bttn {
    color: #fff;
    background: linear-gradient(135deg, #A0D8EF, #6FA8D8);
    padding: 12px 24px;
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
    margin-top: 1em;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

a.bttn:hover {
    background: linear-gradient(135deg, #6FA8D8, #5A9ED8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(160, 216, 239, 0.3);
}

/* 内容次要部分 */
.content-grid-sec {
    padding: 1em 18px 0 18px;
    margin-top: 3em;
}

.content-sec-info h3 {
    margin-bottom: 8px;
}

.content-sec-info h4 {
    color: #EE705A;
    font-weight: 400;
    font-size: 0.85em;
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
    margin-bottom: 1.3em;
    display: block;
}

.content-sec-info h4 a {
    color: #785F5D;
    text-decoration: none;
}

.content-sec-info h4 a:hover {
    color: #FFC600;
}

/* 分页 */
.pages {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1em;
    margin-top: 1.5em;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pages ul li {
    display: inline-block;
}

.pages ul li a {
    margin: 0 8px;
    font-size: 0.95em;
    color: #999;
    font-family: 'Source Sans Pro', sans-serif;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pages ul li.active a, .pages ul li a:hover {
    color: #fff;
    background: linear-gradient(135deg, #A0D8EF, #6FA8D8);
}

/* 归档和分类 */
.archives li.active a, .categories li.active a, .categories li a:hover, .archives li a:hover {
    color: #A0D8EF;
}

/* 某些历史样式 */
li.list {
    margin-top: 1em;
}

p.agree {
    display: inline-block;
    color: #999;
    font-family: 'content-main-right .content-grid-single p strong {
    color: #A0D8EF;
    font-weight: 600;
}

/* 内容标题 */
.content-grid-single h3 {
    color: #333;
    margin-bottom: 0.5em;
    text-decoration: none;
    display: block;
    font-family: 'Oswald', sans-serif;
}

.content-grid-single span {
    color: #999;
    line-height: 1.5em;
    font-size: 0.95em;
    font-family: 'content-main-right .content-grid-single p {
        color: #BBA198;
        line-height: 1.5em;
        font-size: 0.95em;
        font-family: 'Source Sans Pro', sans-serif;
        margin-bottom: 1em;
        display: block;
    font-family: 'Source Sans Pro', sans-serif;
        margin-bottom: 1em;
        display: block;
    font-family: 'Source Sans Pro', sans-serif;
    margin-bottom: 1em;
        display: block;
}

/* 内容段落 */
.content-grid-single p {
    color: #555;
    line-height: 1.8em;
    font-size: 15px;
    font-family: 'content-main-right .content-grid-single p {
        color: #BBA198;
        line-height: 1.1em;
        font-size: 15px;
        font-family: 'Source Sans Pro', sans-serif;
        margin-top: 1em;
}

/* 图片 */
img.single-pic {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

img.single-pic:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 右侧主区域 */
.content-main-right {
    padding: 0;
}

.ads {
    padding: 1.8em;
}

.ads h3 {
    color: #5A7A9A;
    font-size: 16px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* SOHUCS评论区 */
.content-main-right #SOHUCS {
    width: 100%;
}

/* 详情页内容优化 */
.content-grid-single p {
    color: #555;
    margin-bottom: 12px;
}

.content-grid-single p strong {
    color: #A0D8EF;
    font-weight: 600;
}

.content-grid-single a {
    color: #A0D8EF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-grid-single a:hover {
    color: #6FA8D8;
    text-decoration: underline;
}

/* 知识图谱预览 */
.knowledge-graph-preview {
    margin: 30px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 240, 0.95) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid rgba(255, 183, 120, 0.25);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(255, 160, 122, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.knowledge-graph-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFB78F, #FF9A7E, #FFB78F, #FFD4BF);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

.kgp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 183, 120, 0.2);
}

.kgp-header h3 {
    color: #E86A5E;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #E86A5E, #FF9A7E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kgp-more {
    color: #FF9A7E;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    background: rgba(255, 183, 120, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(255, 183, 120, 0.3);
}

.kgp-more:hover {
    color: white;
    background: linear-gradient(135deg, #FFB78F, #FF9A7E);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 154, 126, 0.4);
}

.kgp-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    background: rgba(255, 245, 235, 0.6);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 183, 120, 0.15);
}

.kgp-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    color: #9A7A6A;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.kgp-tab:hover {
    color: #7A6A5A;
    background: rgba(255, 255, 255, 0.7);
}

.kgp-tab.active {
    color: white;
    background: linear-gradient(135deg, #FFB78F 0%, #FF9A7E 100%);
    box-shadow: 0 4px 12px rgba(255, 154, 126, 0.35);
}

.kgp-tab.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.kgp-content {
    position: relative;
}

.kgp-chart {
    width: 100%;
    height: 380px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 240, 0.95) 100%);
    border-radius: 16px;
    box-shadow: inset 0 2px 8px rgba(255, 183, 120, 0.08), 0 2px 8px rgba(255, 183, 120, 0.06);
    position: relative;
    overflow: visible;
    border: 1px solid rgba(255, 183, 120, 0.15);
}

.kgp-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 183, 120, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.kgp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
    justify-content: center;
    padding: 12px 20px;
    background: rgba(255, 245, 235, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 183, 120, 0.15);
}

.kgp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9A7A6A;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 183, 120, 0.1);
}

.kgp-legend-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 183, 120, 0.15);
}

.kgp-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), inset 0 -1px 2px rgba(255, 255, 255, 0.3);
}

.knowledge-graph-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #A0D8EF, #6FA8D8, #A0D8EF);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

.kgp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(160, 216, 239, 0.15);
}

.kgp-header h3 {
    color: #5A7A9A;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #5A7A9A, #4A6A8A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kgp-more {
    color: #A0D8EF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    background: rgba(160, 216, 239, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(160, 216, 239, 0.2);
}

.kgp-more:hover {
    color: white;
    background: linear-gradient(135deg, #A0D8EF, #6FA8D8);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(160, 216, 239, 0.3);
}

.kgp-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    background: rgba(240, 244, 248, 0.5);
    padding: 6px;
    border-radius: 12px;
}

.kgp-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    color: #7A9A9A;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.kgp-tab:hover {
    color: #5A7A9A;
    background: rgba(255, 255, 255, 0.6);
}

.kgp-tab.active {
    color: white;
    background: linear-gradient(135deg, #A0D8EF 0%, #6FA8D8 100%);
    box-shadow: 0 4px 12px rgba(160, 216, 239, 0.3);
}

.kgp-tab.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.kgp-content {
    position: relative;
}

.kgp-chart {
    width: 100%;
    height: 380px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 16px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.kgp-chart::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(160, 216, 239, 0.03) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.kgp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
    justify-content: center;
    padding: 12px 20px;
    background: rgba(240, 244, 248, 0.3);
    border-radius: 12px;
}

.kgp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7A9A9A;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.kgp-legend-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kgp-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .page-left, .page-right {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }

    .content-grid-single {
        padding: 15px;
    }

    img.single-pic {
        max-width: 100%;
        margin: 15px 0;
    }

    .kg-link {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .kg-arrow {
        transform: rotate(90deg);
    }

    .kg-link:hover .kg-arrow {
        transform: rotate(90deg) translateX(5px);
    }
}
}
