This repository was archived by the owner on Apr 14, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy path談判與商業溝通_互動圖表.html
More file actions
1110 lines (962 loc) · 41.4 KB
/
Copy path談判與商業溝通_互動圖表.html
File metadata and controls
1110 lines (962 loc) · 41.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>談判與商業溝通:互動工具</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
min-height: 100vh;
padding: 20px;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
background: white;
border-radius: 12px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 40px 20px;
text-align: center;
}
.header h1 {
font-size: 2.5em;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.header p {
font-size: 1.1em;
opacity: 0.95;
}
.tabs {
display: flex;
border-bottom: 2px solid #e0e0e0;
background: #f5f5f5;
flex-wrap: wrap;
}
.tab-button {
flex: 1;
min-width: 150px;
padding: 15px 20px;
border: none;
background: #f5f5f5;
cursor: pointer;
font-size: 0.95em;
font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
color: #666;
transition: all 0.3s ease;
border-bottom: 3px solid transparent;
}
.tab-button:hover {
background: #e8e8e8;
color: #333;
}
.tab-button.active {
background: white;
color: #667eea;
border-bottom-color: #667eea;
}
.content {
padding: 40px;
display: none;
}
.content.active {
display: block;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.section-title {
font-size: 1.8em;
color: #667eea;
margin-bottom: 20px;
border-bottom: 2px solid #a18cd1;
padding-bottom: 10px;
}
.input-group {
margin: 20px 0;
}
label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: #333;
}
input[type="number"],
input[type="text"],
select {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 6px;
font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
font-size: 1em;
}
input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 12px 30px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 1em;
font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
transition: transform 0.2s ease;
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
button:active {
transform: translateY(0);
}
.result-box {
background: #f0f4ff;
padding: 20px;
border-left: 4px solid #667eea;
border-radius: 6px;
margin-top: 20px;
}
.result-item {
margin: 10px 0;
font-size: 1.05em;
}
.result-item strong {
color: #667eea;
}
.chart {
margin: 30px 0;
padding: 20px;
background: #f9f9f9;
border-radius: 8px;
}
.grid-2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.card {
background: white;
padding: 20px;
border-radius: 8px;
border: 1px solid #e0e0e0;
transition: all 0.3s ease;
}
.card:hover {
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.card h3 {
color: #667eea;
margin-bottom: 10px;
font-size: 1.2em;
}
.card p {
color: #666;
line-height: 1.6;
}
.quiz-option {
background: white;
border: 2px solid #ddd;
padding: 15px;
margin: 10px 0;
border-radius: 6px;
cursor: pointer;
transition: all 0.3s ease;
}
.quiz-option:hover {
border-color: #667eea;
background: #f0f4ff;
}
.quiz-option input[type="radio"] {
margin-right: 10px;
}
.quiz-option.selected {
border-color: #667eea;
background: #f0f4ff;
}
.dimension-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
margin: 20px 0;
}
.dimension-scale {
margin: 20px 0;
}
.scale-labels {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
font-size: 0.9em;
color: #666;
}
input[type="range"] {
width: 100%;
height: 6px;
border-radius: 3px;
background: linear-gradient(to right, #764ba2, #667eea);
outline: none;
-webkit-appearance: none;
appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: white;
border: 3px solid #667eea;
cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
width: 20px;
height: 20px;
border-radius: 50%;
background: white;
border: 3px solid #667eea;
cursor: pointer;
}
.style-indicator {
text-align: center;
margin-top: 20px;
padding: 20px;
background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
border-radius: 8px;
color: white;
font-weight: bold;
font-size: 1.3em;
}
.tkm-quadrant {
width: 100%;
height: 500px;
border: 2px solid #ddd;
border-radius: 8px;
position: relative;
background: white;
margin: 20px 0;
}
.tkm-quadrant-axis {
position: absolute;
background: #ddd;
}
.tkm-horizontal {
top: 50%;
left: 0;
right: 0;
height: 2px;
transform: translateY(-1px);
}
.tkm-vertical {
left: 50%;
top: 0;
bottom: 0;
width: 2px;
transform: translateX(-1px);
}
.tkm-quadrant-text {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 0.9em;
}
.tkm-competing {
top: 5%;
right: 5%;
width: 40%;
height: 40%;
color: #d32f2f;
border: 2px solid #ffcdd2;
background: #ffebee;
border-radius: 6px;
}
.tkm-collaborating {
top: 5%;
left: 5%;
width: 40%;
height: 40%;
color: #2196f3;
border: 2px solid #bbdefb;
background: #e3f2fd;
border-radius: 6px;
}
.tkm-compromising {
top: 50%;
left: 50%;
width: 20%;
height: 20%;
transform: translate(-50%, -50%);
color: #ff9800;
border: 2px solid #ffe0b2;
background: #fff3e0;
border-radius: 6px;
}
.tkm-avoiding {
bottom: 5%;
right: 5%;
width: 40%;
height: 40%;
color: #999;
border: 2px solid #e0e0e0;
background: #f5f5f5;
border-radius: 6px;
}
.tkm-accommodating {
bottom: 5%;
left: 5%;
width: 40%;
height: 40%;
color: #4caf50;
border: 2px solid #c8e6c9;
background: #f1f8e9;
border-radius: 6px;
}
.axis-label {
position: absolute;
font-weight: bold;
color: #666;
font-size: 0.85em;
}
.axis-x-low {
bottom: -30px;
left: 10px;
}
.axis-x-high {
bottom: -30px;
right: 10px;
}
.axis-y-low {
left: -100px;
bottom: 10px;
width: 90px;
}
.axis-y-high {
left: -120px;
top: 10px;
width: 110px;
}
.presentation-builder {
margin: 20px 0;
}
.slide-item {
background: #f9f9f9;
padding: 15px;
margin: 10px 0;
border-left: 4px solid #667eea;
border-radius: 4px;
display: flex;
justify-content: space-between;
align-items: center;
}
.slide-item input {
flex: 1;
}
.slide-item button {
margin-left: 10px;
padding: 8px 15px;
background: #d32f2f;
color: white;
}
.slides-preview {
background: white;
padding: 20px;
border: 1px solid #ddd;
border-radius: 8px;
margin-top: 20px;
}
.slides-preview h4 {
color: #667eea;
margin-bottom: 15px;
}
.slide-preview-item {
padding: 10px;
margin: 5px 0;
background: #f0f4ff;
border-left: 3px solid #667eea;
border-radius: 4px;
}
@media (max-width: 768px) {
.header h1 {
font-size: 1.8em;
}
.grid-2 {
grid-template-columns: 1fr;
}
.dimension-grid {
grid-template-columns: 1fr;
}
.tab-button {
min-width: 100px;
padding: 12px 10px;
font-size: 0.85em;
}
.content {
padding: 20px;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>談判與商業溝通</h1>
<p>互動工具與決策輔助系統</p>
</div>
<div class="tabs">
<button class="tab-button active" onclick="switchTab(0)">BATNA/ZOPA分析器</button>
<button class="tab-button" onclick="switchTab(1)">談判風格診斷</button>
<button class="tab-button" onclick="switchTab(2)">衝突管理模式圖</button>
<button class="tab-button" onclick="switchTab(3)">跨文化溝通指南</button>
<button class="tab-button" onclick="switchTab(4)">簡報結構建構器</button>
</div>
<!-- Tab 1: BATNA/ZOPA分析器 -->
<div class="content active" id="tab0">
<h2 class="section-title">BATNA / ZOPA 分析器</h2>
<p style="margin-bottom: 20px; color: #666;">輸入雙方的保留價格,系統將自動計算談判區間並給出建議。</p>
<div class="grid-2">
<div>
<h3 style="color: #667eea; margin-bottom: 15px;">你的資訊</h3>
<div class="input-group">
<label>你的BATNA價值</label>
<input type="number" id="myBatna" placeholder="例:100000" value="100000">
</div>
<div class="input-group">
<label>你的保留價格(最高願付/最低願收)</label>
<input type="number" id="myReservation" placeholder="例:120000" value="120000">
</div>
<div class="input-group">
<label>你的目標價格</label>
<input type="number" id="myTarget" placeholder="例:130000" value="130000">
</div>
</div>
<div>
<h3 style="color: #667eea; margin-bottom: 15px;">對方資訊</h3>
<div class="input-group">
<label>對方的BATNA價值</label>
<input type="number" id="theirBatna" placeholder="例:95000" value="95000">
</div>
<div class="input-group">
<label>對方的保留價格</label>
<input type="number" id="theirReservation" placeholder="例:110000" value="110000">
</div>
<div class="input-group">
<label>對方的目標價格</label>
<input type="number" id="theirTarget" placeholder="例:100000" value="100000">
</div>
</div>
</div>
<button onclick="calculateZOPA()" style="margin-top: 20px;">計算談判區間</button>
<div id="zopaResult"></div>
</div>
<!-- Tab 2: 談判風格診斷 -->
<div class="content" id="tab1">
<h2 class="section-title">談判風格診斷</h2>
<p style="margin-bottom: 20px; color: #666;">根據你的談判傾向判斷你屬於哪種談判風格。</p>
<div id="quizContainer"></div>
<button onclick="calculateNegotiationStyle()" style="margin-top: 20px;">看我的談判風格</button>
<div id="styleResult"></div>
</div>
<!-- Tab 3: 衝突管理模式圖 -->
<div class="content" id="tab2">
<h2 class="section-title">衝突管理模式圖 (Thomas-Kilmann)</h2>
<p style="margin-bottom: 20px; color: #666;">調整滑塊找出你的衝突管理風格。</p>
<div class="grid-2">
<div>
<h3 style="color: #667eea;">我的傾向評估</h3>
<div class="dimension-scale">
<label>主張性 (關心自己的利益)</label>
<div class="scale-labels">
<span>低</span>
<span>中</span>
<span>高</span>
</div>
<input type="range" id="assertiveness" min="1" max="10" value="5" oninput="updateTKM()">
<div style="text-align: center; color: #667eea; font-weight: bold; margin-top: 5px;" id="assertivenessValue">5</div>
</div>
<div class="dimension-scale">
<label>合作性 (關心他人的利益)</label>
<div class="scale-labels">
<span>低</span>
<span>中</span>
<span>高</span>
</div>
<input type="range" id="cooperativeness" min="1" max="10" value="5" oninput="updateTKM()">
<div style="text-align: center; color: #667eea; font-weight: bold; margin-top: 5px;" id="cooperativenessValue">5</div>
</div>
</div>
<div>
<h3 style="color: #667eea;">我的衝突管理風格</h3>
<div id="tkmStyle" class="style-indicator">請調整滑塊</div>
</div>
</div>
<div class="tkm-quadrant">
<div class="tkm-quadrant-axis tkm-horizontal"></div>
<div class="tkm-quadrant-axis tkm-vertical"></div>
<div class="tkm-quadrant-text tkm-competing">競爭<br>(Competing)</div>
<div class="tkm-quadrant-text tkm-collaborating">合作<br>(Collaborating)</div>
<div class="tkm-quadrant-text tkm-compromising">協商<br>(Compromising)</div>
<div class="tkm-quadrant-text tkm-avoiding">迴避<br>(Avoiding)</div>
<div class="tkm-quadrant-text tkm-accommodating">退讓<br>(Accommodating)</div>
<div class="axis-label axis-x-low">合作性低</div>
<div class="axis-label axis-x-high">合作性高</div>
<div class="axis-label axis-y-low">主張性低</div>
<div class="axis-label axis-y-high">主張性高</div>
</div>
<div class="result-box" id="tkmExplanation" style="margin-top: 30px;"></div>
</div>
<!-- Tab 4: 跨文化溝通指南 -->
<div class="content" id="tab3">
<h2 class="section-title">跨文化溝通指南</h2>
<p style="margin-bottom: 20px; color: #666;">比較不同文化的Hofstede文化維度,獲得跨文化談判建議。</p>
<div class="input-group">
<label>選擇文化進行對比</label>
<select id="cultureSelect" onchange="loadCultureData()">
<option value="">-- 選擇文化 --</option>
<option value="china">中國(台灣)</option>
<option value="japan">日本</option>
<option value="usa">美國</option>
<option value="germany">德國</option>
<option value="brazil">巴西</option>
<option value="india">印度</option>
<option value="mexico">墨西哥</option>
</select>
</div>
<div id="cultureComparison"></div>
</div>
<!-- Tab 5: 簡報結構建構器 -->
<div class="content" id="tab4">
<h2 class="section-title">簡報結構建構器</h2>
<p style="margin-bottom: 20px; color: #666;">構建一份有說服力的簡報,按照最佳結構組織你的內容。</p>
<div class="presentation-builder">
<h3 style="color: #667eea; margin-bottom: 15px;">添加簡報投影片</h3>
<div class="input-group">
<label>投影片類型</label>
<select id="slideType">
<option value="title">標題頁</option>
<option value="problem">問題陳述</option>
<option value="solution">解決方案</option>
<option value="benefits">好處與價值</option>
<option value="evidence">證據與案例</option>
<option value="timeline">實施計劃</option>
<option value="budget">預算與成本</option>
<option value="risks">風險管理</option>
<option value="call">行動呼籲</option>
</select>
</div>
<div class="input-group">
<label>投影片內容(標題或要點)</label>
<input type="text" id="slideContent" placeholder="輸入投影片的主要內容">
</div>
<button onclick="addSlide()" style="margin-top: 10px;">添加投影片</button>
<div id="slidesList" style="margin-top: 20px;"></div>
<button onclick="generatePresentation()" style="margin-top: 20px; background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);">生成簡報結構建議</button>
<div id="presentationPreview"></div>
</div>
</div>
</div>
<script>
let slides = [];
let quizAnswers = {};
function switchTab(index) {
// Hide all content
const contents = document.querySelectorAll('.content');
contents.forEach(c => c.classList.remove('active'));
// Remove active from all buttons
const buttons = document.querySelectorAll('.tab-button');
buttons.forEach(b => b.classList.remove('active'));
// Show selected content and activate button
document.getElementById('tab' + index).classList.add('active');
buttons[index].classList.add('active');
// Initialize tab-specific content
if (index === 1) initializeQuiz();
if (index === 3) loadCultureData();
}
function calculateZOPA() {
const myBatna = parseFloat(document.getElementById('myBatna').value);
const myReservation = parseFloat(document.getElementById('myReservation').value);
const myTarget = parseFloat(document.getElementById('myTarget').value);
const theirBatna = parseFloat(document.getElementById('theirBatna').value);
const theirReservation = parseFloat(document.getElementById('theirReservation').value);
const theirTarget = parseFloat(document.getElementById('theirTarget').value);
// Calculate ZOPA
const zopaMin = Math.max(Math.min(myReservation, myTarget), Math.min(theirReservation, theirTarget));
const zopaMax = Math.min(Math.max(myReservation, myTarget), Math.max(theirReservation, theirTarget));
let resultHTML = '<div class="result-box" style="margin-top: 20px;">';
if (zopaMin <= zopaMax) {
const midpoint = (zopaMin + zopaMax) / 2;
resultHTML += `
<div class="result-item"><strong>✓ 談判區間存在</strong></div>
<div class="result-item">談判區間下限: <strong>${zopaMin.toFixed(0)}</strong></div>
<div class="result-item">談判區間上限: <strong>${zopaMax.toFixed(0)}</strong></div>
<div class="result-item">建議目標價格: <strong>${midpoint.toFixed(0)}</strong></div>
<div class="result-item" style="margin-top: 15px; padding-top: 15px; border-top: 1px solid #ddd;">
<strong>建議:</strong> 你可以在 ${zopaMin.toFixed(0)} 到 ${zopaMax.toFixed(0)} 之間的任何價格成交。建議從你的目標價格 ${myTarget.toFixed(0)} 開始談,給對方商量空間。
</div>
`;
} else {
resultHTML += `
<div class="result-item" style="color: #d32f2f;"><strong>✗ 談判區間不存在</strong></div>
<div class="result-item">你的範圍: ${Math.min(myReservation, myTarget).toFixed(0)} - ${Math.max(myReservation, myTarget).toFixed(0)}</div>
<div class="result-item">對方的範圍: ${Math.min(theirReservation, theirTarget).toFixed(0)} - ${Math.max(theirReservation, theirTarget).toFixed(0)}</div>
<div class="result-item" style="margin-top: 15px; padding-top: 15px; border-top: 1px solid #ddd;">
<strong>建議:</strong> 雙方的保留價格沒有重疊,談判會很困難。考慮:
<ul style="margin-top: 10px; margin-left: 20px;">
<li>重新評估你的BATNA是否可行</li>
<li>嘗試擴展談判議題(加入其他條件)</li>
<li>尋找能改變對方BATNA的創意解決方案</li>
</ul>
</div>
`;
}
resultHTML += '</div>';
document.getElementById('zopaResult').innerHTML = resultHTML;
}
function initializeQuiz() {
const questions = [
{ q: "當面對不同意見時,我傾向於...", options: ["堅持我的立場", "嘗試理解對方", "尋求折中", "暫時不談", "放棄我的立場"] },
{ q: "在談判中,我最關心的是...", options: ["贏得最佳交易", "維持良好關係", "快速完成", "避免衝突", "對方的滿意度"] },
{ q: "當對方拒絕我的提案時,我會...", options: ["堅持要求", "提出新方案", "各讓一點", "退縮", "接受他們的條件"] },
{ q: "在長期合作中,我認為最重要的是...", options: ["從每次交易中獲利最多", "建立信任與理解", "維持穩定協議", "避免麻煩", "滿足對方需求"] },
{ q: "面對複雜的談判問題時,我傾向於...", options: ["用強硬方式解決", "深入分析所有選項", "尋求妥協點", "暫時擱置", "尋求對方的建議"] }
];
let quizHTML = '';
questions.forEach((q, index) => {
quizHTML += `<div style="margin: 20px 0;">
<h4 style="margin-bottom: 10px; color: #333;">Q${index + 1}: ${q.q}</h4>`;
q.options.forEach((opt, optIndex) => {
const styleMap = ["Competing", "Collaborating", "Compromising", "Avoiding", "Accommodating"];
quizHTML += `<label class="quiz-option">
<input type="radio" name="q${index}" value="${optIndex}" onchange="quizAnswers['q${index}'] = ${optIndex}">
${opt}
</label>`;
});
quizHTML += '</div>';
});
document.getElementById('quizContainer').innerHTML = quizHTML;
}
function calculateNegotiationStyle() {
const styles = ["Competing", "Collaborating", "Compromising", "Avoiding", "Accommodating"];
const styleScores = [0, 0, 0, 0, 0];
for (let i = 0; i < 5; i++) {
const answer = quizAnswers['q' + i];
if (answer !== undefined) {
styleScores[answer]++;
}
}
const maxScore = Math.max(...styleScores);
const dominantStyle = styles[styleScores.indexOf(maxScore)];
const styleDescriptions = {
"Competing": {
name: "競爭型",
desc: "你傾向於強調自己的利益,堅持立場。適合在需要快速決策或維護重要原則的情況下。但長期可能傷害關係。",
situations: "緊急決策、智慧財產權保護、自衛、原則性分歧"
},
"Collaborating": {
name: "合作型",
desc: "你尋求雙贏方案,願意深入理解對方需求。最適合長期合作與複雜談判。需要時間和信任。",
situations: "戰略聯盟、創意解決、長期合作、高價值談判"
},
"Compromising": {
name: "協商型",
desc: "你尋求折中方案,各讓一點。平衡但可能雙方都不完全滿意。適合時間有限或相對等值的談判。",
situations: "預算談判、時間有限、中等優先級問題"
},
"Avoiding": {
name: "迴避型",
desc: "你傾向於暫時不面對衝突。適合低優先級或時機不當的問題,但長期會導致問題堆積。",
situations: "低優先級、時機不當、複雜度高、關係受影響"
},
"Accommodating": {
name: "退讓型",
desc: "你優先考慮對方的利益與關係。適合維護關係或在乎問題相對不重要時。但可能損害長期利益。",
situations: "維護關係、非關鍵議題、新供應商合作、道歉與和解"
}
};
const styleInfo = styleDescriptions[dominantStyle];
const resultHTML = `
<div class="result-box" style="margin-top: 20px;">
<div class="result-item" style="font-size: 1.3em; color: #667eea; margin-bottom: 15px;">
<strong>你的談判風格:${styleInfo.name}</strong>
</div>
<div class="result-item">
<strong>特徵:</strong> ${styleInfo.desc}
</div>
<div class="result-item">
<strong>最適用的場景:</strong> ${styleInfo.situations}
</div>
<div class="result-item" style="margin-top: 15px; padding-top: 15px; border-top: 1px solid #ddd; color: #666;">
<strong>建議:</strong> 沒有絕對的「最好」風格,關鍵是根據具體情況調整。如果你發現自己某一種風格過強,可嘗試發展其他風格。
</div>
</div>
`;
document.getElementById('styleResult').innerHTML = resultHTML;
}
function updateTKM() {
const assertiveness = parseFloat(document.getElementById('assertiveness').value);
const cooperativeness = parseFloat(document.getElementById('cooperativeness').value);
document.getElementById('assertivenessValue').textContent = assertiveness.toFixed(0);
document.getElementById('cooperativenessValue').textContent = cooperativeness.toFixed(0);
let style = "協商型";
let color = "#ff9800";
if (assertiveness >= 7 && cooperativeness >= 7) {
style = "合作型";
color = "#2196f3";
} else if (assertiveness >= 7 && cooperativeness < 4) {
style = "競爭型";
color = "#d32f2f";
} else if (assertiveness < 4 && cooperativeness >= 7) {
style = "退讓型";
color = "#4caf50";
} else if (assertiveness < 4 && cooperativeness < 4) {
style = "迴避型";
color = "#999";
}
document.getElementById('tkmStyle').textContent = style;
document.getElementById('tkmStyle').style.background = `linear-gradient(135deg, ${color}80 0%, ${color}40 100%)`;
const explanations = {
"合作型": "你高度關心自己和對方的利益。適合長期合作、複雜談判和高價值專案。",
"競爭型": "你優先關心自己的利益。適合緊急決策、原則性問題或資訊不對等的談判。",
"協商型": "你在自己和對方的利益之間尋求平衡。適合時間有限或雙方籌碼相當的談判。",
"迴避型": "你傾向於迴避衝突。適合低優先級問題,但要警惕問題堆積。",
"退讓型": "你優先考慮對方的利益和關係。適合維護關係或問題相對不重要的情況。"
};
document.getElementById('tkmExplanation').innerHTML = `<strong>說明:</strong> ${explanations[style]}`;
}
const cultureData = {
china: {
name: "中國(台灣)",
pdi: 58,
uai: 30,
idv: 20,
mas: 50,
lto: 87,
advice: "尊重等級制度,通過高層溝通。強調長期合作與信任建立。使用正式稱謂與禮儀。"
},
japan: {
name: "日本",
pdi: 54,
uai: 92,
idv: 46,
mas: 95,
lto: 88,
advice: "詳細的書面協議至關重要。避免直言拒絕。提供充分的背景與細節。強調品質與長期關係。"
},
usa: {
name: "美國",
pdi: 40,
uai: 46,
idv: 91,
mas: 62,
lto: 26,
advice: "直接溝通與快速決策。強調個人成就與競爭優勢。靈活處理,不需詳細規則。"
},
germany: {
name: "德國",
pdi: 35,
uai: 65,
idv: 67,
mas: 66,
lto: 83,
advice: "詳細的數據與邏輯論證。尊重效率與規則。直白交流。強調長期計劃。"
},
brazil: {
name: "巴西",
pdi: 69,
uai: 76,
idv: 38,
mas: 49,
lto: 44,
advice: "建立個人關係優先。重視情感與人際連接。靈活的協議。講故事比數據更有效。"
},
india: {
name: "印度",
pdi: 77,
uai: 40,
idv: 48,
mas: 56,
lto: 51,
advice: "非常重視等級與正式稱謂。集體決策過程較長。靈活接受談判方向調整。重視人脈。"
},
mexico: {
name: "墨西哥",
pdi: 81,
uai: 82,
idv: 30,
mas: 69,
lto: 24,
advice: "強調領導人物與身份。詳細規則與清晰協議。建立個人信任。避免直接衝突。"
}
};
function loadCultureData() {
const selected = document.getElementById('cultureSelect').value;
if (!selected) return;
const data = cultureData[selected];
const defaultChina = cultureData.china;
const dimensions = [
{ name: "權力距離 (PDI)", yours: defaultChina.pdi, theirs: data.pdi, desc: "對不平等的接受度" },
{ name: "不確定性規避 (UAI)", yours: defaultChina.uai, theirs: data.uai, desc: "對風險與變化的容忍度" },
{ name: "個人主義 (IDV)", yours: defaultChina.idv, theirs: data.idv, desc: "個人 vs 集體導向" },
{ name: "男性特質 (MAS)", yours: defaultChina.mas, theirs: data.mas, desc: "競爭 vs 關係導向" },
{ name: "長期取向 (LTO)", yours: defaultChina.lto, theirs: data.lto, desc: "短期 vs 長期目光" }
];
let html = `<div style="margin-top: 30px;">
<h3 style="color: #667eea; margin-bottom: 20px;">中國 vs ${data.name} 的文化差異</h3>
<div class="grid-2">`;
dimensions.forEach(dim => {
const diff = Math.abs(dim.yours - dim.theirs);
const assessment = diff > 30 ? "差異很大" : diff > 15 ? "有差異" : "接近";
html += `
<div class="card">
<h4>${dim.name}</h4>
<p style="margin-bottom: 10px; color: #999;">${dim.desc}</p>
<div style="margin: 10px 0;">
<div style="display: flex; justify-content: space-between; margin-bottom: 5px;">
<span style="font-size: 0.9em;">中國: ${dim.yours}</span>
<span style="font-size: 0.9em;">${data.name}: ${dim.theirs}</span>
</div>
<div style="background: #f0f0f0; height: 20px; border-radius: 4px; position: relative; overflow: hidden;">
<div style="background: linear-gradient(to right, #667eea, #764ba2); height: 100%; width: ${(dim.yours / 100) * 100}%; position: absolute; left: 0;"></div>
<div style="background: linear-gradient(to right, #ff9800, #f44336); height: 100%; width: ${(dim.theirs / 100) * 100}%; position: absolute; right: 0;"></div>
</div>
</div>
<p style="color: #666; font-size: 0.9em; margin-top: 10px;">差異程度: <strong>${assessment}</strong></p>
</div>
`;
});
html += `</div>
<div class="card" style="margin-top: 20px; background: linear-gradient(135deg, #f0f4ff 0%, #fff3e0 100%);">
<h4 style="color: #667eea; margin-bottom: 10px;">談判建議</h4>
<p>${data.advice}</p>
</div>
</div>`;
document.getElementById('cultureComparison').innerHTML = html;
}
function addSlide() {
const type = document.getElementById('slideType').value;
const content = document.getElementById('slideContent').value;
if (!content) {
alert('請輸入投影片內容');
return;
}
slides.push({ type, content });
document.getElementById('slideContent').value = '';
updateSlidesList();