*{margin:0;padding:0;box-sizing:border-box;}
*{ backface-visibility: hidden;}
body{
    margin:0;
    /*overflow:hidden;*/
}

html{
	height: 100%;
	margin: 0;
}

/* 背景层 */
#background{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-1;
}
#content {
    text-align: center;
}
/* 漂浮图案 */
.shape{
    position:absolute;
    pointer-events:none;
    user-select:none;
}
/* Logo */
.logo img{
height:50px;
transition:0.3s;
}

.logo img:hover{
transform:scale(1.1);
}
/* 导航栏 */

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 50px;
    background:#1f1f1f;
    color:white;
}

.navbar a{
    color:white;
    margin-left:20px;
    text-decoration:none;
}

/* 主视觉 */
.idol{

	display:flex;
	height:400px;
	position:relative;

}
/* 每一块 */
.card{
	flex:1;
	transition:0.5s;
	position:relative;
	overflow:hidden;
}
/* 不同颜色 */
.card1{ background:#F34E6C; }
.card2{ background:#2581C7; }
.card3{ background:#FFC20B; }
.card4{ background:#11BE93; }
.card5{ background:#8DBAFF; }
.card6{ background:linear-gradient(
    90deg,
    #FF8B00 0%,
    #FF8B00 50%,
    #F39800 50%,
    #F39800 100%
);
}
/* hover 放大 */
.card:hover{
flex:1.5;
}
/* 图片层 */
.card::before{
	content:"";
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background-size:cover;
	background-position:center;
	opacity:0;
	transition:0.5s;
}

/* 每个卡片对应图片 */
.card1::before{ background-image:url("/assets/images/Production/765intro.png"); }
.card2::before{ background-image:url("/assets/images/Production/Cinderellaintro.png"); }
.card3::before{ background-image:url("/assets/images/Production/Millionintro.png"); }
.card4::before{ background-image:url("/assets/images/Production/Sidemintro.png"); }
.card5::before{ background-image:url("/assets/images/Production/Shinyintro.png"); }
.card6::before{ background-image:url("/assets/images/Production/Gakuenintro.png"); }

/* hover 显示图片 */
.card:hover::before{
opacity:1;
}

.idol-text{
	position:absolute;
	top:50%;
	left:50%;
	transform:translate(-50%,-50%);
	font-size: 25px;
	color:white;
	text-align:center;
	z-index:10;
	pointer-events:none;
}

.intro {
    font-size: 20px;
}
/* 讯息 */

.infonews{
    padding: 50px;
    background: none;
}

.infonews-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.infonews-card{
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: 16px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.infonews-card:hover{
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: white;
    box-shadow: 0 15px 35px rgba(255,175,46,0.4);
}

.infonews-card::before{
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );
    transition: 0.6s;
}

.infonews-card:hover::before{
    left: 100%;
}
/*资讯新闻*/
.news-grid{
	display:grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap:30px;
}
.news-wrapper {
	display: flex;
	align-items: center;
	position: relative;
	margin: 0px 0;
	padding-top: 15px;
}

.news-viewport {
	width: 100%;
	overflow: hidden;
	height: 360px;
}

.news-track {
	display: flex;
	gap: 16px;
	transition: transform 0.4s ease;
	padding-top: 30px; 
	transform: translateZ(0);
}

.news-card{
	width: 250px;
	flex-shrink: 0;
	background:white;
	padding:15px;
	border-radius:10px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	transition:0.3s;
	cursor:pointer;
	display: block;
	will-change: transform;
}
.news-card:hover{
	transform:translateY(-5px) translateZ(0);
	box-shadow:0 10px 30px rgba(0,0,0,0.15);
}
.news-img-box{
	overflow:hidden;
	border-radius:8px;
}
.news-img-box img{
	width:100%;
	transition:0.5s;
}
.news-card:hover img{
	transform:scale(1.05);
}

.nav-btn {
	font-size: 30px;
	cursor: pointer;
	background: none;
	border: none;
}

.dots {
	display: flex;
	justify-content: center; 
	align-items: center;
	gap: 10px;               
	margin-top: 15px;
}
.news-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
	transition: all 0.3s;
}

.news-dot.active {
    background: #ff5ca8;
}

.news-icons{
	margin:10px 0;
}

.news-icons img{
	width:20px;
	margin-right:5px;
}

.news-title{
	font-size:14px;
	color: #393939;           
	text-decoration: none; 
	line-height:1.5;
	overflow: hidden;
	text-overflow: ellipsis;
}

.news-tags span{
	background:#eee;
	padding:5px 10px;
	margin-right:5px;
	border-radius:20px;
	font-size:12px;
}

.news-bottom{
	display:flex;
	justify-content:space-between;
	align-items:center;
	margin-top:10px;
}

.news-like{
	color:#ff5ca8;
	cursor:pointer;
}
.news-like.active{
	color:pink;
}

/* 系列 */
.series{
    padding:50px;
}

.series-grid{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.series-card{
    padding:40px;
    text-align:center;
    background:#eee;
    transition:0.3s;
}
.series-card:hover{
    transform:scale(1.05);
	z-index: 10;
}

.infonews,
.news,
.series {
    padding: 50px;
    max-width: 100%;
    margin: 0 auto;
}

.infonews-card,
.infonews-card:link,
.infonews-card:visited,
.infonews-card:hover,
.infonews-card:active {
    color: #333;        
    text-decoration: none;
}

.information {
    padding: 50px;
}

.information h2 {
    margin-bottom: 20px;
}

/* 横向5列 */
.information-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* 卡片 */
.information-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

/* 图片（瘦长关键） */
.information-card img {
    width: 100%;
    height: 360px;
    object-fit: contain; 
    background: #f5f5f5;
}

/* 内容 */
.information-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.information-content h3 {
    font-size: 14px;
    line-height: 1.3;
	display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.information-content p {
    font-size: 12px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.information-content span {
    font-size: 11px;
    color: #999;
}

/* hover效果 */
.information-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.birthday-box{
    margin: 20px auto;
    padding: 30px 50px;
    width: fit-content;
    border-radius: 12px;
    font-size: 25px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff9ecb, #7ecbff);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: fadeIn 0.6s ease;
}
.birthday-box span {
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

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

.glass-panel {
    max-width: 580px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    border-radius: 3rem;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 245, 250, 0.8);
	margin: 0 auto;
    width: 90%; 
}

/* ========= 活动轮播专用样式 ========= */
.event-wrapper {
    display: flex;
    align-items: center;
    margin: 0px 0;
    position: relative;
    overflow: visible; 
    min-height: 410px;
}

.event-viewport {
    flex: 1;
    overflow-x: hidden;
    overflow-y: visible;
    display: flex;         
    align-items: center;   
    height: 390px;  
}

.event-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
    align-items: center; 
}

/* 活动卡片样式（独立于新闻卡片） */
.event-card {
    flex: 0 0 calc((100% / 3) - 14px);  /* 一行显示3张，减去gap */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    min-height: 265px; 
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    z-index: 10;   
}

.event-img-box {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

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

.event-card:hover .event-img-box img {
    transform: scale(1.05);
}

.event-title {
    display: block;
    font-weight: bold;
    font-size: 1rem;
    margin: 12px 12px 6px;
    color: #000;
    text-decoration: none;
}

.event-bottom {
    padding: 0 12px 12px;
    font-size: 0.8rem;
    color: #000;
    line-height: 1.4;
}

.event-bottom .date {
    font-size: 0.7rem;
    color: #ff9f6e;
}

/* 导航按钮 */
.event-nav-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.event-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 指示点 */
.event-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.event-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.event-dot.active {
    background: #ff6fa5;
    transform: scale(1.2);
}

/* 响应式：小屏幕一行显示2张 */
@media (max-width: 768px) {
    .event-card {
        flex: 0 0 calc((100% / 2) - 10px);
    }
}

/* 头部装饰 */
.header-decoration {
    background: #ffeff5;
    padding: 1.2rem 1.5rem 0.8rem;
    text-align: center;
    border-bottom: 2px dashed #ffc0d0;
}

.randoom-title {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e65c8c, #ff8cb0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.randoom-title span {
    font-size: 2rem;
}

.subtitle {
    font-size: 0.75rem;
    color: #e290ae;
    margin-top: 6px;
}

/* 主要随机展示区 */
.random-card {
    padding: 2rem 1.8rem 2.2rem;
    text-align: center;
}

.result-box {
    background: #fefafc;
    border-radius: 2rem;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 12px 20px -10px rgba(0, 0, 0, 0.1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.default-message {
    font-size: 1.5rem;
    font-weight: 600;
    color: #b37b8f;
    letter-spacing: 1px;
    background: rgba(255, 220, 235, 0.4);
    padding: 0.6rem 1.2rem;
    border-radius: 60px;
    backdrop-filter: blur(2px);
}

.result-content {
    width: 100%;
    animation: gentlePop 0.35s ease-out;
}

@keyframes gentlePop {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.your-label {
    font-size: 1.2rem;
    font-weight: 500;
    color: #a35c7a;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.idol-name {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0.2rem 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: color 0.2s;
    word-break: keep-all;
    text-shadow: 
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        -1px  0px 0 #000,
         1px  0px 0 #000,
         0px -1px 0 #000,
         0px  1px 0 #000;
}

/* 随机按钮 */
.random-btn {
    background: linear-gradient(110deg, #ff85ad, #ff658c);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    border-radius: 3rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(230, 70, 110, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s;
    width: 80%;
    max-width: 280px;
    font-family: inherit;
    letter-spacing: 2px;
}

.random-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(230, 70, 110, 0.4);
    background: linear-gradient(110deg, #ff729b, #ff547e);
}

.random-btn:active {
    transform: translateY(2px);
    box-shadow: 0 5px 12px rgba(230, 70, 110, 0.4);
}

.footer-note {
    font-size: 0.7rem;
    text-align: center;
    color: #d9a6bc;
    padding: 1rem 1rem 1.5rem;
    border-top: 1px solid #ffe0eb;
    margin-top: 0.5rem;
}

/* 页脚 */
footer{
    background:#1f1f1f;
    color:white;
    text-align:center;
    padding:20px;
    bottom: 0;
    width: 100%;
    z-index: 999;
}
/* 响应式 */
@media (max-width: 1024px) {
  .navbar {
    padding: 15px 30px;
	flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
	flex-wrap: wrap;
  }
  .navbar a {
    margin: 10px 0 0 0;
  }
}
