* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-blue: #0066cc;
    --radiant-blue: #00a8ff;
    --dark-bg: #0a0f1f;
    --light-bg: #121a35;
    --accent-green: #0abf53;
    --accent-yellow: #ffd32a;
    --accent-orange: #ff7e00;
}

body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #071224 100%);
    color: #e0e0e0;
    overflow-x: hidden;
    min-height: 100vh;
    background-attachment: fixed;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    z-index: 1;
    position: relative;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 167, 255, 0.3);
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    background: rgba(10, 15, 31, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--radiant-blue);
}

.logo h1 {
    font-size: 2.2rem;
    background: linear-gradient(90deg, #00a8ff, #0abf53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    font-size: 1.2rem;
    color: #aaa;
    font-weight: 300;
}

/* 导航栏样式 */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
    position: relative;
    display: flex;
    align-items: center;
}

nav ul li a {
    color: #bbb;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

nav ul li a:hover {
    color: var(--radiant-blue);
}

nav ul li a.active {
    color: var(--radiant-blue);
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: linear-gradient(145deg, rgba(10, 15, 31, 0.95), rgba(18, 26, 53, 0.95));
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    z-index: 1;
    border: 1px solid rgba(0, 168, 255, 0.4);
    top: 100%;
    left: 0;
    margin-top: 10px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: #ccc;
    border-radius: 6px;
    transition: all 0.3s;
    margin-bottom: 8px;
    position: relative;
}

.dropdown-content a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 0;
    width: 3px;
    background: var(--radiant-blue);
    transition: height 0.3s;
    border-radius: 0 5px 5px 0;
}

.dropdown-content a:hover {
    background: rgba(0, 168, 255, 0.15);
    color: var(--radiant-blue);
    transform: translateX(5px);
}

.dropdown-content a:hover:before {
    height: 70%;
}

/* 用户菜单样式 */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu > a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.user-menu.logged-in > a {
    color: var(--radiant-blue);
    cursor: default;
    pointer-events: none;
}

.user-menu-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(18, 26, 53, 0.95);
    min-width: 150px;
    border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 168, 255, 0.3);
    display: none;
    z-index: 1000;
}

.user-menu:hover .user-menu-content {
    display: none;
}

/* Add new rules for logged-in state */
.user-menu-content.logged-in-only {
    display: none !important;
}

.user-menu.logged-in:hover .user-menu-content.logged-in-only {
    display: block !important;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.user-menu-item:hover {
    background: rgba(0, 168, 255, 0.1);
    color: var(--radiant-blue);
}

.user-menu-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.user-menu-item.logout {
    color: #ff6b6b;
}

.user-menu-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

/* 登录模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #0a0f1f, #121a35);
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.5);
    position: relative;
    border: 1px solid rgba(0, 168, 255, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    font-size: 1.08rem;
    line-height: 1.7;
}

.modal-content-scene {
    background: linear-gradient(135deg, #0a0f1f, #121a35);
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.5);
    position: relative;
    border: 1px solid rgba(0, 168, 255, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    font-size: 1.08rem;
    line-height: 1.7;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--radiant-blue);
}

.modal-title {
    text-align: center;
    margin-bottom: 25px;
}

.modal-title h3 {
    font-size: 1.8rem;
    background: linear-gradient(90deg, var(--radiant-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #bbb;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 168, 255, 0.3);
    background: rgba(18, 26, 53, 0.8);
    color: white;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--radiant-blue);
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
}

.code-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.code-group input {
    flex: 1;
    height: 40px;
}

.code-group img {
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
}

.get-code-btn {
    padding: 12px 15px;
    background: rgba(0, 168, 255, 0.2);
    color: var(--radiant-blue);
    border: 1px solid var(--radiant-blue);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.get-code-btn:hover {
    background: rgba(0, 168, 255, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary-blue), var(--radiant-blue));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.4);
}

/* Toast 提示样式 */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toast-in-out 2.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.success {
    border-left: 4px solid var(--accent-green);
}

.toast.error {
    border-left: 4px solid #ff4d4f;
}

@keyframes toast-in-out {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { transform: translateY(0); opacity: 1; }
    90% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

/* 响应式样式 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .character {
        width: 100%;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .left::after, .right::after {
        left: 21px;
    }

    .right {
        left: 0;
    }

    .dropdown-content {
        position: static;
        margin-top: 10px;
        display: none;
        width: 100%;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Hero 部分样式 */
.hero {
    text-align: center;
    padding: 120px 20px;
    margin: 40px 0;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffd32a, #ff7e00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: #ccc;
}

.btn {
    display: inline-block;
    padding: 15px 45px;
    background: linear-gradient(90deg, var(--primary-blue), var(--radiant-blue));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 168, 255, 0.5);
}

/* 内容区域样式 */
.content-section {
    display: none;
    min-height: 80vh;
    padding: 30px;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--radiant-blue);
    border-radius: 10px;
}

.section-title p {
    font-size: 1.3rem;
    color: #aaa;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* 角色卡片样式 */
.characters {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.character {
    background: linear-gradient(145deg, rgba(10, 15, 31, 0.8), rgba(18, 26, 53, 0.8));
    border-radius: 20px;
    padding: 25px;
    width: 300px;
    text-align: center;
    transition: all 0.4s;
    border: 1px solid rgba(0, 168, 255, 0.3);
}

.character:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.3);
    border-color: var(--radiant-blue);
}

.character-avatar {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #0d294d, #0a0f1f);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--radiant-blue);
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.5);
}

.character-avatar i {
    font-size: 4rem;
    color: var(--radiant-blue);
}

.character h4 {
    font-size: 1.7rem;
    margin: 15px 0;
    color: white;
}

.character p {
    font-size: 1.1rem;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 聊天模态框样式 */
.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.chat-modal.active {
    display: flex;
}

.chat-modal-content {
    background: linear-gradient(145deg, rgba(18, 26, 53, 0.95), rgba(10, 15, 31, 0.95));
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 168, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.chat-header {
    background: rgba(0, 102, 204, 0.1);
    padding: 20px;
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.chat-header h3 {
    color: var(--radiant-blue);
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.chat-header .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.clear-history-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.clear-history-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.clear-history-btn i {
    font-size: 0.9rem;
}

.close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 15px;
    position: relative;
    animation: messageAppear 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-blue), var(--radiant-blue));
    color: white;
    border-bottom-right-radius: 5px;
}

.message.ai {
    align-self: flex-start;
    background: rgba(18, 26, 53, 0.8);
    color: #fff;
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.message .timestamp {
    font-size: 0.75rem;
    opacity: 0.7;
    align-self: flex-end;
}

.message .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.message .content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.message .text {
    flex: 1;
    padding: 10px 15px;
    background: transparent;
    border-radius: 10px;
    margin: 0 10px;
    word-wrap: break-word;
    line-height: 1.5;
}

/* Markdown 样式 */
.message .text p {
    margin: 0 0 10px 0;
    color: #e0e0e0;
}

.message .text p:last-child {
    margin-bottom: 0;
}

.message .text pre {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    overflow-x: auto;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.message .text code {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    color: #00a8ff;
    font-size: 0.9em;
}

.message .text pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
}

.message .text ul, .message .text ol {
    margin: 10px 0;
    padding-left: 20px;
    color: #e0e0e0;
}

.message .text blockquote {
    border-left: 4px solid var(--radiant-blue);
    margin: 10px 0;
    padding: 10px 15px;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 0 8px 8px 0;
    color: #e0e0e0;
}

.message .text h1, .message .text h2, .message .text h3,
.message .text h4, .message .text h5, .message .text h6 {
    margin: 15px 0 10px 0;
    color: var(--radiant-blue);
}

.message .text table {
    border-collapse: collapse;
    margin: 10px 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.message .text th, .message .text td {
    border: 1px solid rgba(0, 168, 255, 0.2);
    padding: 12px;
    text-align: left;
    color: #e0e0e0;
}

.message .text th {
    background: rgba(0, 168, 255, 0.1);
    color: var(--radiant-blue);
    font-weight: 600;
}

.message .text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.message .text a {
    color: var(--radiant-blue);
    text-decoration: none;
    transition: all 0.3s;
}

.message .text a:hover {
    color: #00d4ff;
    text-decoration: underline;
}

/* 用户消息中的markdown样式 */
.message.user .text {
    color: white;
}

.message.user .text code {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.message.user .text pre {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.message.user .text blockquote {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
}

.message.user .text h1, .message.user .text h2, .message.user .text h3,
.message.user .text h4, .message.user .text h5, .message.user .text h6 {
    color: white;
}

.message.user .text th {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.message.user .text a {
    color: white;
}

.message.user .text a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.chat-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(0, 168, 255, 0.2);
}

.chat-input {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 15px;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.chat-input input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 10px;
    outline: none;
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input button {
    background: var(--radiant-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-input button:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.chat-input button i {
    font-size: 0.9rem;
}

/* 滚动条样式 */
.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.chat-body::-webkit-scrollbar-thumb {
    background: var(--radiant-blue);
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* 消息动画 */
@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 正在输入动画 */
.message.typing {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.message.typing i {
    width: 8px;
    height: 8px;
    background: var(--radiant-blue);
    border-radius: 50%;
    animation: typing 1s infinite;
}

.message.typing i:nth-child(2) {
    animation-delay: 0.2s;
}

.message.typing i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 场景卡片样式 */
.scenes-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.scene-card-horizontal {
    background: linear-gradient(145deg, rgba(10, 15, 31, 0.8), rgba(18, 26, 53, 0.8));
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid rgba(0, 168, 255, 0.3);
    display: flex;
    flex-direction: column;
}

.scene-card-horizontal:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.3);
}

.scene-image-horizontal {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
    overflow: hidden;
}

.scene-image-horizontal img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.scene-card-horizontal:hover .scene-image-horizontal img {
    transform: scale(1.05);
}

.scene-info-horizontal {
    padding: 30px;
}

.scene-info-horizontal h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
    position: relative;
}

.scene-info-horizontal h4:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-orange);
}

.scene-info-horizontal p {
    font-size: 1.1rem;
    color: #bbb;
    line-height: 1.7;
    margin: 25px 0;
}

.scene-stats-horizontal {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.stat-horizontal {
    text-align: center;
}

.stat-value-horizontal {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-yellow);
}

.stat-label-horizontal {
    font-size: 0.9rem;
    color: #aaa;
}

.scene-btn-horizontal {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(0, 168, 255, 0.1);
    color: var(--radiant-blue);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid var(--radiant-blue);
    margin-top: 15px;
}

.scene-btn-horizontal:hover {
    background: rgba(0, 168, 255, 0.2);
    transform: translateY(-3px);
}

/* 时间轴样式 */
.timeline-section {
    margin: 50px 0;
    padding: 30px;
    background: rgba(18, 26, 53, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgba(0, 168, 255, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--radiant-blue);
    border: 4px solid rgba(10, 15, 31, 1);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -12px;
}

.right::after {
    left: -8px;
}

.timeline-content {
    padding: 20px 30px;
    background: rgba(18, 26, 53, 0.8);
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(0, 168, 255, 0.3);
}

.timeline-content h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--radiant-blue);
}

.timeline-content .date {
    color: var(--accent-yellow);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(0, 168, 255, 0.3);
    color: #aaa;
}

footer p {
    margin: 5px 0;
}

/* 动画 */
@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.error {
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.1), rgba(255, 77, 79, 0.2));
    border: 1px solid rgba(255, 77, 79, 0.3);
    color: #ff4d4f;
}

.clear-history-btn {
    padding: 5px 10px;
    background: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.clear-history-btn:hover {
    background: #ff7875;
}

.clear-history-btn:active {
    background: #d9363e;
}

.scene-hotspot {
    position: absolute;
    z-index: 2;
    cursor: pointer;
}


.hotspot-left {

    left: 0;
    bottom: 0;
    /*top: 17%;*/
    width: 30%;
    height: 82%;
    /*border: 2px solid red;*/
}
.hotspot-top {
    right: 10%;
    top: 0;
    width: 51%;
    height: 58%;
    /*border: 2px solid red;*/

}
.hotspot-bottom {
    right: 0;
    top: 82%;
    width: 70%;
    height: 18%;
    /*border: 2px solid red;*/
}


.missile-header {
    right: 47.7%;
    top: 1.6%;
    width: 5%;
    height: 18%;
    /*border: 2px solid red;*/
}
.missile-body {
    right: 47.7%;
    top: 34%;
    width: 5%;
    height: 35%;
    /*border: 2px solid red;*/
}
.missile-bottom {
    right: 30.7%;
    bottom: 6%;
    width: 40%;
    height: 11%;
    /*border: 2px solid red;*/
}



.power-core {
    right: 14%;
    bottom: 40%;
    width: 65%;
    height: 30%;
    /*border: 2px solid red;*/
}
.power-cooling {
    left: 2%;
    top: 2%;
    width: 30%;
    height: 15%;
    /*border: 2px solid red;*/
}
.power-control {
    right: 0;
    bottom: 0%;
    width: 85%;
    height: 30%;
    /*border: 2px solid red;*/
}



.custom-modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}
.custom-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90vw;
    padding: 32px 24px 24px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeIn 0.3s;
}
.custom-modal-close {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
}
.custom-modal-body {
    color: #222;
    font-size: 1.1rem;
    line-height: 1.7;
}
.custom-modal-body img {
    width: 100%;
    margin-top: 18px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#hotspotModalBody {
    font-family: inherit;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}
#hotspotModalBody img {
    width: 100%;
    margin-top: 18px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
