/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 頂部標題 */
.header {
    color: white;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-title {
    flex: 1;
}

.header-title h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.btn-logout {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-logout:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Tab 切換 */
.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    animation: fadeInUp 0.5s ease;
}

.tab-btn {
    flex: 1;
    padding: 15px 30px;
    font-size: 1rem;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: #666;
}

.tab-btn:hover {
    background: #e0e0e0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* 搜尋區域 */
.search-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#searchInput {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
}

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

#searchBtn {
    padding: 15px 40px;
    font-size: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

#searchBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

#searchBtn:active {
    transform: translateY(0);
}

/* 語音搜尋按鈕 */
.voice-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.voice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

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

.voice-btn.listening {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: pulse 1.5s ease-in-out infinite;
}

.mic-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.voice-status {
    margin-top: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
    align-items: center;
    gap: 10px;
}

.voice-status.show {
    display: flex;
}

.voice-status.listening {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.voice-status.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: #059669;
}

.voice-status.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* 搜尋選項 */
.search-options {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-group label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.option-group select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

.option-group select:focus {
    border-color: #667eea;
}

.option-group input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
    text-align: center;
}

.option-group input[type="number"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 隐藏数字输入框的上下箭头（Chrome, Safari, Edge）*/
.option-group input[type="number"]::-webkit-inner-spin-button,
.option-group input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.toggle-btn {
    margin-left: auto;
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.toggle-btn:hover {
    background: #e0e0e0;
}

/* 進階篩選 */
.advanced-filters {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease;
}

.advanced-filters.show {
    display: block;
}

.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group.full-width {
    flex: 1 1 100%;
}

.filter-group label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #667eea;
}

/* 統計資訊 */
.stats-bar {
    background: white;
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: none;
    animation: fadeIn 0.4s ease;
}

.stats-bar.show {
    display: block;
}

.stats-bar p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.stats-bar strong {
    color: #667eea;
}

/* 載入中 */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.loading.show {
    display: block;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 結果區域 */
.results {
    display: none;
}

.results.show {
    display: block;
}

.result-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeInUp 0.4s ease;
}

.result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    gap: 15px;
}

.result-title {
    flex: 1;
}

.result-title h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.25rem;
    line-height: 1.4;
}

.result-title a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.result-title a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.result-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.result-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.meta-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
}

.meta-tag.category {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.meta-tag.sub-category {
    background: #f3e5f5;
    color: #7b1fa2;
}

.meta-tag.sentiment-positive {
    background: #e8f5e9;
    color: #388e3c;
}

.meta-tag.sentiment-neutral {
    background: #fff3e0;
    color: #f57c00;
}

.meta-tag.sentiment-negative {
    background: #ffebee;
    color: #d32f2f;
}

.meta-tag.industry {
    background: #e0f2f1;
    color: #00796b;
}

.meta-tag.date {
    background: #fff9c4;
    color: #f57f17;
}

.result-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.content-preview,
.content-full {
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.expand-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 8px;
}

.expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.result-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #555;
}

/* 錯誤訊息 */
.error {
    display: none;
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.error.show {
    display: block;
}

/* SalesKit 生成器 */
.saleskit-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease;
}

.saleskit-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.template-selector {
    margin-bottom: 25px;
}

.template-selector label {
    display: block;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.template-selector select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
    background: white;
}

.template-selector select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.prompt-input {
    margin-bottom: 25px;
}

.prompt-input label {
    display: block;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.prompt-input textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
    min-height: 150px;
}

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

.prompt-hints {
    margin-top: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.prompt-hints p {
    margin: 0 0 8px 0;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
}

.prompt-hints ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 0.85rem;
}

.prompt-hints li {
    margin-bottom: 4px;
}

.saleskit-options {
    margin-bottom: 20px;
}

.advanced-options {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease;
}

.advanced-options.show {
    display: block;
}

.option-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.saleskit-actions {
    text-align: center;
}

.generate-btn {
    padding: 15px 50px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.generate-btn:active {
    transform: translateY(-1px);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading-tip {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #999;
}

.saleskit-result {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-top: 30px;
    animation: fadeInUp 0.5s ease;
}

.saleskit-result.show {
    display: block;
}

.saleskit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.saleskit-header h3 {
    color: #333;
    font-size: 1.4rem;
    margin: 0;
}

.saleskit-actions-toolbar {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border: 1px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #667eea;
    color: white;
}

.saleskit-content {
    color: #333;
    line-height: 1.8;
    font-size: 1rem;
}

.saleskit-content h1,
.saleskit-content h2,
.saleskit-content h3,
.saleskit-content h4 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 12px;
}

.saleskit-content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.saleskit-content h2 {
    font-size: 1.5rem;
    color: #667eea;
}

.saleskit-content h3 {
    font-size: 1.3rem;
}

.saleskit-content p {
    margin-bottom: 15px;
}

.saleskit-content ul,
.saleskit-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.saleskit-content li {
    margin-bottom: 8px;
}

.saleskit-content strong {
    color: #667eea;
    font-weight: 600;
}

.saleskit-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.saleskit-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 15px;
    margin: 15px 0;
    color: #555;
    font-style: italic;
}

.saleskit-source-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #999;
}

/* 參考文章列表 */
.reference-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.reference-articles h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.reference-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reference-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.reference-item:hover {
    background: #f0f2f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.reference-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.reference-content {
    flex: 1;
}

.reference-title {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}

.reference-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.reference-title a:hover {
    color: #667eea;
    text-decoration: underline;
}

.reference-category {
    display: inline-block;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.reference-preview {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 10px 0;
}

.reference-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.reference-keywords .keyword-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
}

/* 頁尾 */
.footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 動畫 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* ============================================
   登入頁面樣式
   ============================================ */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: fadeInUp 0.6s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h1 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 8px;
    text-shadow: none;
}

.login-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.login-step {
    display: none;
}

.login-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.login-step h2 {
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.step-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.text-small {
    font-size: 0.85rem;
    color: #999;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

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

.btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.resend-container {
    text-align: center;
    margin-top: 20px;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 8px;
    transition: color 0.3s;
}

.btn-link:hover:not(:disabled) {
    color: #764ba2;
}

.btn-link:disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none;
}

.success {
    display: none;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #2e7d32;
    font-size: 0.95rem;
}

.success.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .header-title h1 {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        justify-content: center;
    }

    .search-section {
        padding: 20px;
    }

    .search-box {
        flex-wrap: wrap;
    }

    #searchInput {
        width: 100%;
        flex: 1 1 100%;
        margin-bottom: 10px;
    }

    .voice-btn {
        flex: 1;
        min-width: 80px;
    }

    #searchBtn {
        flex: 2;
        min-width: 120px;
    }

    .voice-status {
        font-size: 0.85rem;
        padding: 10px 15px;
    }

    .search-options {
        flex-direction: column;
        align-items: stretch;
    }

    .option-group {
        justify-content: space-between;
    }

    .toggle-btn {
        margin-left: 0;
    }

    .filter-row {
        flex-direction: column;
    }

    .result-header {
        flex-direction: column;
    }

    .result-score {
        align-self: flex-start;
    }

    .login-box {
        padding: 30px 25px;
    }

    .login-header h1 {
        font-size: 2rem;
    }
}
