quejing commited on
Commit
fba707a
·
verified ·
1 Parent(s): 2654bbe

Batch upload (4 files) #1

Browse files
Files changed (4) hide show
  1. data/books.json +0 -0
  2. main.js +291 -0
  3. style.css +1262 -0
  4. wechat-qrcode.jpg +3 -0
data/books.json ADDED
The diff for this file is too large to render. See raw diff
 
main.js ADDED
@@ -0,0 +1,291 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import './style.css';
2
+ import booksData from './data/books.json';
3
+
4
+ let books = [];
5
+ let filteredBooks = [];
6
+ let searchIndex = new Map();
7
+ let currentBookId = null;
8
+
9
+ let currentPage = 0;
10
+ const itemsPerPage = 50;
11
+ let isLoading = false;
12
+ let hasMore = true;
13
+
14
+ function initBooksPage() {
15
+ books = booksData;
16
+ filteredBooks = books;
17
+ buildSearchIndex();
18
+ setupStats();
19
+ setupScroll();
20
+ setupSearch();
21
+ setupModal();
22
+ resetAndLoad();
23
+ }
24
+
25
+ function buildSearchIndex() {
26
+ searchIndex = new Map();
27
+ books.forEach((book, idx) => {
28
+ const zhLower = book.nameZh.toLowerCase();
29
+ const enLower = book.nameEn.toLowerCase();
30
+ const idLower = book.id.toLowerCase();
31
+
32
+ if (!searchIndex.has(zhLower)) searchIndex.set(zhLower, []);
33
+ searchIndex.get(zhLower).push(idx);
34
+
35
+ if (!searchIndex.has(enLower)) searchIndex.set(enLower, []);
36
+ searchIndex.get(enLower).push(idx);
37
+
38
+ if (!searchIndex.has(idLower)) searchIndex.set(idLower, []);
39
+ searchIndex.get(idLower).push(idx);
40
+
41
+ const enWords = enLower.split(/\s+/);
42
+ enWords.forEach(word => {
43
+ if (word.length >= 2) {
44
+ if (!searchIndex.has(word)) searchIndex.set(word, []);
45
+ searchIndex.get(word).push(idx);
46
+ }
47
+ });
48
+ });
49
+ }
50
+
51
+ function fastSearch(query) {
52
+ if (!query) return books;
53
+
54
+ const queryLower = query.toLowerCase().trim();
55
+ if (!queryLower) return books;
56
+
57
+ return books.filter(book => {
58
+ const zhMatch = book.nameZh.toLowerCase().includes(queryLower);
59
+ const enMatch = book.nameEn.toLowerCase().includes(queryLower);
60
+ const idMatch = book.id.toLowerCase().includes(queryLower);
61
+ return zhMatch || enMatch || idMatch;
62
+ });
63
+ }
64
+
65
+ function setupStats() {
66
+ const totalDuration = filteredBooks.reduce((sum, book) => {
67
+ const match = book.duration.match(/(\d+)小时/);
68
+ return sum + (match ? parseInt(match[1]) : 0);
69
+ }, 0);
70
+
71
+ const prices = filteredBooks.map(book => book.price);
72
+ const minPrice = Math.min(...prices).toFixed(2);
73
+ const maxPrice = Math.max(...prices).toFixed(2);
74
+
75
+ document.getElementById('totalDuration').textContent = totalDuration + '小时';
76
+ document.getElementById('totalPrice').textContent = minPrice === maxPrice ? minPrice + '元' : `${minPrice} - ${maxPrice}元`;
77
+ }
78
+
79
+ function setupScroll() {
80
+ const container = document.getElementById('scrollContainer');
81
+
82
+ if (!container) return;
83
+
84
+ container.style.maxHeight = 'calc(100vh - 350px)';
85
+
86
+ container.addEventListener('scroll', () => {
87
+ if (isLoading || !hasMore) return;
88
+
89
+ const { scrollTop, scrollHeight, clientHeight } = container;
90
+ const scrollPercentage = scrollTop / (scrollHeight - clientHeight);
91
+
92
+ if (scrollPercentage >= 0.7) {
93
+ loadMoreCards();
94
+ }
95
+ });
96
+ }
97
+
98
+ function resetAndLoad() {
99
+ const grid = document.getElementById('bookGrid');
100
+ const listLoading = document.getElementById('listLoading');
101
+
102
+ currentPage = 0;
103
+ hasMore = true;
104
+ grid.innerHTML = '';
105
+
106
+ if (listLoading) listLoading.classList.remove('hidden');
107
+
108
+ setTimeout(() => {
109
+ loadMoreCards();
110
+ }, 100);
111
+ }
112
+
113
+ function loadMoreCards() {
114
+ if (isLoading || !hasMore) return;
115
+
116
+ isLoading = true;
117
+
118
+ const grid = document.getElementById('bookGrid');
119
+ const listLoading = document.getElementById('listLoading');
120
+
121
+ if (listLoading) listLoading.classList.remove('hidden');
122
+
123
+ const start = currentPage * itemsPerPage;
124
+ const end = Math.min(start + itemsPerPage, filteredBooks.length);
125
+ const booksToRender = filteredBooks.slice(start, end);
126
+
127
+ setTimeout(() => {
128
+ const fragment = document.createDocumentFragment();
129
+
130
+ booksToRender.forEach((book) => {
131
+ const card = document.createElement('div');
132
+ card.className = 'book-card';
133
+ card.innerHTML = `
134
+ <div class="book-title-zh">${book.nameZh}</div>
135
+ <div class="book-title-en">${book.nameEn}</div>
136
+ <div class="book-meta">
137
+ <div class="book-duration"><span class="book-duration-icon">⏱️</span><span>${book.duration}</span></div>
138
+ <div class="book-price">${book.price.toFixed(2)}<span>元</span></div>
139
+ </div>
140
+ <div class="book-qq" onclick="event.stopPropagation(); window.open('mqqapi://card/show_pslcard?src_type=internal&version=1&uin=704100972&card_type=person&source=qrcode', '_blank')">
141
+ 🐧 704100972
142
+ </div>
143
+ `;
144
+ card.addEventListener('click', () => openModal(book));
145
+ fragment.appendChild(card);
146
+ });
147
+
148
+ grid.appendChild(fragment);
149
+
150
+ currentPage++;
151
+ hasMore = end < filteredBooks.length;
152
+
153
+ if (listLoading) listLoading.classList.add('hidden');
154
+ isLoading = false;
155
+ }, 0);
156
+ }
157
+
158
+ function setupSearch() {
159
+ const searchInput = document.getElementById('searchInput');
160
+ let debounceTimer;
161
+
162
+ searchInput.addEventListener('input', (e) => {
163
+ clearTimeout(debounceTimer);
164
+ debounceTimer = setTimeout(() => {
165
+ const query = e.target.value.trim();
166
+ filteredBooks = query ? fastSearch(query) : books;
167
+
168
+ setupStats();
169
+
170
+ const noResults = document.getElementById('noResults');
171
+ if (filteredBooks.length === 0) {
172
+ noResults.classList.add('visible');
173
+ } else {
174
+ noResults.classList.remove('visible');
175
+ }
176
+
177
+ document.getElementById('scrollContainer').scrollTop = 0;
178
+ resetAndLoad();
179
+ }, 150);
180
+ });
181
+ }
182
+
183
+ function setupModal() {
184
+ document.getElementById('modalClose').addEventListener('click', closeModal);
185
+ document.getElementById('modalOverlay').addEventListener('click', (e) => {
186
+ if (e.target === e.currentTarget) closeModal();
187
+ });
188
+ }
189
+
190
+
191
+
192
+ async function openModal(book) {
193
+ currentBookId = book.id;
194
+ document.getElementById('modalTitleZh').textContent = book.nameZh;
195
+ document.getElementById('modalTitleEn').textContent = book.nameEn;
196
+ document.getElementById('modalDuration').textContent = book.duration;
197
+ document.getElementById('modalPrice').textContent = book.price.toFixed(2) + '元';
198
+ document.getElementById('modalGutenbergId').textContent = '书目 #' + book.id;
199
+
200
+ document.getElementById('modalBody').innerHTML = `
201
+ <div class="modal-loading">
202
+ <div class="loading-spinner" id="loadingSpinner"></div>
203
+ <div>正在从书库加载《${book.nameZh}》...</div>
204
+ </div>
205
+ <div class="modal-qq">
206
+ <span>联系客服购买:</span>
207
+ <a href="https://qm.qq.com/q/704100972" target="_blank" class="qq-link">
208
+ QQ客服:704100972
209
+ </a>
210
+ </div>
211
+ `;
212
+
213
+ document.getElementById('modalOverlay').classList.add('active');
214
+ document.body.style.overflow = 'hidden';
215
+
216
+ loadBookContent(book.id);
217
+ }
218
+
219
+ function closeModal() {
220
+ currentBookId = null;
221
+ document.getElementById('modalOverlay').classList.remove('active');
222
+ document.body.style.overflow = '';
223
+ }
224
+
225
+ async function loadBookContent(bookId) {
226
+ if (!bookId || bookId !== currentBookId) return;
227
+
228
+ try {
229
+ const cleanId = bookId.replace(/^0+/, '') || '0';
230
+ const modalBody = document.getElementById('modalBody');
231
+
232
+ const iframeUrl = `https://www.gutenberg.org/cache/epub/${cleanId}/pg${cleanId}.txt`;
233
+ const iframe = document.createElement('iframe');
234
+ iframe.src = iframeUrl;
235
+ iframe.style = 'width:100%;height:70vh;border:none;background-color:#fff;';
236
+ iframe.onload = function() {
237
+ const spinner = document.getElementById('loadingSpinner');
238
+ if (spinner) spinner.style.display = 'none';
239
+ };
240
+
241
+ const qqDiv = document.createElement('div');
242
+ qqDiv.className = 'modal-qq';
243
+ qqDiv.innerHTML = `
244
+ <span>联系客服购买:</span>
245
+ <a href="https://qm.qq.com/q/704100972" target="_blank" class="qq-link">
246
+ QQ客服:704100972
247
+ </a>
248
+ `;
249
+
250
+ modalBody.innerHTML = '';
251
+ modalBody.appendChild(iframe);
252
+ modalBody.appendChild(qqDiv);
253
+
254
+ } catch (error) {
255
+ if (bookId !== currentBookId) return;
256
+
257
+ const modalBody = document.getElementById('modalBody');
258
+ modalBody.innerHTML = `
259
+ <div class="modal-error">
260
+ <p>⚠️ 无法加载小说全文</p>
261
+ <p style="font-size: 0.9rem; margin-top: 10px; color: #95a5a6;">
262
+ 请访问
263
+ <a href="https://www.gutenberg.org/ebooks/${bookId.replace(/^0+/, '')}"
264
+ target="_blank"
265
+ style="color: #3498db;">书目官方网站</a>
266
+ 获取更多资源
267
+ </p>
268
+ </div>
269
+ <div class="modal-qq">
270
+ <span>联系客服购买:</span>
271
+ <a href="https://qm.qq.com/q/704100972" target="_blank" class="qq-link">
272
+ QQ客服:704100972
273
+ </a>
274
+ </div>
275
+ `;
276
+ }
277
+ }
278
+
279
+ document.addEventListener('DOMContentLoaded', function() {
280
+ const navToggle = document.getElementById('navToggle');
281
+ const navLinks = document.getElementById('navLinks');
282
+ if (navToggle && navLinks) {
283
+ navToggle.addEventListener('click', function() {
284
+ navLinks.classList.toggle('active');
285
+ });
286
+ }
287
+
288
+ if (document.getElementById('scrollContainer')) {
289
+ initBooksPage();
290
+ }
291
+ });
style.css ADDED
@@ -0,0 +1,1262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ html {
8
+ overflow-x: hidden;
9
+ width: 100%;
10
+ }
11
+
12
+ body {
13
+ font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
14
+ line-height: 1.6;
15
+ color: #333;
16
+ background-color: #f5f7fa;
17
+ width: 100%;
18
+ overflow-x: hidden;
19
+ }
20
+
21
+ /* ===== 统一导航栏样式 ===== */
22
+ .top-nav {
23
+ background: #fff;
24
+ border-bottom: 1px solid #e9ecef;
25
+ position: sticky;
26
+ top: 0;
27
+ z-index: 100;
28
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
29
+ }
30
+ .nav-container {
31
+ max-width: 1200px;
32
+ margin: 0 auto;
33
+ padding: 0 20px;
34
+ display: flex;
35
+ justify-content: space-between;
36
+ align-items: center;
37
+ height: 60px;
38
+ }
39
+ .nav-logo {
40
+ font-size: 1.1rem;
41
+ font-weight: 700;
42
+ color: #3498db;
43
+ text-decoration: none;
44
+ }
45
+ .nav-links {
46
+ display: flex;
47
+ gap: 20px;
48
+ }
49
+ .nav-link {
50
+ color: #7f8c8d;
51
+ text-decoration: none;
52
+ font-size: 0.95rem;
53
+ transition: color 0.3s;
54
+ padding: 8px 0;
55
+ border-bottom: 2px solid transparent;
56
+ }
57
+ .nav-link:hover, .nav-link.active {
58
+ color: #3498db;
59
+ border-bottom-color: #3498db;
60
+ }
61
+ .nav-toggle {
62
+ display: none;
63
+ flex-direction: column;
64
+ justify-content: space-between;
65
+ width: 28px;
66
+ height: 20px;
67
+ cursor: pointer;
68
+ padding: 0;
69
+ }
70
+ .nav-toggle span {
71
+ display: block;
72
+ width: 100%;
73
+ height: 3px;
74
+ background-color: #3498db;
75
+ border-radius: 2px;
76
+ transition: all 0.3s;
77
+ }
78
+
79
+ /* ===== 统一页脚样式 ===== */
80
+ .footer {
81
+ background: #2c3e50;
82
+ color: #fff;
83
+ text-align: center;
84
+ padding: 30px 20px;
85
+ margin-top: 60px;
86
+ }
87
+ .footer p {
88
+ font-size: 0.9rem;
89
+ opacity: 0.8;
90
+ }
91
+
92
+ /* ===== 首页样式 ===== */
93
+ .header {
94
+ background-color: white;
95
+ padding: 40px 20px;
96
+ text-align: center;
97
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
98
+ }
99
+
100
+ .container {
101
+ max-width: 1200px;
102
+ margin: 0 auto;
103
+ padding: 0 20px;
104
+ }
105
+
106
+ .banner {
107
+ margin-bottom: 30px;
108
+ border-radius: 12px;
109
+ overflow: hidden;
110
+ box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
111
+ }
112
+
113
+ .banner img {
114
+ width: 100%;
115
+ height: auto;
116
+ display: block;
117
+ }
118
+
119
+ .header-content {
120
+ max-width: 800px;
121
+ margin: 0 auto;
122
+ }
123
+
124
+ .header h1 {
125
+ font-size: 2.8rem;
126
+ margin-bottom: 15px;
127
+ color: #2c3e50;
128
+ font-weight: 700;
129
+ line-height: 1.2;
130
+ }
131
+
132
+ .header p {
133
+ font-size: 1.2rem;
134
+ margin-bottom: 30px;
135
+ color: #7f8c8d;
136
+ }
137
+
138
+ .btn {
139
+ display: inline-block;
140
+ padding: 15px 35px;
141
+ background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
142
+ color: white;
143
+ text-decoration: none;
144
+ border-radius: 30px;
145
+ font-weight: 600;
146
+ font-size: 1.1rem;
147
+ transition: transform 0.2s, box-shadow 0.2s;
148
+ }
149
+
150
+ .btn:hover {
151
+ transform: translateY(-2px);
152
+ box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
153
+ }
154
+
155
+ .resources {
156
+ padding: 80px 20px;
157
+ background-color: #fff;
158
+ }
159
+
160
+ .resources h2 {
161
+ font-size: 2.2rem;
162
+ text-align: center;
163
+ color: #2c3e50;
164
+ margin-bottom: 15px;
165
+ }
166
+
167
+ .resources-subtitle {
168
+ text-align: center;
169
+ color: #7f8c8d;
170
+ font-size: 1.1rem;
171
+ margin-bottom: 50px;
172
+ max-width: 700px;
173
+ margin-left: auto;
174
+ margin-right: auto;
175
+ }
176
+
177
+ .resources-grid {
178
+ display: grid;
179
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
180
+ gap: 30px;
181
+ max-width: 1000px;
182
+ margin: 0 auto;
183
+ }
184
+
185
+ .resource-card {
186
+ background: #f8f9fa;
187
+ border-radius: 15px;
188
+ padding: 30px;
189
+ border: 1px solid #e9ecef;
190
+ transition: transform 0.2s, box-shadow 0.2s;
191
+ }
192
+
193
+ .resource-card:hover {
194
+ transform: translateY(-5px);
195
+ box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
196
+ }
197
+
198
+ .resource-badge {
199
+ display: inline-block;
200
+ padding: 6px 12px;
201
+ border-radius: 20px;
202
+ font-size: 0.85rem;
203
+ font-weight: 600;
204
+ margin-bottom: 15px;
205
+ }
206
+
207
+ .badge-primary {
208
+ background: #e8f4fd;
209
+ color: #3498db;
210
+ }
211
+
212
+ .badge-secondary {
213
+ background: #fef5e7;
214
+ color: #f39c12;
215
+ }
216
+
217
+ .resource-content h3 {
218
+ font-size: 1.3rem;
219
+ color: #2c3e50;
220
+ margin-bottom: 12px;
221
+ }
222
+
223
+ .resource-content p {
224
+ color: #7f8c8d;
225
+ font-size: 0.95rem;
226
+ line-height: 1.7;
227
+ margin-bottom: 20px;
228
+ }
229
+
230
+ .resource-link {
231
+ display: inline-block;
232
+ color: #3498db;
233
+ text-decoration: none;
234
+ font-weight: 600;
235
+ transition: color 0.3s;
236
+ }
237
+
238
+ .resource-link:hover {
239
+ color: #2980b9;
240
+ text-decoration: underline;
241
+ }
242
+
243
+ .features {
244
+ padding: 80px 20px;
245
+ background-color: #f8f9fa;
246
+ }
247
+
248
+ .features h2 {
249
+ font-size: 2.2rem;
250
+ text-align: center;
251
+ color: #2c3e50;
252
+ margin-bottom: 50px;
253
+ }
254
+
255
+ .features-grid {
256
+ display: grid;
257
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
258
+ gap: 40px;
259
+ max-width: 1000px;
260
+ margin: 0 auto;
261
+ }
262
+
263
+ .feature-item {
264
+ text-align: center;
265
+ padding: 30px 20px;
266
+ }
267
+
268
+ .feature-icon {
269
+ font-size: 3.5rem;
270
+ margin-bottom: 20px;
271
+ }
272
+
273
+ .feature-item h3 {
274
+ font-size: 1.3rem;
275
+ color: #2c3e50;
276
+ margin-bottom: 12px;
277
+ }
278
+
279
+ .feature-item p {
280
+ color: #7f8c8d;
281
+ font-size: 0.95rem;
282
+ line-height: 1.7;
283
+ }
284
+
285
+ .philosophy {
286
+ padding: 80px 20px;
287
+ background-color: #fff;
288
+ }
289
+
290
+ .philosophy h2 {
291
+ font-size: 2.2rem;
292
+ text-align: center;
293
+ color: #2c3e50;
294
+ margin-bottom: 40px;
295
+ }
296
+
297
+ .philosophy-content {
298
+ max-width: 800px;
299
+ margin: 0 auto;
300
+ text-align: center;
301
+ }
302
+
303
+ .philosophy-content > p {
304
+ color: #555;
305
+ font-size: 1.05rem;
306
+ line-height: 1.9;
307
+ margin-bottom: 30px;
308
+ }
309
+
310
+ .philosophy-list {
311
+ text-align: left;
312
+ list-style: none;
313
+ padding: 0;
314
+ margin-bottom: 30px;
315
+ }
316
+
317
+ .philosophy-list li {
318
+ padding: 12px 0;
319
+ color: #555;
320
+ font-size: 1rem;
321
+ border-bottom: 1px solid #e9ecef;
322
+ }
323
+
324
+ .philosophy-list li:last-child {
325
+ border-bottom: none;
326
+ }
327
+
328
+ .philosophy-list strong {
329
+ color: #3498db;
330
+ }
331
+
332
+ /* ===== 页面通用容器样式 ===== */
333
+ .page-container {
334
+ max-width: 1200px;
335
+ margin: 0 auto;
336
+ padding: 60px 20px;
337
+ }
338
+
339
+ .page-header {
340
+ text-align: center;
341
+ margin-bottom: 50px;
342
+ }
343
+
344
+ .page-header h1 {
345
+ font-size: 2.5rem;
346
+ color: #2c3e50;
347
+ margin-bottom: 15px;
348
+ }
349
+
350
+ .page-header p {
351
+ font-size: 1.1rem;
352
+ color: #7f8c8d;
353
+ }
354
+
355
+ /* ===== 图书列表页样式 ===== */
356
+ .books-page {
357
+ padding: 60px 20px;
358
+ min-height: calc(100vh - 200px);
359
+ }
360
+
361
+ .search-container {
362
+ max-width: 700px;
363
+ margin: 0 auto 50px;
364
+ position: relative;
365
+ }
366
+
367
+ .search-box {
368
+ width: 100%;
369
+ padding: 20px 30px 20px 60px;
370
+ font-size: 1.1rem;
371
+ border: 2px solid #e9ecef;
372
+ border-radius: 50px;
373
+ background: #fff;
374
+ color: #333;
375
+ box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
376
+ transition: all 0.3s ease;
377
+ }
378
+ .search-box:focus {
379
+ outline: none;
380
+ border-color: #3498db;
381
+ box-shadow: 0 4px 20px rgba(52, 152, 219, 0.2);
382
+ }
383
+ .search-box::placeholder { color: #95a5a6; }
384
+ .search-icon { position: absolute; left: 25px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; }
385
+
386
+ .stats {
387
+ display: flex;
388
+ justify-content: center;
389
+ gap: 40px;
390
+ margin-bottom: 40px;
391
+ flex-wrap: wrap;
392
+ }
393
+ .stat-item {
394
+ text-align: center;
395
+ padding: 20px 35px;
396
+ background: #fff;
397
+ border-radius: 15px;
398
+ box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
399
+ }
400
+ .stat-value { font-size: 2.5rem; font-weight: 700; color: #3498db; }
401
+ .stat-label { font-size: 0.9rem; color: #7f8c8d; margin-top: 5px; }
402
+
403
+ .virtual-scroll-container {
404
+ height: calc(100vh - 380px);
405
+ overflow-y: auto;
406
+ position: relative;
407
+ max-width: 1400px;
408
+ margin: 0 auto;
409
+ width: 100%;
410
+ overflow-x: hidden;
411
+ }
412
+ .virtual-scroll-spacer { position: relative; }
413
+ .book-grid {
414
+ display: grid;
415
+ grid-template-columns: repeat(2, 1fr);
416
+ gap: 25px;
417
+ padding: 0 20px 40px 20px;
418
+ box-sizing: border-box;
419
+ }
420
+ .book-card {
421
+ background: #fff;
422
+ border-radius: 20px;
423
+ padding: 25px;
424
+ cursor: pointer;
425
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
426
+ border: 1px solid #e9ecef;
427
+ height: 160px;
428
+ box-sizing: border-box;
429
+ box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
430
+ position: relative;
431
+ }
432
+ .book-card:hover {
433
+ transform: translateY(-5px);
434
+ box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
435
+ }
436
+ .book-title-zh {
437
+ font-size: 1.15rem;
438
+ font-weight: 600;
439
+ margin-bottom: 8px;
440
+ color: #2c3e50;
441
+ line-height: 1.3;
442
+ overflow: hidden;
443
+ text-overflow: ellipsis;
444
+ display: -webkit-box;
445
+ -webkit-line-clamp: 2;
446
+ -webkit-box-orient: vertical;
447
+ }
448
+ .book-title-en {
449
+ font-size: 0.9rem;
450
+ color: #7f8c8d;
451
+ margin-bottom: 15px;
452
+ overflow: hidden;
453
+ text-overflow: ellipsis;
454
+ white-space: nowrap;
455
+ }
456
+ .book-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
457
+ .book-duration { display: flex; align-items: center; gap: 8px; color: #95a5a6; font-size: 0.85rem; }
458
+ .book-duration-icon { font-size: 1rem; }
459
+ .book-price { font-size: 1.3rem; font-weight: 700; color: #3498db; }
460
+ .book-price span { font-size: 0.85rem; font-weight: 400; color: #7f8c8d; }
461
+
462
+ .book-qq {
463
+ position: absolute;
464
+ top: 15px;
465
+ right: 15px;
466
+ padding: 5px 10px;
467
+ background: #12B7F5;
468
+ color: #fff;
469
+ border-radius: 5px;
470
+ font-size: 0.8rem;
471
+ font-weight: 600;
472
+ cursor: pointer;
473
+ transition: transform 0.2s, background 0.2s;
474
+ }
475
+ .book-qq:hover {
476
+ background: #0fa3e8;
477
+ transform: scale(1.05);
478
+ }
479
+
480
+ .no-results { text-align: center; padding: 80px 20px; color: #7f8c8d; display: none; }
481
+ .no-results.visible { display: block; }
482
+ .no-results-icon { font-size: 4rem; margin-bottom: 20px; }
483
+ .no-results-text { font-size: 1.2rem; }
484
+
485
+ .modal-overlay {
486
+ position: fixed;
487
+ top: 0; left: 0; right: 0; bottom: 0;
488
+ background: rgba(0, 0, 0, 0.8);
489
+ backdrop-filter: blur(5px);
490
+ display: flex;
491
+ align-items: center;
492
+ justify-content: center;
493
+ z-index: 1000;
494
+ opacity: 0;
495
+ visibility: hidden;
496
+ transition: all 0.3s ease;
497
+ padding: 20px;
498
+ }
499
+ .modal-overlay.active { opacity: 1; visibility: visible; }
500
+ .modal {
501
+ background: #fff;
502
+ border-radius: 25px;
503
+ max-width: 900px;
504
+ width: 100%;
505
+ max-height: 95vh;
506
+ overflow: hidden;
507
+ transform: scale(0.9);
508
+ transition: transform 0.3s ease;
509
+ border: 1px solid #e9ecef;
510
+ box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
511
+ display: flex;
512
+ flex-direction: column;
513
+ }
514
+ .modal-overlay.active .modal { transform: scale(1); }
515
+ .modal-header { padding: 25px 30px; border-bottom: 1px solid #e9ecef; position: relative; flex-shrink: 0; }
516
+ .modal-close {
517
+ position: absolute;
518
+ top: 20px; right: 20px;
519
+ width: 40px; height: 40px;
520
+ border: none;
521
+ background: #f5f7fa;
522
+ border-radius: 50%;
523
+ color: #7f8c8d;
524
+ font-size: 1.5rem;
525
+ cursor: pointer;
526
+ transition: all 0.3s ease;
527
+ display: flex;
528
+ align-items: center;
529
+ justify-content: center;
530
+ }
531
+ .modal-close:hover { background: #e9ecef; }
532
+ .modal-title-zh { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; padding-right: 50px; color: #2c3e50; }
533
+ .modal-title-en { font-size: 1rem; color: #7f8c8d; }
534
+ .modal-info { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
535
+ .modal-info-item { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: #7f8c8d; }
536
+ .modal-body { padding: 0; flex: 1; overflow-y: auto; min-height: 0; background-color: #f5f5f5; }
537
+ .modal-content {
538
+ padding: 25px 30px;
539
+ font-size: 1rem;
540
+ line-height: 1.8;
541
+ color: #333;
542
+ white-space: pre-wrap;
543
+ word-break: break-word;
544
+ }
545
+ .modal-loading {
546
+ display: flex;
547
+ flex-direction: column;
548
+ align-items: center;
549
+ justify-content: center;
550
+ padding: 60px 30px;
551
+ color: #7f8c8d;
552
+ }
553
+ .loading-spinner {
554
+ width: 40px;
555
+ height: 40px;
556
+ border: 3px solid #e9ecef;
557
+ border-top-color: #3498db;
558
+ border-radius: 50%;
559
+ animation: spin 1s linear infinite;
560
+ margin-bottom: 15px;
561
+ }
562
+ @keyframes spin { to { transform: rotate(360deg); } }
563
+ .list-loading {
564
+ display: flex;
565
+ flex-direction: column;
566
+ align-items: center;
567
+ justify-content: center;
568
+ padding: 60px 30px;
569
+ color: #7f8c8d;
570
+ position: absolute;
571
+ top: 0;
572
+ left: 0;
573
+ right: 0;
574
+ bottom: 0;
575
+ background: rgba(255,255,255,0.95);
576
+ z-index: 10;
577
+ }
578
+ .list-loading.hidden { display: none; }
579
+ .modal-error {
580
+ padding: 30px;
581
+ text-align: center;
582
+ color: #e74c3c;
583
+ }
584
+ .modal-qq {
585
+ display: flex;
586
+ align-items: center;
587
+ justify-content: center;
588
+ gap: 10px;
589
+ padding: 15px 20px;
590
+ background: #fff;
591
+ border-top: 1px solid #e9ecef;
592
+ font-size: 0.95rem;
593
+ color: #7f8c8d;
594
+ }
595
+ .qq-link {
596
+ display: flex;
597
+ align-items: center;
598
+ gap: 6px;
599
+ color: #12b7f5;
600
+ text-decoration: none;
601
+ font-weight: 600;
602
+ transition: color 0.2s;
603
+ }
604
+ .qq-link:hover {
605
+ color: #0fa3e8;
606
+ text-decoration: underline;
607
+ }
608
+
609
+ /* ===== 联系我们页样式 ===== */
610
+ .contact-wrapper {
611
+ display: grid;
612
+ grid-template-columns: 1fr 1fr;
613
+ gap: 40px;
614
+ align-items: start;
615
+ }
616
+
617
+ .qrcode-section {
618
+ background: #fff;
619
+ border-radius: 20px;
620
+ padding: 40px;
621
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
622
+ text-align: center;
623
+ }
624
+
625
+ .qrcode-section h2 {
626
+ font-size: 1.5rem;
627
+ color: #2c3e50;
628
+ margin-bottom: 25px;
629
+ }
630
+
631
+ .qrcode-img {
632
+ width: 220px;
633
+ height: 220px;
634
+ border-radius: 15px;
635
+ box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
636
+ margin-bottom: 20px;
637
+ object-fit: cover;
638
+ }
639
+
640
+ .qrcode-tip {
641
+ color: #7f8c8d;
642
+ font-size: 0.95rem;
643
+ }
644
+
645
+ .contact-list {
646
+ background: #fff;
647
+ border-radius: 20px;
648
+ padding: 35px;
649
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
650
+ }
651
+
652
+ .contact-list h2 {
653
+ font-size: 1.5rem;
654
+ color: #2c3e50;
655
+ margin-bottom: 30px;
656
+ text-align: center;
657
+ }
658
+
659
+ .contact-item {
660
+ display: flex;
661
+ align-items: center;
662
+ gap: 20px;
663
+ padding: 20px 0;
664
+ border-bottom: 1px solid #f0f0f0;
665
+ }
666
+
667
+ .contact-item:last-child {
668
+ border-bottom: none;
669
+ }
670
+
671
+ .contact-icon {
672
+ width: 50px;
673
+ height: 50px;
674
+ background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
675
+ border-radius: 12px;
676
+ display: flex;
677
+ align-items: center;
678
+ justify-content: center;
679
+ font-size: 1.3rem;
680
+ flex-shrink: 0;
681
+ }
682
+
683
+ .contact-info h3 {
684
+ font-size: 1rem;
685
+ color: #2c3e50;
686
+ margin-bottom: 5px;
687
+ }
688
+
689
+ .contact-info p {
690
+ color: #7f8c8d;
691
+ font-size: 0.95rem;
692
+ }
693
+
694
+ .contact-info a {
695
+ color: #3498db;
696
+ text-decoration: none;
697
+ transition: color 0.3s;
698
+ }
699
+
700
+ .contact-info a:hover {
701
+ color: #2980b9;
702
+ text-decoration: underline;
703
+ }
704
+
705
+ /* ===== 打包套餐页样式 ===== */
706
+ .pricing-grid {
707
+ display: grid;
708
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
709
+ gap: 30px;
710
+ margin-bottom: 60px;
711
+ }
712
+
713
+ .pricing-card {
714
+ background: #fff;
715
+ border-radius: 20px;
716
+ padding: 35px;
717
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
718
+ text-align: center;
719
+ transition: transform 0.3s, box-shadow 0.3s;
720
+ position: relative;
721
+ overflow: hidden;
722
+ }
723
+
724
+ .pricing-card:hover {
725
+ transform: translateY(-5px);
726
+ box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
727
+ }
728
+
729
+ .pricing-card.featured {
730
+ border: 2px solid #3498db;
731
+ }
732
+
733
+ .pricing-card.featured::before {
734
+ content: '推荐';
735
+ position: absolute;
736
+ top: 15px;
737
+ right: -30px;
738
+ background: #3498db;
739
+ color: #fff;
740
+ padding: 5px 40px;
741
+ font-size: 0.8rem;
742
+ transform: rotate(45deg);
743
+ }
744
+
745
+ .pricing-badge {
746
+ display: inline-block;
747
+ padding: 6px 15px;
748
+ border-radius: 20px;
749
+ font-size: 0.85rem;
750
+ font-weight: 600;
751
+ margin-bottom: 20px;
752
+ }
753
+
754
+ .badge-pdf-us {
755
+ background: #e8f4fd;
756
+ color: #3498db;
757
+ }
758
+
759
+ .badge-pdf-uk {
760
+ background: #fef5e7;
761
+ color: #f39c12;
762
+ }
763
+
764
+ .badge-pdf-300 {
765
+ background: #e8fce8;
766
+ color: #27ae60;
767
+ }
768
+
769
+ .badge-bundle {
770
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
771
+ color: #fff;
772
+ }
773
+
774
+ .pricing-card h3 {
775
+ font-size: 1.4rem;
776
+ color: #2c3e50;
777
+ margin-bottom: 15px;
778
+ }
779
+
780
+ .pricing-card .description {
781
+ color: #7f8c8d;
782
+ font-size: 0.95rem;
783
+ margin-bottom: 25px;
784
+ min-height: 50px;
785
+ }
786
+
787
+ .price {
788
+ font-size: 2.8rem;
789
+ font-weight: 700;
790
+ color: #2c3e50;
791
+ margin-bottom: 5px;
792
+ }
793
+
794
+ .price-note {
795
+ font-size: 0.9rem;
796
+ color: #95a5a6;
797
+ margin-bottom: 25px;
798
+ }
799
+
800
+ .pricing-btn {
801
+ display: inline-block;
802
+ padding: 12px 30px;
803
+ background: #3498db;
804
+ color: #fff;
805
+ text-decoration: none;
806
+ border-radius: 25px;
807
+ font-weight: 600;
808
+ transition: background 0.3s, transform 0.2s;
809
+ }
810
+
811
+ .pricing-btn:hover {
812
+ background: #2980b9;
813
+ transform: translateY(-2px);
814
+ }
815
+
816
+ .pricing-btn.qq {
817
+ background: #12B7F5;
818
+ }
819
+
820
+ .pricing-btn.qq:hover {
821
+ background: #0fa3e8;
822
+ }
823
+
824
+ .features-section {
825
+ background: #fff;
826
+ border-radius: 20px;
827
+ padding: 50px;
828
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
829
+ }
830
+
831
+ .features-section h2 {
832
+ font-size: 2rem;
833
+ color: #2c3e50;
834
+ text-align: center;
835
+ margin-bottom: 40px;
836
+ }
837
+
838
+ .features-section .features-list {
839
+ display: grid;
840
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
841
+ gap: 30px;
842
+ }
843
+
844
+ .features-section .feature-item {
845
+ display: flex;
846
+ align-items: flex-start;
847
+ gap: 15px;
848
+ text-align: left;
849
+ padding: 0;
850
+ }
851
+
852
+ .features-section .feature-icon {
853
+ width: 50px;
854
+ height: 50px;
855
+ background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
856
+ border-radius: 12px;
857
+ display: flex;
858
+ align-items: center;
859
+ justify-content: center;
860
+ font-size: 1.5rem;
861
+ flex-shrink: 0;
862
+ margin-bottom: 0;
863
+ }
864
+
865
+ .features-section .feature-text h4 {
866
+ font-size: 1.1rem;
867
+ color: #2c3e50;
868
+ margin-bottom: 5px;
869
+ }
870
+
871
+ .features-section .feature-text p {
872
+ color: #7f8c8d;
873
+ font-size: 0.9rem;
874
+ }
875
+
876
+ /* ===== 定制编辑页样式 ===== */
877
+ .tips-section {
878
+ background: #fff;
879
+ border-radius: 20px;
880
+ padding: 35px;
881
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
882
+ margin-bottom: 30px;
883
+ }
884
+
885
+ .tips-section h2 {
886
+ font-size: 1.4rem;
887
+ color: #2c3e50;
888
+ margin-bottom: 20px;
889
+ padding-bottom: 10px;
890
+ border-bottom: 2px solid #3498db;
891
+ }
892
+
893
+ .tips-section h3 {
894
+ font-size: 1.1rem;
895
+ color: #e74c3c;
896
+ margin: 20px 0 10px;
897
+ }
898
+
899
+ .tips-section p, .tips-section li {
900
+ color: #555;
901
+ font-size: 0.95rem;
902
+ line-height: 1.8;
903
+ }
904
+
905
+ .tips-section ul {
906
+ padding-left: 25px;
907
+ margin: 10px 0;
908
+ }
909
+
910
+ .tips-section li {
911
+ margin-bottom: 8px;
912
+ }
913
+
914
+ .example-box {
915
+ background: #f8f9fa;
916
+ border-left: 4px solid #3498db;
917
+ padding: 15px 20px;
918
+ margin: 15px 0;
919
+ border-radius: 0 10px 10px 0;
920
+ }
921
+
922
+ .example-box p {
923
+ margin-bottom: 5px;
924
+ }
925
+
926
+ .warning-box {
927
+ background: #fff3cd;
928
+ border: 1px solid #ffc107;
929
+ border-radius: 10px;
930
+ padding: 20px;
931
+ margin: 20px 0;
932
+ }
933
+
934
+ .warning-box h4 {
935
+ color: #856404;
936
+ margin-bottom: 10px;
937
+ }
938
+
939
+ .pricing-section {
940
+ background: #fff;
941
+ border-radius: 20px;
942
+ padding: 35px;
943
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
944
+ margin-bottom: 30px;
945
+ }
946
+
947
+ .pricing-section h2 {
948
+ font-size: 1.4rem;
949
+ color: #2c3e50;
950
+ margin-bottom: 25px;
951
+ padding-bottom: 10px;
952
+ border-bottom: 2px solid #3498db;
953
+ }
954
+
955
+ .pricing-table {
956
+ width: 100%;
957
+ border-collapse: collapse;
958
+ }
959
+
960
+ .pricing-table th,
961
+ .pricing-table td {
962
+ padding: 15px 20px;
963
+ text-align: left;
964
+ border-bottom: 1px solid #e9ecef;
965
+ }
966
+
967
+ .pricing-table th {
968
+ background: #f8f9fa;
969
+ font-weight: 600;
970
+ color: #2c3e50;
971
+ }
972
+
973
+ .pricing-table tr:hover {
974
+ background: #f8f9fa;
975
+ }
976
+
977
+ .price-tag {
978
+ font-weight: 700;
979
+ color: #e74c3c;
980
+ font-size: 1.1rem;
981
+ }
982
+
983
+ .discount-box {
984
+ background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
985
+ border-radius: 15px;
986
+ padding: 25px;
987
+ color: #fff;
988
+ margin-top: 25px;
989
+ }
990
+
991
+ .discount-box h3 {
992
+ font-size: 1.2rem;
993
+ margin-bottom: 15px;
994
+ color: #fff;
995
+ }
996
+
997
+ .discount-box ul {
998
+ list-style: none;
999
+ padding: 0;
1000
+ }
1001
+
1002
+ .discount-box li {
1003
+ padding: 8px 0;
1004
+ font-size: 0.95rem;
1005
+ color: #fff;
1006
+ }
1007
+
1008
+ .calculator-section {
1009
+ background: #fff;
1010
+ border-radius: 20px;
1011
+ padding: 35px;
1012
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
1013
+ margin-bottom: 30px;
1014
+ }
1015
+
1016
+ .calculator-section h2 {
1017
+ font-size: 1.4rem;
1018
+ color: #2c3e50;
1019
+ margin-bottom: 25px;
1020
+ padding-bottom: 10px;
1021
+ border-bottom: 2px solid #3498db;
1022
+ }
1023
+
1024
+ .form-group {
1025
+ margin-bottom: 25px;
1026
+ }
1027
+
1028
+ .form-group label {
1029
+ display: block;
1030
+ font-weight: 600;
1031
+ color: #2c3e50;
1032
+ margin-bottom: 10px;
1033
+ }
1034
+
1035
+ .form-group input[type="number"] {
1036
+ width: 100%;
1037
+ max-width: 300px;
1038
+ padding: 12px 15px;
1039
+ border: 2px solid #e9ecef;
1040
+ border-radius: 10px;
1041
+ font-size: 1rem;
1042
+ transition: border-color 0.3s;
1043
+ }
1044
+
1045
+ .form-group input[type="number"]:focus {
1046
+ outline: none;
1047
+ border-color: #3498db;
1048
+ }
1049
+
1050
+ .checkbox-group {
1051
+ display: grid;
1052
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
1053
+ gap: 15px;
1054
+ }
1055
+
1056
+ .checkbox-item {
1057
+ display: flex;
1058
+ align-items: center;
1059
+ gap: 10px;
1060
+ padding: 15px;
1061
+ background: #f8f9fa;
1062
+ border-radius: 10px;
1063
+ cursor: pointer;
1064
+ transition: background 0.3s;
1065
+ }
1066
+
1067
+ .checkbox-item:hover {
1068
+ background: #e9ecef;
1069
+ }
1070
+
1071
+ .checkbox-item input[type="checkbox"] {
1072
+ width: 20px;
1073
+ height: 20px;
1074
+ cursor: pointer;
1075
+ }
1076
+
1077
+ .checkbox-item span {
1078
+ color: #2c3e50;
1079
+ }
1080
+
1081
+ .result-box {
1082
+ background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
1083
+ border-radius: 15px;
1084
+ padding: 30px;
1085
+ text-align: center;
1086
+ color: #fff;
1087
+ margin-top: 30px;
1088
+ display: none;
1089
+ }
1090
+
1091
+ .result-box.visible {
1092
+ display: block;
1093
+ }
1094
+
1095
+ .result-box h3 {
1096
+ font-size: 1.2rem;
1097
+ margin-bottom: 15px;
1098
+ }
1099
+
1100
+ .result-price {
1101
+ font-size: 3rem;
1102
+ font-weight: 700;
1103
+ }
1104
+
1105
+ .result-note {
1106
+ font-size: 0.9rem;
1107
+ opacity: 0.9;
1108
+ margin-top: 10px;
1109
+ }
1110
+
1111
+ .result-discount {
1112
+ background: #27ae60;
1113
+ border-radius: 10px;
1114
+ padding: 10px 20px;
1115
+ margin-top: 15px;
1116
+ display: inline-block;
1117
+ }
1118
+
1119
+ .contact-section {
1120
+ background: #fff;
1121
+ border-radius: 20px;
1122
+ padding: 35px;
1123
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
1124
+ text-align: center;
1125
+ }
1126
+
1127
+ .contact-section h2 {
1128
+ font-size: 1.4rem;
1129
+ color: #2c3e50;
1130
+ margin-bottom: 20px;
1131
+ }
1132
+
1133
+ .contact-section p {
1134
+ color: #7f8c8d;
1135
+ margin-bottom: 25px;
1136
+ }
1137
+
1138
+ .contact-btn {
1139
+ display: inline-block;
1140
+ padding: 15px 40px;
1141
+ background: #12B7F5;
1142
+ color: #fff;
1143
+ text-decoration: none;
1144
+ border-radius: 30px;
1145
+ font-weight: 600;
1146
+ font-size: 1.1rem;
1147
+ transition: background 0.3s, transform 0.2s;
1148
+ }
1149
+
1150
+ .contact-btn:hover {
1151
+ background: #0fa3e8;
1152
+ transform: translateY(-2px);
1153
+ }
1154
+
1155
+ /* ===== 响应式设计 ===== */
1156
+ @media (max-width: 768px) {
1157
+ .nav-links {
1158
+ display: none;
1159
+ position: absolute;
1160
+ top: 60px;
1161
+ left: 0;
1162
+ right: 0;
1163
+ background: #fff;
1164
+ flex-direction: column;
1165
+ gap: 0;
1166
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
1167
+ z-index: 99;
1168
+ }
1169
+ .nav-links.active {
1170
+ display: flex;
1171
+ }
1172
+ .nav-link {
1173
+ padding: 12px 20px;
1174
+ border-bottom: 1px solid #e9ecef;
1175
+ border-bottom-color: transparent;
1176
+ }
1177
+ .nav-link:hover, .nav-link.active {
1178
+ border-bottom-color: transparent;
1179
+ background: #f5f7fa;
1180
+ }
1181
+ .nav-toggle {
1182
+ display: flex;
1183
+ }
1184
+
1185
+ .header h1 {
1186
+ font-size: 2.2rem;
1187
+ }
1188
+ .header p {
1189
+ font-size: 1.1rem;
1190
+ }
1191
+ .resources h2,
1192
+ .features h2,
1193
+ .philosophy h2 {
1194
+ font-size: 1.8rem;
1195
+ }
1196
+ .resources,
1197
+ .features,
1198
+ .philosophy {
1199
+ padding: 60px 20px;
1200
+ }
1201
+ .resource-card,
1202
+ .feature-item {
1203
+ padding: 25px 15px;
1204
+ }
1205
+ .resources-grid {
1206
+ grid-template-columns: 1fr;
1207
+ max-width: 100%;
1208
+ }
1209
+
1210
+ .book-grid { grid-template-columns: 1fr; }
1211
+ .virtual-scroll-container { height: calc(100vh - 450px); }
1212
+ .page-header h1 { font-size: 1.8rem; }
1213
+ .stats { gap: 20px; }
1214
+ .stat-item { padding: 15px 25px; }
1215
+ .stat-value { font-size: 2rem; }
1216
+ .modal { max-width: 95%; }
1217
+ .modal-title-zh { font-size: 1.3rem; }
1218
+
1219
+ .contact-wrapper {
1220
+ grid-template-columns: 1fr;
1221
+ }
1222
+ .qrcode-section, .contact-list { padding: 30px 20px; }
1223
+ .qrcode-img { width: 180px; height: 180px; }
1224
+
1225
+ .pricing-card { padding: 25px; }
1226
+ .features-section { padding: 30px 20px; }
1227
+
1228
+ .pricing-section, .calculator-section, .contact-section, .tips-section { padding: 25px 20px; }
1229
+ .pricing-table th, .pricing-table td { padding: 10px 12px; font-size: 0.9rem; }
1230
+ }
1231
+
1232
+ @media (max-width: 480px) {
1233
+ .header h1 {
1234
+ font-size: 1.8rem;
1235
+ }
1236
+ .header p {
1237
+ font-size: 1rem;
1238
+ }
1239
+ .btn {
1240
+ padding: 12px 24px;
1241
+ font-size: 1rem;
1242
+ }
1243
+ .resource-badge {
1244
+ margin: 15px 0 10px 15px;
1245
+ }
1246
+ .resource-content {
1247
+ padding: 0 15px 20px;
1248
+ }
1249
+
1250
+ .page-header h1 { font-size: 1.5rem; }
1251
+ .book-card { padding: 15px; height: 150px; }
1252
+ .book-title-zh { font-size: 1rem; }
1253
+ .modal-title-zh { font-size: 1.1rem; }
1254
+ .contact-item { padding: 15px 0; }
1255
+ .contact-icon { width: 45px; height: 45px; font-size: 1.1rem; }
1256
+ .price { font-size: 2.2rem; }
1257
+ }
1258
+
1259
+ ::-webkit-scrollbar { width: 6px; }
1260
+ ::-webkit-scrollbar-track { background: #f5f7fa; }
1261
+ ::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
1262
+ ::-webkit-scrollbar-thumb:hover { background: #aaa; }
wechat-qrcode.jpg ADDED

Git LFS Details

  • SHA256: 2237b57cd8dd9d62233faf6c531196303223673ef814cb08ee0fdceeca5481a8
  • Pointer size: 131 Bytes
  • Size of remote file: 155 kB