* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #884499, #1a2a6c);
    color: #fff;
    min-height: 140vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
      justify-content: center;
      align-items: center;
      height: 100vh;
}
    .title-nk25 {
      font-family: 'Noto Sans JP', sans-serif;
      font-size: 48px;
      font-weight: bold;
      color: white;
      position: relative;
      display: inline-block;
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }

    .title-nk25 span {
      position: relative;
      display: inline-block;
      margin: 0 2px;
    }

    .slash-nk25 {
      position: absolute;
      content: "";
      width: 2px;
      height: 120%;
      background: linear-gradient(180deg, #d0eaff, #a7aaff);
      transform: rotate(50deg);
      top: -10%;
      left: 40%;
      z-index: 1;
    }

    .emphasis-nk25 {
      color: white;
      text-shadow: 0 0 15px #aeeeff, 0 0 5px #ffffff;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
    position: relative;
}



.subtitle {
    font-size: 1.5rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列并排 */
    gap: 24px; /* 卡片间距可调整 */
    margin: 32px 0;
}

.card {
    background: #222;
    color: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-6px) scale(1.03);
}

.card h2 {
    color: #884499;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.card p {
    line-height: 1.6;
    color: #e0e0e0;
}

.card-1 {
    background-image: url('img/knd.png');
    background-size: cover;
    background-position: center;
}
.card-2 {
    background-image: url('img/mfy.png');
    background-size: cover;
    background-position: center;
}
.card-3 {
    background-image: url('img/ena.png');
    background-size: cover;
    background-position: center;
}
.card-4 {
    background-image: url('img/mzk2.png');
    background-size: cover;
    background-position: center;
}

.card-1 h2{
    color: #BB6688;
}.card-2 h2{
    color: #8888CC;
}.card-3 h2{
    color: #CCAA88;
}.card-4 h2{
    color: #ddaacc;
}
/* 可选：让文字更清晰 */
.card.card-1, .card.card-2, .card.card-3, .card.card-4 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    background-blend-mode: darken;
    background-color: rgba(30,30,30,0.6);
}

.card-1 h2,
.card-1 p,
.card-2 h2,
.card-2 p,
.card-3 h2,
.card-3 p,
.card-4 h2,
.card-4 p {
    opacity: 0;
    transition: opacity 0.3s;
}

.card-1:hover h2,
.card-1:hover p,
.card-2:hover h2,
.card-2:hover p,
.card-3:hover h2,
.card-3:hover p,
.card-4:hover h2,
.card-4:hover p {
    opacity: 1;
}

.hidden-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
}

.hidden-trigger:hover {
    transform: scale(1.5);
    background: rgba(255, 126, 95, 0.5);
}

.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.password-box {
    background: rgba(30, 30, 40, 0.95);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 126, 95, 0.3);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.password-box h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff7e5f;
}

.password-box p {
    margin-bottom: 30px;
    color: #aaa;
    line-height: 1.6;
}

.password-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #444;
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 2px;
    transition: border-color 0.3s;
}

.password-input:focus {
    outline: none;
    border-color: #ff7e5f;
}

.submit-btn {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-weight: bold;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.4);
}

.error-message {
    color: #ff6b6b;
    margin-top: 15px;
    min-height: 25px;
}

.hidden-content {
    display: none;
    background: rgba(0, 0, 0, 0.7);
    padding: 50px;
    border-radius: 20px;
    margin-top: 40px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hidden-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #4ecdc4;
}

.hidden-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #e0e0e0;
}

.secret-key {
    display: inline-block;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: monospace;
    margin: 20px 0;
    font-size: 1.3rem;
    letter-spacing: 3px;
}

.key-hint {
    position: fixed;
    bottom: 40px;
    left: 20px;
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    user-select: none;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

/* 轮播样式 */
.card-5 {
    position: relative;
    overflow: visible; /* 允许子元素超出显示 */
    background: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-width: 800px; /* 建议520px，适中 */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* 允许按钮超出 */
}

.carousel-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 12px;
}

.carousel-img.active {
    opacity: 1;
    z-index: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30,30,30,0.7);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
    user-select: none;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-btn:hover { background: #ff7e5f; }

.card-5 .carousel-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(78,205,196,0.85), rgba(199,121,208,0.85));
    color: #fff;
    border: none;
    font-size: 2rem;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    outline: none;
    border: 2px solid #fff3;
    transition: 
        opacity 0.3s,
        background 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}
.card-5 .carousel-btn.prev { left: -100px; }
.card-5 .carousel-btn.next { right: -100px; }
.card-5:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}
.card-5 .carousel-btn:hover {
    background: linear-gradient(135deg, #4ecdc4, #c779d0);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    transform: translateY(-50%) scale(1.08);
}

.carousel-title {
    opacity: 0;
    transition: opacity 0.3s;
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    font-size: 2rem;
    pointer-events: none;
}

.card-5:hover .carousel-title {
    opacity: 1;
}

/* 左上角按钮 */
.contact-toggle {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;
    background: linear-gradient(135deg, #4ecdc4, #c779d0);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.2s, transform 0.2s;
}
.contact-toggle:hover {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    transform: scale(1.08);
}

/* 联系方式弹窗 */
.contact-panel {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100vh;
    background: rgba(30,30,30,0.98);
    color: #fff;
    box-shadow: 2px 0 16px rgba(0,0,0,0.18);
    z-index: 1002;
    padding: 32px 20px 20px 20px;
    transition: left 0.3s;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}
.contact-panel.open {
    left: 0;
}
.contact-panel h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.contact-panel p {
    margin: 10px 0;
    font-size: 1rem;
    word-break: break-all;
}
.contact-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.contact-close:hover {
    opacity: 1;
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .password-box {
        padding: 25px;
    }
}