/* 基础样式 - 黑白主题 */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --light-color: #ffffff;
    --text-color: #222222;
    --text-light: #777777;
}

/* Pro 升級模態框樣式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pro-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pro-modal h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: white;
}

.usage-limit-info {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.usage-limit-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #FFE066;
}

.usage-limit-info p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.pro-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.plan-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.plan-card.featured {
    border-color: #FFE066;
    background: rgba(255, 224, 102, 0.1);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFE066;
    color: #333;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.plan-header h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}

.price {
    margin-bottom: 10px;
}

.current-price {
    font-size: 48px;
    font-weight: bold;
    color: #FFE066;
}

.original-price {
    font-size: 18px;
    text-decoration: line-through;
    opacity: 0.7;
    margin-left: 10px;
}

.discount {
    background: #FF6B6B;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.yearly-total {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-features li:last-child {
    border-bottom: none;
}

.subscribe-btn {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.featured-btn {
    background: #FFE066;
    color: #333;
    border-color: #FFE066;
}

.featured-btn:hover {
    background: #FFD700;
    border-color: #FFD700;
}

@media (max-width: 768px) {
    .pro-plans {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pro-modal {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
}

/* 全局样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

/* 主要内容容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 主横幅区域 */
.hero {
    padding: 80px 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

.cta-button {
    margin-bottom: 20px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
}

.hero-image {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 核心价值主张部分 */
.value-props {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.prop-item {
    text-align: center;
    padding: 30px 20px;
}

.prop-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 用户评价部分 */
.testimonials {
    padding: 60px 0;
}

.testimonials h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.testimonials .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 18px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 20px;
    color: var(--text-color);
    font-style: italic;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-light);
    font-size: 14px;
}

.rating {
    color: #f59e0b;
    margin-top: 5px;
}

/* 底部行动号召 */
.final-cta {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
}

.final-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn-white {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: #f0f0f0;
}

/* 页脚样式 */
footer {
    background-color: var(--light-color);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    color: var(--text-light);
    font-size: 14px;
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .props-grid {
        grid-template-columns: 1fr;
    }
}

/* AI模態框樣式 */
.ai-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ai-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ai-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    font-weight: bold;
}

.ai-modal-close:hover {
    color: #000;
}

.ai-step h2 {
    text-align: center;
    margin-bottom: 16px;
    color: var(--primary-color);
    font-size: 24px;
}

.ai-step p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Google登入按鈕 */
.google-signin-btn {
    width: 100%;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.google-signin-btn:hover {
    background: #3367d6;
}

.google-icon {
    width: 18px;
    height: 18px;
}

/* 分隔線 */
.separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.separator span {
    background: white;
    padding: 0 16px;
    color: #666;
    font-size: 14px;
}

/* 電子郵件輸入組 */
.email-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.email-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.continue-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.continue-btn:hover {
    background: var(--secondary-color);
}

/* 條款文字 */
.terms-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.terms-link {
    color: #007bff;
    text-decoration: none;
}

.auto-signup-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* 表單組 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.generate-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.generate-btn:hover {
    background: var(--secondary-color);
}

/* 載入動畫 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* 結果標籤頁 */
.results-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

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

.content-preview {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    min-height: 200px;
}

/* 漂亮的文稿預覽樣式 */
.doc-preview { padding: 0; }
.doc-header { display:flex; justify-content: space-between; align-items: center; }
.doc-name { font-size: 24px; font-weight: 800; color: #1f2d3d; white-space: nowrap; }
.doc-contact { display:flex; gap:16px; color:#35506b; font-size:14px; }
.doc-email { margin-top:6px; color:#35506b; font-size:12px; }
.doc-contact span i { margin-right:6px; }
.doc-hr { border:0; border-top:1px solid #e5e7eb; margin:12px 0 18px; }
.doc-date { font-size: 11px; color:#3b4b5a; margin-bottom: 16px; }
.doc-body { font-family: Georgia, 'Times New Roman', serif; font-size: 14px; color:#20303f; line-height: 1.6; }
.doc-body b, .doc-body strong { font-weight: 700; }

.download-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.job-center-section {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.download-btn {
    flex: 1;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background: #218838;
}

.template-btn {
    background: #007bff;
}

.template-btn:hover {
    background: #0056b3;
}

/* Classic Template 樣式（用於 PDF 生成） */
#classicTemplateContainer .classic-template {
    width: 210mm;
    min-height: 297mm;
    background: #fff;
    display: flex;
    font-family: 'Calibri', Arial, sans-serif;
}

#classicTemplateContainer .left-column {
    width: 60mm;
    background-color: #0b2241;
    color: #fff;
    padding: 15mm 8mm 15mm 8mm;
    box-sizing: border-box;
}

#classicTemplateContainer .right-column {
    flex: 1;
    padding: 15mm 12mm 15mm 12mm;
    box-sizing: border-box;
}

#classicTemplateContainer .header-section {
    margin-bottom: 20mm;
}

#classicTemplateContainer .name {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
}

#classicTemplateContainer .title {
    font-size: 18px;
    color: #fff;
    opacity: 0.9;
}

#classicTemplateContainer .section {
    margin-bottom: 15mm;
}

#classicTemplateContainer .section-header {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#classicTemplateContainer .contact-item {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
}

#classicTemplateContainer .contact-item strong {
    color: #fff;
}

#classicTemplateContainer .section-title {
    font-size: 20px;
    font-weight: bold;
    color: #1f2d3d;
    margin-bottom: 12px;
    border-bottom: 2px solid #0b2241;
    padding-bottom: 4px;
}

#classicTemplateContainer .right-column .section {
    margin-bottom: 20mm;
}

#classicTemplateContainer .right-column .section:last-child {
    margin-bottom: 0;
}

#classicTemplateContainer .right-column div[id^="template"] {
    color: #1f2d3d;
    line-height: 1.6;
    font-size: 14px;
}

/* 資料導入選項樣式 */
.import-options {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.import-option-btn {
    flex: 1;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.import-option-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.import-option-btn:hover {
    border-color: var(--primary-color);
}

.import-option-btn i {
    font-size: 18px;
}

/* 導入區域樣式 */
.import-section {
    display: none;
    margin-bottom: 24px;
}

.import-section.active {
    display: block;
}

/* 文件上傳區域 */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: #f0f8ff;
}

.upload-icon {
    font-size: 48px;
    color: #666;
    margin-bottom: 16px;
}

.upload-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.upload-text p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 文件預覽 */
.file-preview {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-info i {
    color: var(--primary-color);
    font-size: 20px;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-left: auto;
    font-size: 14px;
}

.remove-file:hover {
    background: #c82333;
}

/* LinkedIn輸入組 */
.linkedin-input-group {
    margin-bottom: 16px;
}

.linkedin-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.linkedin-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 8px;
}

.help-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.help-link:hover {
    text-decoration: underline;
}

/* 繼續按鈕 */
.continue-btn-large {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.5;
}

.continue-btn-large:not(:disabled):hover {
    background: var(--secondary-color);
}

.continue-btn-large:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* 數據預覽樣式 */
.data-preview-section {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.data-preview-section h3 {
    margin-bottom: 16px;
    color: var(--primary-color);
    font-size: 18px;
}

.preview-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.preview-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.preview-section h4 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-section h5 {
    margin: 8px 0 4px 0;
    color: var(--primary-color);
    font-size: 15px;
}

.preview-section p {
    margin: 6px 0;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.4;
}

.data-value {
    background: #e3f2fd;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #1976d2;
}

.experience-item {
    margin: 12px 0;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.education-item {
    margin: 8px 0;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #4caf50;
}

.achievements {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.achievements ul {
    margin: 4px 0;
    padding-left: 20px;
}

.achievements li {
    margin: 2px 0;
    color: var(--text-color);
    font-size: 13px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.skill-tag {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.certifications-list, .languages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.cert-tag {
    background: #fff3e0;
    color: #f57c00;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.lang-tag {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.no-data {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 6px;
}

.error-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.error-section h4 {
    color: #856404;
}

.raw-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
    margin-top: 12px;
    font-family: monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
}

/* 數據編輯樣式 */
.data-edit-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.data-edit-section h4 {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.edit-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Edit data 按鈕樣式已移除 */

/* 調試相關樣式已移除 */

/* 測試相關樣式已全部移除 */

/* 匹配度評估樣式 */
.match-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
}

.match-score h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.score-number {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 4px;
}

.match-score p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .ai-modal-content {
        width: 95%;
        padding: 24px;
        margin: 20px;
    }
    
    .email-input-group {
        flex-direction: column;
    }
    
    .results-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 80px;
    }
    
    .import-options {
        flex-direction: column;
    }
    
    .file-upload-area {
        padding: 30px 16px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .match-score {
        padding: 20px;
    }
    
    .score-number {
        font-size: 36px;
    }
}