/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4a9eff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1rem !important;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Industry Navigation */
.industry-nav {
    padding: 2rem 0;
    background-color: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.industry-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.industry-btn {
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.industry-btn:hover, .industry-btn.active {
    background-color: #4a9eff;
    color: #ffffff;
    border-color: #4a9eff;
    transform: translateY(-2px);
}

.industry-btn i {
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: bold;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.98rem;
}

.filter-tab:hover, .filter-tab.active {
    background-color: #4a9eff;
    color: #ffffff;
    border-color: #4a9eff;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.98rem;
    font-weight: 600;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.dropdown-toggle:hover {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(74, 158, 255, 0.05) 100%);
    border-color: #4a9eff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.3);
}

.dropdown-toggle.active {
    background: linear-gradient(135deg, #4a9eff 0%, #0066ff 100%);
    border-color: #4a9eff;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.dropdown-toggle .icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-text {
    font-weight: 600;
    font-size: 0.98rem;
}

.dropdown-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-toggle.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    min-width: 180px;
    margin-top: 0.5rem;
    display: none;
    z-index: 1000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(74, 158, 255, 0.15);
    color: #4a9eff;
    transform: translateX(4px);
}

.dropdown-item.active {
    background: linear-gradient(90deg, rgba(74, 158, 255, 0.2) 0%, transparent 100%);
    color: #4a9eff;
    font-weight: 600;
}

.dropdown-item .icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.dropdown-item:hover, .dropdown-item.active {
    background-color: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
}

.dropdown-item .icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
}

/* Dropdown Item Locked Styles */
.dropdown-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.dropdown-item.locked:hover {
    background: transparent;
    color: #666666;
    transform: none;
}

.dropdown-item.locked .locked-icon {
    margin-left: auto;
    color: #ff6b6b;
    font-size: 0.9rem;
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Unlock Button */
.unlock-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: #4a9eff;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.05) 100%);
    border: none;
    border-top: 1px solid rgba(74, 158, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.98rem;
}

.unlock-button:hover {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.3) 0%, rgba(74, 158, 255, 0.15) 100%);
    color: #ffffff;
    transform: translateX(4px);
}

.unlock-button i {
    color: #4a9eff;
    font-size: 1rem;
}

.unlock-button:hover i {
    color: #ffffff;
}

/* Top 3 Brands */
.top-3-brands {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.brand-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a9eff, #0066ff);
}

.rank-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a9eff, #0066ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.brand-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.visibility-score {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score {
    font-size: 1.3rem;
    font-weight: bold;
    color: #4a9eff;
}

.change {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.98rem;
    font-weight: 600;
}

.change.positive {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.change.negative {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Rankings Table */
.rankings-table, .keywords-table {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.table-header {
    display: grid;
    grid-template-columns: 80px 140px 1fr 180px;
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #b0b0b0;
}

.table-row, .keyword-row {
    display: grid;
    grid-template-columns: 80px 140px 1fr 180px;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    transition: background-color 0.3s ease;
}

.table-row:hover, .keyword-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.table-row.your-company {
    background-color: rgba(74, 158, 255, 0.1);
}

.rank-cell {
    font-weight: bold;
    font-size: 1rem;
    color: #4a9eff;
}

.company-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.company-logo.placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.score-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0; /* 允许内容收缩 */
}

.score-cell .score {
    font-weight: bold;
    color: #ffffff;
}

.track-btn {
    padding: 0.4rem 0.8rem; /* 稍微减少内边距 */
    background: linear-gradient(135deg, #4a9eff, #0066ff);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem; /* 稍微减小字体大小 */
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; /* 防止文本换行 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
}

/* Keywords Table */
.keyword-row {
    grid-template-columns: 80px 1fr 250px;
}

.keyword-cell .keyword {
    font-weight: 600;
    color: #ffffff;
}

.volume-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.volume-cell .volume {
    font-weight: bold;
    color: #4a9eff;
}

/* Sample Prompts */
.sample-prompts {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(0, 102, 255, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: 3rem;
}

.sample-prompts h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.sample-prompts p {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.prompt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.prompt-tag {
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.98rem;
    transition: all 0.3s ease;
}

.cta-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4a9eff, #0066ff);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* How It Works */
.how-it-works {
    text-align: center;
    padding: 4rem 0;
}

.how-it-works h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.how-it-works p {
    color: #b0b0b0;
    margin-bottom: 3rem;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a9eff, #0066ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Industries Tracked */
.industries-tracked {
    padding: 4rem 0;
    text-align: center;
}

.industries-tracked h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.industries-tracked p {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 3rem;
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.industry-link {
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.98rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* FAQ */
.faq {
    padding: 4rem 0;
}

.faq h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 3rem;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #4a9eff;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 0 1.5rem;
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.3rem;
}

.footer-section p {
    color: #b0b0b0;
    font-size: 0.98rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #b0b0b0;
    font-size: 0.98rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4a9eff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    font-size: 0.98rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-tabs {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .table-header, .table-row, .keyword-row {
        grid-template-columns: 60px 1fr 120px;
        padding: 1rem;
    }
    
    .top-3-brands {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .table-header, .table-row, .keyword-row {
        grid-template-columns: 40px 70px 1fr 50px;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .score-cell, .volume-cell {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
    }
    
    .change {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Re-added deleted hover effects */
.prompt-tag:hover {
    background-color: rgba(74, 158, 255, 0.2);
    border-color: #4a9eff;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(74, 158, 255, 0.4);
}

.industry-link:hover, .industry-link.active {
    background-color: #4a9eff;
    color: #ffffff;
    border-color: #4a9eff;
    transform: translateY(-2px);
}

.faq-answer a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.3s ease;
}
