:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(0,0,0,0.3);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.1);
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --border-radius: 20px;
    --border-radius-sm: 10px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--gradient);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-color);
    color: var(--white);
}

.main-content {
    padding: 40px 0;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.2);
}

.footer {
    background: rgba(255,255,255,0.95);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    line-height: 2;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #e9ecef;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.section-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
}

.page-header {
    text-align: center;
    color: white;
    padding: 60px 0 40px;
}

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

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-section {
    text-align: center;
    color: white;
    padding: 40px 0;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.industry-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.industry-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

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

.industry-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.search-input {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 18px 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-section {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.result-section {
    padding: 30px;
    min-height: 400px;
}

.placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.placeholder-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.loading {
    display: none;
    text-align: center;
    padding: 50px;
}

.loading.active {
    display: block;
}

.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); }
}

.loading-text {
    color: var(--text-light);
}

.result-content {
    display: none;
}

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

.ai-response {
    background: #f8f9fa;
    border-radius: var(--border-radius-sm);
    padding: 25px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-color);
}

.ai-response h1, .ai-response h2, .ai-response h3, .ai-response h4 {
    color: var(--text-color);
    margin: 20px 0 12px 0;
    font-weight: 600;
}

.ai-response h1 { font-size: 1.5rem; border-bottom: 2px solid var(--primary-color); padding-bottom: 8px; }
.ai-response h2 { font-size: 1.3rem; color: var(--primary-color); }
.ai-response h3 { font-size: 1.1rem; }
.ai-response h4 { font-size: 1rem; }

.ai-response p { margin: 12px 0; text-align: justify; }
.ai-response ul, .ai-response ol { margin: 12px 0; padding-left: 24px; }
.ai-response li { margin: 6px 0; }
.ai-response strong { color:#FF5722; font-weight: 600; }
.ai-response em { color: var(--secondary-color); }

.ai-response code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.ai-response pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.ai-response pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.ai-response blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-light);
    font-style: italic;
    background: #f0f4ff;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.ai-response table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.ai-response th, .ai-response td {
    border: 1px solid #e9ecef;
    padding: 10px 12px;
    text-align: left;
}

.ai-response th {
    background: #4c51bf;
    color: #ffffff;
    font-weight: 600;
}

.ai-response tr:nth-child(even) {
    background: #f8f9fa;
}

.thinking-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.thinking-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1rem;
}

.thinking-content {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.citation-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    margin: 0 2px;
    vertical-align: middle;
    transition: var(--transition);
    cursor: pointer;
}

.citation-link:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.sources-section {
    margin-top: 24px;
    background: #f8f9fa;
    border-radius: var(--border-radius-sm);
    padding: 20px;
}

.sources-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.source-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: var(--border-radius-sm);
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.source-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.source-index {
    min-width: 28px;
    height: 28px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.source-content {
    flex: 1;
    min-width: 0;
}

.source-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.source-url {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.error-message {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.features-section {
    padding: 60px 0;
    background: rgba(255,255,255,0.95);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.content-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 30px;
}

.content-card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.content-card p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4ff 100%);
    border-radius: var(--border-radius-sm);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.values-list li:last-child {
    border-bottom: none;
}

.value-icon {
    font-size: 1.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: var(--border-radius-sm);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.team-member h3 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.team-member .role {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.team-member p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.industry-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

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

.industry-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.industry-card h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.industry-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.industry-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    color: var(--text-light);
}

.industry-card li {
    padding: 5px 0;
    position: relative;
    padding-left: 15px;
}

.industry-card li::before {
    content: "✓";
    color: var(--primary-color);
}

.cta-section {
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cta-btn {
    padding: 12px 30px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.faq-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 30px;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.faq-question:hover {
    background: #f0f4ff;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question {
    background: var(--primary-color);
    color: white;
}

.faq-item.active .faq-question::after {
    content: '-';
    color: white;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 2000px;
    opacity: 1;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 10px;
}

.faq-answer ul {
    margin-left: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-answer li {
    margin-bottom: 5px;
}

.contact-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4ff 100%);
    border-radius: var(--border-radius);
}

.contact-cta h2 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.contact-cta p {
    color: var(--text-light);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

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

    .search-btn {
        width: 100%;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.download-section {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.download-btn svg {
    width: 16px;
    height: 16px;
}

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