* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* 顶部欢迎横幅 */
.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 20px;
    margin: -20px -20px 20px -20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.welcome-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.welcome-logo {
    width: 80px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.welcome-banner h1 {
    font-size: 2.5em;
    margin: 0;
    font-weight: bold;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: calc(100vh - 120px);
}

/* 左侧面板 */
.left-panel {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header, .welcome-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.chat-header h1 {
    font-size: 28px;
    margin: 0;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f7fa;
    min-height: 300px;
}

.welcome-message, .chat-message-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in;
}

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

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.bot-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.message {
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 80%;
}

.message p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.message p:last-child {
    margin-bottom: 0;
}

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

.user-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.order-info {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-top: 10px;
    border-radius: 8px;
}

.order-info strong {
    display: block;
    margin-bottom: 10px;
    color: #856404;
}

.order-info p {
    margin-bottom: 8px;
    color: #856404;
}

.order-no-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ffc107;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.file-notice {
    background: #fff;
    border: 2px solid #ffc107;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
}

.file-notice p {
    margin: 5px 0;
    color: #856404;
    font-size: 13px;
}

.file-notice strong {
    color: #ff6b6b;
}

.contact-section {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
}

.contact-section p {
    margin-bottom: 10px;
    color: #495057;
}

.contact-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link.bilibili {
    background: #00a1d6;
    color: white;
}

.contact-link.bilibili:hover {
    background: #0090c1;
    transform: translateY(-2px);
}

.contact-link.xiaohongshu {
    background: #ff2442;
    color: white;
}

.contact-link.xiaohongshu:hover {
    background: #e6203b;
    transform: translateY(-2px);
}

.contact-link.email {
    background: #28a745;
    color: white;
}

.contact-link.email:hover {
    background: #218838;
    transform: translateY(-2px);
}

.contact-link .icon {
    font-size: 16px;
}

.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
}

.status-pending {
    background: #ffc107;
    color: #856404;
}

.status-paid {
    background: #28a745;
    color: white;
}

.status-generating {
    background: #17a2b8;
    color: white;
}

.status-completed {
    background: #28a745;
    color: white;
}

.status-failed {
    background: #dc3545;
    color: white;
}

/* 输入区域 */
.input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group.half {
    margin-bottom: 15px;
}

.generate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.generate-btn:last-of-type {
    margin-bottom: 0;
}

.redeem-btn {
    box-shadow: 0 10px 28px rgba(0, 86, 179, 0.42) !important;
}

.redeem-btn:hover {
    box-shadow: 0 14px 36px rgba(0, 86, 179, 0.55) !important;
}

.redeem-btn:active {
    transform: translateY(0);
}

/* 蓝色按钮样式 */
.blue-btn {
    background: linear-gradient(45deg, #0056b3, #004085) !important;
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4) !important;
}

.blue-btn:hover {
    background: linear-gradient(45deg, #004085, #002752) !important;
    box-shadow: 0 12px 35px rgba(0, 86, 179, 0.6) !important;
}

/* 正在搭建中的灰色样式 */
.building-card {
    /* 保持白色背景不变 */
}

.building-btn {
    background: linear-gradient(45deg, #6c757d, #495057) !important;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4) !important;
    cursor: not-allowed !important;
}

.building-btn:hover {
    background: linear-gradient(45deg, #495057, #343a40) !important;
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.6) !important;
}

/* 高级卡片样式 - 金色渐变吸引购买 */
.premium-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border: 3px solid #ffb347;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.premium-card h2 {
    color: #8b4513;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.search-order {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}

.search-order input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    min-width: 0; /* 允许输入框收缩 */
}

.search-order button {
    padding: 10px 16px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
    white-space: nowrap;
    flex-shrink: 0; /* 防止按钮收缩 */
}

.search-order button:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

.search-order button:active {
    transform: translateY(0);
}

/* 移动端下滑提示 */
.scroll-hint {
    display: none;
    text-align: center;
    padding: 15px;
    margin-top: 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-hint p {
    margin: 0 0 8px 0;
    color: #1976d2;
    font-size: 14px;
    font-weight: 600;
}

.scroll-arrow {
    display: flex;
    justify-content: center;
}

.scroll-arrow span {
    font-size: 24px;
    color: #1976d2;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

/* 右侧面板 */
.right-panel {
    overflow-y: auto;
    padding-right: 10px;
}

/* 案例分享链接样式 - 紧凑型 */
.case-share-card {
    min-height: 80px;
    padding: 20px 30px;
}

.case-link-large {
    text-align: center;
    padding: 0;
}

.case-link-btn-large {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.case-link-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

/* 资料库图片样式 */
.library-image {
	width: 100%;
	display: block;
	border-radius: 12px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease;
}

.library-image:hover {
	transform: translateY(-2px);
}

/* 图片两列网格与缩小间距 */
.image-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.image-card.info-card {
	padding: 5px; /* 最小边距，让图片几乎填满卡片 */
	margin-bottom: 10px;
}

/* 图片填满卡片，大小和方框一样 */
.image-card .info-content {
	padding: 0;
}

.image-card .info-content a {
	display: block;
	width: 100%;
}

.image-card .library-image {
	width: 100%;
	height: auto;
	object-fit: contain;
	min-height: 250px; /* 设置更大的最小高度 */
	display: block;
}

@media (max-width: 968px) {
	.image-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.image-card .library-image {
		min-height: 200px;
	}
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.info-card h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.info-card h3 {
    color: #667eea;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

/* AI系统卡片 */
.ai-system-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
}

.ai-system-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* AI系统部分 */
.ai-system-section {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.ai-system-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.ai-chat-container {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ai-input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.info-content ul {
    list-style: none;
    padding-left: 0;
}

.info-content ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.info-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.info-card.tips {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-left: 5px solid #ffc107;
}

.info-card.tips h3 {
    color: #856404;
}

.info-card.tips p {
    color: #856404;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s;
}

/* 手机端弹窗优化 */
@media (max-width: 768px) {
    .modal-content {
        margin: 2% auto;
        padding: 20px;
        max-width: 95%;
        max-height: 90vh;
        border-radius: 15px;
    }
    
    .modal-content h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .order-info p {
        font-size: 13px;
        margin: 6px 0;
        word-break: break-word;
    }
    
    .status-tag {
        font-size: 12px;
        padding: 4px 8px;
    }
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

.download-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 响应式设计 */
@media (max-width: 968px) {
    body {
        padding: 10px;
    }
    
    .container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 15px;
    }
    
    .left-panel {
        height: 100vh;
        min-height: 100vh;
        order: 1;
    }
    
    .right-panel {
        order: 2;
    }
    
    .chat-header h1 {
        font-size: 20px;
    }
    
    .chat-header {
        padding: 20px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-container {
        gap: 10px;
    }
    
    .chat-container {
        min-height: 300px;
        flex: 1;
    }
    
    .input-container {
        padding: 15px;
        min-height: auto;
    }
    
    .input-group {
        margin-bottom: 12px;
    }
    
    .generate-btn {
        padding: 12px 20px;
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .welcome-banner h1 {
        font-size: 1.8em;
    }
    
    .welcome-content {
        flex-direction: row;
        gap: 10px;
    }
    
    .welcome-logo {
        width: 60px;
        height: 40px;
        border-radius: 6px;
    }
    
    .search-order {
        padding: 12px;
        border-top: 2px solid #e0e0e0;
        margin-top: 12px;
    }
    
    .search-order input {
        font-size: 13px;
        padding: 10px;
    }
    
    .search-order button {
        font-size: 12px;
        padding: 10px 14px;
        white-space: nowrap;
    }
    
    .case-link-btn-large {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .case-share-card {
        min-height: 70px;
        padding: 15px 20px;
    }
    
    .case-link-large {
        padding: 0;
    }
    
    .scroll-hint {
        display: block;
    }
}

/* 视频展示区域样式 */
.video-section {
    margin-bottom: 25px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.video-card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

.video-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3c72;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 移动端视频样式 */
@media (max-width: 768px) {
    .video-section {
        padding: 15px;
        margin: 0 -10px 20px -10px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-top: 10px;
    }
    
    .video-card {
        margin: 0;
    }
    
    .video-thumbnail {
        height: 100px;
        aspect-ratio: 16/9;
    }
    
    .play-button {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* 机器人消息布局优化 */
@media (max-width: 768px) {
    .welcome-message {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .bot-avatar {
        width: 30px;
        height: 30px;
        font-size: 16px;
        flex-shrink: 0;
        margin-top: 2px;
    }
    
    .bot-message {
        flex: 1;
        max-width: calc(100% - 40px);
        padding: 12px 15px;
        margin: 0;
    }
    
    .bot-message p {
        margin: 0 0 8px 0;
        line-height: 1.4;
        font-size: 14px;
    }
    
    .bot-message p:last-child {
        margin-bottom: 0;
    }
}

/* 温馨提示空白减少 */
.info-card.tips {
    margin-top: 15px;
}

.info-card.tips h3 {
    margin-bottom: 8px;
}

.info-card.tips p {
    margin: 0;
    line-height: 1.5;
}

