/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* 艺术质感字体 */
    font-family: 'Noto Serif SC', serif;
    background-color: #0A557A;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 英文字体 */
body .logo-en,
body .hero-title-en,
body .chat-title-en {
    font-family: 'Playfair Display', serif;
}

/* 导航栏 */
.navbar {
    background-color: rgba(10, 85, 122, 0.98);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-en {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #FFFFFF;
}

.logo-cn {
    font-family: 'Noto Serif SC', serif;
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
}

.nav-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* 主内容区 */
.main-content {
    padding: 120px 20px 60px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0A557A 0%, #0d6a96 50%, #0A557A 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 三栏布局 */
.card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.card-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.05em;
}

.card-icon {
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card-description {
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.card-section {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}
/* 音乐作品样式 */
.music-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.music-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.music-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.music-cover {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

.music-info {
    flex: 1;
}

.music-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.music-link {
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.music-link:hover {
    color: #FFFFFF;
}

/* 课程列表样式 */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.course-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.course-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}

.course-info {
    flex: 1;
}

.course-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.course-desc {
    font-family: 'Noto Serif SC', serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.course-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.course-item:hover .course-arrow {
    transform: translateX(4px);
    color: #FFFFFF;
}

/* 书籍列表样式 */
.book-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.book-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.book-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.book-cover {
    width: 50px;
    height: 70px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.book-info {
    flex: 1;
}

.book-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.book-subtitle {
    font-family: 'Noto Serif SC', serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}
/* 按钮样式 */
.card-button {
    font-family: 'Noto Serif SC', serif;
    padding: 14px 28px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-align: center;
    width: 100%;
}

.card-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.card-button.primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(240, 147, 251, 0.3);
}

.card-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

/* 页脚 */
.footer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-text {
    text-align: center;
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-text p {
    margin: 4px 0;
}

/* 对话框弹窗 */
.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.chat-modal.active {
    display: block;
}

.chat-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.chat-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    margin: 80px auto;
    background-color: #0A557A;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-title-en {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.1em;
}

.chat-title-cn {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
}

.chat-close-button {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-close-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
/* 消息样式 */
.chat-message {
    display: flex;
    gap: 12px;
    animation: fadeInUp 0.3s ease;
}

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

.user-message {
    flex-direction: row-reverse;
}

.message-content {
    max-width: 70%;
    padding: 16px 20px;
    border-radius: 18px;
    position: relative;
}

.user-message .message-content {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #FFFFFF;
}

.assistant-message .message-content {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-content p {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 15px;
    line-height: 1.6;
}

/* 加载提示 */
.thinking-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 70%;
}

.thinking-dots {
    display: flex;
    gap: 4px;
}

.thinking-dots span {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: thinkingBounce 1.4s infinite ease-in-out both;
}

.thinking-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.thinking-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes thinkingBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.thinking-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.chat-input-container {
    padding: 20px 25px;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 14px 18px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Noto Serif SC', serif;
    font-size: 15px;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-send-button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.chat-send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

.chat-send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 详情弹窗 */
.detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2100;
}

.detail-modal.active {
    display: block;
}

.detail-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.detail-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    margin: 100px auto;
    background-color: #0A557A;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.detail-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.05em;
}

.detail-close-button {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-close-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.detail-body {
    padding: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.8;
}

.detail-body p {
    margin-bottom: 16px;
}

.detail-body h4 {
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 24px 0 12px;
}

/* 响应式设计 - PC端三栏 */
@media (min-width: 1024px) {
    .main-content .container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* 响应式设计 - 平板端两栏 */
@media (min-width: 768px) and (max-width: 1023px) {
    .main-content .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .card {
        grid-column: span 1;
    }
    
    .card:nth-child(3) {
        grid-column: span 2;
    }
}

/* 响应式设计 - 移动端堆叠 */
@media (max-width: 767px) {
    .nav-container {
        height: 70px;
    }
    
    .logo-en,
    .logo-cn {
        font-size: 24px;
    }
    
    .nav-subtitle {
        display: none;
    }
    
    .main-content {
        padding: 90px 15px 40px;
    }
    
    .main-content .container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .card-icon {
        font-size: 40px;
    }
    
    .chat-modal-content {
        margin: 60px auto;
        height: 90vh;
        width: 95%;
    }
    
    .detail-modal-content {
        margin: 60px auto;
        width: 95%;
    }
}
