* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --success-color: #10b981;
    --success-bg: #ecfdf5;
    --danger-color: #ef4444;
    --danger-bg: #fef2f2;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --bg-gray: #f9fafb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 60px 20px;
    color: var(--text-primary);
}

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

/* Logo和标题区域 */
.header-section {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 24px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-4px);
}

.logo-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.brand-text {
    text-align: left;
}

.brand-name {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.brand-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Slogan区域 */
.slogan-section {
    margin-top: 24px;
    text-align: center;
}

.slogan-main {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.slogan-sub {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 搜索区域 */
.search-section {
    background: white;
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 20px;
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    flex: 1;
    padding: 18px 20px 18px 56px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-button {
    padding: 18px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.search-button:active {
    transform: translateY(0);
}

/* 邮箱输入框 */
.email-box {
    position: relative;
    display: flex;
    align-items: center;
}

.email-icon {
    position: absolute;
    left: 20px;
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    pointer-events: none;
}

.email-input {
    flex: 1;
    padding: 18px 20px 18px 56px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.email-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* 示例区域 */
.examples-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.example-category {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.category-header.good {
    border-bottom-color: var(--success-color);
}

.category-header.bad {
    border-bottom-color: var(--danger-color);
}

.category-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.category-header.good .category-icon {
    background: var(--success-bg);
    color: var(--success-color);
}

.category-header.bad .category-icon {
    background: var(--danger-bg);
    color: var(--danger-color);
}

.category-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.category-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.query-card {
    background: var(--bg-gray);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.query-card.good {
    border-color: rgba(16, 185, 129, 0.2);
}

.query-card.bad {
    border-color: rgba(239, 68, 68, 0.2);
}

.query-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.query-card.good:hover {
    border-color: var(--success-color);
    background: rgba(236, 253, 245, 0.5);
}

.query-card.bad:hover {
    border-color: var(--danger-color);
    background: rgba(254, 242, 242, 0.5);
}

.query-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 48px;
}

.query-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
    line-height: 1.4;
}

.feature-tag.good {
    background: var(--success-bg);
    color: var(--success-color);
}

.feature-tag.bad {
    background: var(--danger-bg);
    color: var(--danger-color);
}

.query-suggestion {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(239, 68, 68, 0.2);
}

.suggestion-icon {
    width: 18px;
    height: 18px;
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

.query-suggestion span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 弹框模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 48px 40px 32px;
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    width: 90%;
    text-align: center;
    animation: slideInDown 0.4s ease;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 2.5;
}

.modal-icon.success {
    background: var(--success-bg);
    color: var(--success-color);
}

.modal-icon.error {
    background: var(--danger-bg);
    color: var(--danger-color);
}

.modal-message {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 32px;
    padding: 0 20px;
}

.modal-button {
    padding: 14px 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.modal-button:active {
    transform: translateY(0);
}

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

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

/* 任务结果 */
.task-result {
    background: white;
    border-radius: 24px;
    padding: 32px;
    margin-top: 32px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out;
}

.task-result.hidden {
    display: none;
}

.result-header {
    margin-bottom: 24px;
}

.result-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.result-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.result-header span {
    font-weight: 600;
    color: var(--primary-color);
}

.email-notice {
    color: var(--success-color) !important;
    font-weight: 500;
    margin-top: 8px;
    font-size: 15px;
}

.result-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    padding: 12px 24px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    .search-section {
        padding: 24px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }

    .examples-section {
        gap: 32px;
    }

    .example-category {
        padding: 24px;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        gap: 12px;
    }

    .query-title {
        font-size: 15px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        gap: 16px;
        padding: 20px 32px;
    }
    
    .logo-icon {
        width: 64px;
        height: 64px;
    }
    
    .brand-text {
        text-align: center;
    }
    
    .brand-name {
        font-size: 32px;
    }
    
    .brand-tagline {
        font-size: 12px;
    }
    
    .slogan-main {
        font-size: 15px;
    }
    
    .slogan-sub {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .search-input {
        font-size: 14px;
        padding: 14px 16px 14px 48px;
    }

    .email-input {
        font-size: 14px;
        padding: 14px 16px 14px 48px;
    }

    .search-button {
        padding: 14px 24px;
        font-size: 14px;
    }

    .category-header h2 {
        font-size: 20px;
    }

    .category-subtitle {
        font-size: 13px;
    }

    .query-card {
        padding: 20px;
    }

    .feature-tag {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .logo-container {
        padding: 16px 24px;
    }
    
    .logo-icon {
        width: 56px;
        height: 56px;
    }
    
    .brand-name {
        font-size: 28px;
    }
    
    .slogan-main {
        font-size: 14px;
    }
    
    .slogan-sub {
        font-size: 11px;
    }
}

