* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); min-height: 100vh; color: #fff; }
.container { max-width: 800px; margin: 0 auto; padding: 20px; }
.header-nav { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.stats-link { color: #00d4ff; text-decoration: none; font-size: 14px; padding: 8px 16px; border-radius: 20px; background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.3); transition: all 0.3s; }
.stats-link:hover { background: rgba(0, 212, 255, 0.2); transform: translateY(-1px); }
.config-panel { background: rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 30px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); }
.config-panel h1 { font-size: 28px; margin-bottom: 8px; text-align: center; background: linear-gradient(90deg, #00d4ff, #7b2cbf); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.subtitle { text-align: center; color: #888; margin-bottom: 30px; font-size: 14px; }
.panel-section { margin-bottom: 24px; }
.panel-section label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; color: #ccc; }
select { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.3); color: #fff; font-size: 15px; cursor: pointer; outline: none; transition: all 0.3s; }
select:hover, select:focus { border-color: #00d4ff; }
select option { background: #1a1a2e; }
.input-group { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.input-group input { flex: 1; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.3); color: #fff; font-size: 14px; outline: none; transition: all 0.3s; }
.input-group input:focus { border-color: #00d4ff; box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1); }
.var-tag { font-size: 12px; color: #888; font-family: monospace; white-space: nowrap; }
.preview-section { background: rgba(0, 0, 0, 0.2); border-radius: 12px; padding: 16px; }
.script-preview { font-size: 14px; line-height: 1.8; color: #ddd; }
.script-step { padding: 12px; margin-bottom: 10px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; border-left: 3px solid; }
.script-step.calm { border-left-color: #4ade80; }
.script-step.urgent { border-left-color: #fbbf24; }
.script-step.pressure { border-left-color: #f87171; }
.script-step.guiding { border-left-color: #60a5fa; }
.step-tone { font-size: 11px; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; opacity: 0.8; }
.step-text { line-height: 1.6; }
.generate-btn { width: 100%; padding: 16px; border-radius: 14px; border: none; background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3); }
.generate-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(0, 212, 255, 0.4); }
.iphone-call { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, #1a1f2e 0%, #0d1117 100%); z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.iphone-call.hidden { display: none; }
.call-screen { width: 100%; max-width: 400px; height: 100%; display: flex; flex-direction: column; padding: 60px 30px; }
.call-status { text-align: center; font-size: 16px; color: #888; margin-bottom: 40px; }
.caller-info { text-align: center; flex: 1; }
.caller-avatar { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; font-size: 60px; margin: 0 auto 20px; }
.caller-name { font-size: 32px; font-weight: 600; margin-bottom: 8px; }
.caller-role { font-size: 16px; color: #888; }
.round-indicator { text-align: center; font-size: 14px; color: #00d4ff; padding: 8px 16px; background: rgba(0, 212, 255, 0.1); border-radius: 20px; margin: 20px auto; font-weight: 600; }
.round-indicator.hidden { display: none; }
.audio-visualizer { display: flex; align-items: center; justify-content: center; gap: 6px; height: 60px; margin: 30px 0; opacity: 0; transition: opacity 0.3s; }
.audio-visualizer.active { opacity: 1; }
.wave-bar { width: 4px; background: #00d4ff; border-radius: 2px; animation: wave 0.5s ease-in-out infinite; }
.wave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 20px; animation-delay: 0.4s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }
.decision-controls { display: flex; justify-content: center; gap: 20px; padding: 20px 0; animation: slideUp 0.3s ease; }
.decision-controls.hidden { display: none; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.decision-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; color: #fff; font-size: 14px; padding: 10px 20px; transition: all 0.3s; }
.decision-btn .btn-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: all 0.3s; }
.decision-btn.continue .btn-icon { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3); }
.decision-btn.hangup .btn-icon { background: linear-gradient(135deg, #f87171 0%, #ef4444 100%); box-shadow: 0 4px 15px rgba(248, 113, 113, 0.3); transform: rotate(135deg); }
.decision-btn:hover .btn-icon { transform: scale(1.1); }
.decision-btn.hangup:hover .btn-icon { transform: rotate(135deg) scale(1.1); }
.call-controls { display: flex; justify-content: space-around; gap: 40px; padding-bottom: 40px; }
.call-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; color: #fff; font-size: 14px; }
.call-btn .btn-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; transition: all 0.3s; }
.call-btn.decline .btn-icon { background: #ff4444; transform: rotate(135deg); }
.call-btn.accept .btn-icon { background: #4ade80; }
.call-btn:hover .btn-icon { transform: scale(1.1); }
.call-btn.decline:hover .btn-icon { transform: rotate(135deg) scale(1.1); }
.result-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.result-modal.hidden { display: none; }
.result-content { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); border-radius: 24px; padding: 40px; max-width: 420px; width: 100%; text-align: center; border: 1px solid rgba(255, 255, 255, 0.1); animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.result-icon { font-size: 60px; margin-bottom: 20px; }
.result-content h2 { font-size: 24px; margin-bottom: 12px; }
.result-content p { color: #aaa; margin-bottom: 24px; line-height: 1.6; }
.result-tips { background: rgba(0, 0, 0, 0.3); border-radius: 12px; padding: 20px; margin-bottom: 24px; text-align: left; }
.result-tips h3 { font-size: 14px; margin-bottom: 12px; color: #00d4ff; }
.result-tips ul { list-style: none; font-size: 13px; color: #aaa; }
.result-tips li { padding: 6px 0; padding-left: 20px; position: relative; }
.result-tips li::before { content: '•'; color: #00d4ff; position: absolute; left: 6px; }
.result-actions { display: flex; gap: 12px; flex-direction: column; }
.restart-btn { width: 100%; padding: 14px; border-radius: 12px; border: none; background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.restart-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3); }
.view-stats-btn { display: block; width: 100%; padding: 14px; border-radius: 12px; border: 1px solid rgba(0, 212, 255, 0.5); background: transparent; color: #00d4ff; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.3s; }
.view-stats-btn:hover { background: rgba(0, 212, 255, 0.1); }
@media (max-width: 480px) {
.container { padding: 15px; }
.config-panel { padding: 20px; }
.config-panel h1 { font-size: 22px; }
.call-screen { padding: 40px 20px; }
.caller-avatar { width: 100px; height: 100px; font-size: 50px; }
.caller-name { font-size: 26px; }
.decision-btn .btn-icon { width: 56px; height: 56px; font-size: 20px; }
.result-content { padding: 30px 20px; }
}
