* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* 全局 a 标签覆写 — 覆盖浏览器默认蓝色和下划线 */
a, a:link, a:visited {
    color: #27ae60;
    text-decoration: none;
}
a:hover, a:active {
    color: #229954;
    text-decoration: none;
}
/* 主内容区域样式 */
.hero {
    text-align: center;
    padding: 80px 0 50px;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
}
.hero h1 span {
    color: #0564F5;
}
.search-container {
    max-width: 700px;
    margin: 0 auto 30px;
    position: relative;
}
.search-box {
    display: flex;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: visible;
}
.search-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 1.1rem;
    background: white;
}
.search-input:focus {
    outline: none;
}
.search-btn {
    background-color: #0564F5;
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 0 50px 50px 0;
}
.search-btn:hover {
    background-color: #3e8e41;
}
.hot-searches {
    margin-bottom: 40px;
}
.hot-searches h3 {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
}
.hot-search-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.hot-search-tags span {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.hot-search-tags span:hover {
    background-color: #c8e6c9;
}
.upload-bom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: #2c3e50;
    border: 2px solid #0564F5;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}
.upload-bom:hover {
    background-color: #0564F5;
    color: white;
}
/* 热门元器件部分 */
.popular-components {
    padding: 60px 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-width: 1300px;
    margin: 30px auto;
}
.popular-components h2, .component-list h2,.catalog h2  {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2rem;
}
.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
}
.component-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #eaeaea;
}
.text-center{
    text-align: center;
}
.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.component-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}
.component-desc {
    color: #666;
    font-size: 0.9rem;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .search-input {
        padding: 14px 20px;
    }
    .search-btn {
        padding: 0 20px;
    }
    .nav-items {
        gap: 15px;
    }
    .logo {
        font-size: 1.5rem;
    }
    .display-none{
        display: none!important;
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .search-box {
        flex-direction: column;
        border-radius: 10px;
    }
    .search-input {
        border-radius: 10px 10px 0 0;
    }
    .search-btn {
        border-radius: 0 0 10px 10px;
        padding: 12px;
    }
    .hot-search-tags {
        flex-direction: column;
        align-items: center;
    }
    .display-none{
        display: none!important;
    }
}
/* Path: sousuo.css */
        .container {
          /*  max-width: 1200px;*/
            margin: 0 auto;
            width: 100%;
             background: transparent;
         }
        .title-container {
            text-align: center;
            margin-bottom: 20px;
        }
        .title-eagle {
            color: #000000; /* 黑色 */
            font-size: 36px;
            font-weight: 600;
        }
        .title-ic {
            color: #27ae60; /* 绿色 */
            font-size: 36px;
            font-weight: 600;
        }
        .search-container {
            position: relative;
            margin-bottom: 20px;
        }
        .search-box {
            display: flex;
            border: 2px solid #e0f0e0;
            border-radius: 50px;
            overflow: visible;
            transition: all 0.3s ease;
            background: white;
            box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
        }
        .search-box:focus-within {
            border-color: #27ae60;
            box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
        }
        .search-input {
            flex: 1;
            border: none;
            padding: 16px 20px;
            font-size: 16px;
            outline: none;
            background: transparent;
        }
        .search-btn {
            background: #27ae60;
            color: white;
            border: none;
            padding: 0 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 16px;
            border-radius: 0 50px 50px 0;
        }
        .search-btn:hover {
            background: #219653;
        }
        .suggestions-box {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(46, 204, 113, 0.1);
            margin-top: 5px;
            max-height: 300px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
            border: 1px solid #e0f0e0;
        }
        .suggestion-item {
            padding: 12px 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #f1f8f1;
            transition: all 0.2s ease;
        }
        .suggestion-item:hover {
            background: #f8fcf8;
        }
        .platforms-container {
            margin-top: 25px;
        }
        .platforms-title {
            font-size: 14px;
            color: #7f8c8d;
            margin-bottom: 12px;
            text-align: left;
        }
        .platforms {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
        }
        .platform-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px 12px;
            border: none;
            border-radius: 6px;
            background: #f8fcf8;
            color: #2c3e50;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid #e0f0e0;
            font-size: 13px;
            height: 32px;
        }
        .platform-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(46, 204, 113, 0.1);
            background: #e8f5e8;
        }
        .platform-btn.selected {
            background: #27ae60;
            color: #fff;
            border-color: #27ae60;
            box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
        }
        .platform-btn.selected .platform-logo {
            filter: brightness(0) invert(1);
        }
        .platform-logo {
            width: 16px;
            height: 16px;
            margin-right: 6px;
            object-fit: contain;
        }
        .search-history {
            margin-top: 30px;
        }
        .history-title {
            font-size: 14px;
            color: #7f8c8d;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .clear-history {
            color: #27ae60;
            cursor: pointer;
            font-size: 13px;
        }
        .history-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .history-tag {
            background: #f8fcf8;
            padding: 6px 12px;
            border-radius: 50px;
            font-size: 14px;
            color: #2c3e50;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid #e0f0e0;
        }
        .history-tag:hover {
            background: #e8f5e8;
        }
     /* Path: fenlei.css */
        :root {
            --primary-color: #27ae60;
            --primary-light: #2ecc71;
            --primary-dark: #229954;
            --secondary-color: #2c3e50;
            --accent-color: #e74c3c;
            --light-bg: #f8f9fa;
            --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }
        .catalog-header {
            background: linear-gradient(135deg,#bff9c1, #26a69a);
            padding: 2rem 0;
            margin-bottom: 2rem;
            border-radius: 0 0 10px 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        .category-tabs-container {
            margin-bottom: 25px;
            background: white;
            border-radius: 10px;
            box-shadow: var(--card-shadow);
            overflow-x: auto;
            white-space: nowrap;
        }
        .category-tabs {
            display: flex;
            flex-wrap: nowrap;
            gap: 0;
            padding: 0;
            margin: 0;
            min-width: 100%;
            justify-content: space-evenly;
            flex-direction: row;
            align-content: center;
        }
        .category-tab {
            padding: 12px 20px;
            background: var(--light-bg);
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: var(--transition);
            border: none;
            border-right: 1px solid #e0e0e0;
            white-space: nowrap;
            text-align: center;
            min-width: 120px;
            display: block;
        }
        .category-tab:last-child {
            border-right: none;
        }
        .category-tab:hover {
            background: #e3f2e8;
        }
        .category-tab.active {
            background: var(--primary-color);
            color: white;
            box-shadow: inset 0 -3px 0 var(--primary-dark);
        }
        .category-content {
            display: none;
            margin-bottom: 30px;
        }
        .category-content.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }
        .category-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--light-bg);
            display: none;
        }
        .category-title {
            font-size: 22px;
            font-weight: 600;
            color: var(--secondary-color);
            margin: 0;
        }
        .website-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        .website-card {
            background: white;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            padding: 20px;
            transition: var(--transition);
            height: 100%;
            display: flex;
            flex-direction: column;
            border: 1px solid #eee;
            position: relative;
            overflow: hidden;
        }
        .website-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
            border-color: var(--primary-light);
        }
        .website-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        .website-logo {
            width: 30px;
            height: 30px;
            object-fit: contain;
            margin-right: 12px;
            border-radius: 8px;
            background: white;
            padding: 3px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        .website-name {
            font-size: 18px;
            font-weight: 600;
            color: var(--secondary-color);
            margin: 0;
            flex: 1;
        }
        .website-desc {
            font-size: 14px;
            color: #666;
            line-height: 1.5;
            margin-bottom: 15px;
            flex-grow: 1;
            max-height: 0;
            opacity: 0;
            transition: all 0.3s ease;
            overflow: hidden;
            text-align: left;
            transition: all 0.3s ease;
        }
        .website-card:hover .website-desc {
            max-height: 100px;
            opacity: 1;
            margin-bottom: 15px;
        }
        .website-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 15px;
        }
        .website-tag {
            background: #eafaf1;
            color: var(--primary-dark);
            padding: 4px 10px;
            border-radius: 50px;
            font-size: 12px;
            border: 1px solid #d5f5e3;
        }
        .website-link-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
            cursor: pointer;
        }
        .website-link-button {
            display: inline-flex;
            align-items: center;
            padding: 8px 16px;
             color: white;
            text-decoration: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            transition: var(--transition);
            width: fit-content;
            z-index: 2;
            position: relative;
        }
        .website-link-button:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
        }
        .website-link-button i {
            margin-right: 5px;
        }
        .more-link {
            text-align: center;
            margin-top: 30px;
        }
        .more-btn {
            display: inline-flex;
            align-items: center;
            padding: 10px 25px;
            background: white;
            color: var(--primary-color);
            text-decoration: none;
            border-radius: 50px;
            font-weight: 500;
            transition: var(--transition);
            border: 1px solid var(--primary-color);
        }
        .more-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
        }
        .more-btn i {
            margin-left: 5px;
            transition: var(--transition);
        }
        .more-btn:hover i {
            transform: translateX(3px);
        }
        #catalog {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 15px;
        }
        .view-count {
            display: inline-flex;
            align-items: center;
            background: #f8f9fa;
            color: #6c757d;
            padding: 3px 10px;
            border-radius: 50px;
            font-size: 12px;
            margin-left: 10px;
        }
        .view-count i {
            margin-right: 4px;
            color: var(--accent-color);
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        /* 响应式设计 */
        @media (max-width: 1200px) {
            .category-tab {
                min-width: 110px;
                padding: 10px 15px;
                font-size: 13px;
            }
        }
        @media (max-width: 992px) {
            .website-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
            .category-tab {
                min-width: 100px;
                padding: 8px 12px;
                font-size: 12px;
            }
        }
        @media (max-width: 768px) {
            .category-tabs {
                flex-wrap: wrap;
            }
            .category-tab {
                flex: 1;
                min-width: auto;
                border-right: 1px solid #e0e0e0;
                border-bottom: 1px solid #e0e0e0;
            }
            .website-grid {
                grid-template-columns: 1fr;
            }
            .catalog-header h2 {
                font-size: 24px;
            }
            .category-title {
                font-size: 20px;
            }
        }
/*  news  css*/
        .news-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
            max-width: 1300px;
            margin: 0 auto;
            padding: 20px;
        }
        .news-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .news-header h2 {
            font-size: 24px;
            font-weight: 600;
            color: #2c3e50;
        }
        .news-cards {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }
        .news-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            text-decoration: none;
            color: inherit;
            display: block;
        }
        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        }
        .card-white {
            background: white;
        }
        .card-light-green {
            background: #e8f5e9;
        }
        .card-purple {
            background: #f3e5f5;
        }
        .card-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }
        .card-content {
            padding: 16px;
        }
        .card-title {
            font-size: 16px;
            font-weight: 600;
            line-height: 1.4;
            margin-top: 10px;
        }
        .tools-section {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 12px;
            margin: 20px 0;
        }
        .tool-icon {
            width: 40px;
            height: 40px;
            padding: 10px;
            background: #e8f5e9;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        .tool-icon:hover {
            background: #c8e6c9;
        }
        .info-bar {
            background: #26a69a;
            color: white;
            border-radius: 12px;
            padding: 24px;
            text-align: center;
        }
        .info-content {
            max-width: 700px;
            margin: 0 auto 20px;
            line-height: 1.6;
        }
        .register-btn {
            background: white;
            color: #26a69a;
            border: none;
            padding: 12px 32px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }
        .register-btn:hover {
            background: #f5f5f5;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        @media (max-width: 900px) {
            .news-cards {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 600px) {
            .news-cards {
                grid-template-columns: 1fr;
            }
            .tools-section {
                align-items: center;
                flex-direction: row;
                justify-content: center;
            }
        }
        /*   首页样式css*/
        /* 分类导航容器样式 */
        .nav-container {
            position: relative;
            margin-bottom: 20px;
        }
        .nav-menu {
            display: flex;
            background: white;
            padding: 0 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        /* 隐藏滚动条 */
        .nav-menu::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }
        .nav-item {
            padding: 15px 20px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s;
            position: relative;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .nav-item.active {
            color: #2ecc71;
            font-weight: bold;
        }
        .nav-item.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20%;
            width: 60%;
            height: 3px;
            background-color: #2ecc71;
            border-radius: 3px 3px 0 0;
        }
        .nav-item:hover:not(.active) {
            color: #1abc9c;
        }
        /* 翻页按钮样式 */
        .nav-scroll-btn {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 40px;
            background: rgba(255, 255, 255, 0.8);
            border: none;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 20px;
            color: #666;
        }
        .nav-container:hover .nav-scroll-btn {
            opacity: 1;
        }
        .nav-scroll-btn:hover {
            background: rgba(255, 255, 255, 0.9);
            color: #333;
        }
        .nav-scroll-btn.prev {
            left: 0;
            border-radius: 6px 0 0 6px;
        }
        .nav-scroll-btn.next {
            right: 0;
            border-radius: 0 6px 6px 0;
        }
        .websites-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        .website-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .website-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        .card-header {
            display: flex;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #eee;
            justify-content: space-between;
        }
        .website-info {
            display: flex;
            align-items: center;
            flex: 1;
        }
        .website-logo {
            width: 40px;
            height: 40px;
            background-color: #f5f7fa;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            font-weight: bold;
            color: #2ecc71;
        }
        .website-name-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .website-name {
            font-size: 18px;
            font-weight: bold;
            margin-right: 12px;
        }
        .visit-count {
            display: flex;
            align-items: center;
            font-size: 12px;
            color: #888;
            white-space: nowrap;
        }
        .visit-count::before {
            content: '📊';
            margin-right: 4px;
            font-size: 14px;
        }
        .card-body {
            padding: 15px;
            position: relative;
        }
        .website-desc {
            color: #666;
            font-size: 14px;
            margin-bottom: 15px;
            line-height: 1.5;
            height: 42px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            transition: all 0.3s ease;
        }
        .website-card:hover .website-desc {
            height: auto;
            -webkit-line-clamp: unset;
            overflow: visible;
            background-color: white;
            z-index: 2;
            position: relative;
        }
        .website-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }
        .tag {
            background-color: #e8f0fe;
            color: #3498db;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
        }
        .tag.oversea {
            background-color: #fff0f0;
            color: #e74c3c;
        }
        .tag.domestic {
            background-color: #f0fff4;
            color: #2ecc71;
        }
        .tag.stock {
            background-color: #fffaf0;
            color: #f39c12;
        }
        .visit-btn {
            display: block;
            width: 100%;
            background-color: #2ecc71;
            color: white;
            text-align: center;
            padding: 10px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: bold;
            transition: background-color 0.3s;
            border: none;
            cursor: pointer;
        }
        .visit-btn:hover {
            background-color: #27ae60;
        }
        .error-message {
            background-color: #ffe6e6;
            color: #d63333;
            padding: 15px;
            border-radius: 6px;
            margin: 20px 0;
            text-align: center;
            display: none;
        }
        .solution-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 15px;
        }
        .solution-btn {
            background-color: #6c757d;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }
        .solution-btn:hover {
            background-color: #5a6268;
        }
        .no-data {
            text-align: center;
            padding: 40px;
            color: #888;
            font-size: 16px;
            grid-column: 1 / -1;
        }
        .loading {
            text-align: center;
            padding: 20px;
            color: #666;
        }
        .website-grid h2 {
            /* margin: 0 auto; */
            text-align: center;
            width: 100%;
            display: flex;
            flex-direction: row;
            justify-content: center;
        }

/* ===== 搜索框内平台下拉选择器 ===== */
.search-box {
    position: relative;
}

.platform-selector {
    position: relative;
    display: flex;
    align-items: stretch;
    border-right: 1px solid #e0f0e0;
    flex-shrink: 0;
    border-radius: 50px 0 0 50px;
    overflow: visible;
}

.selector-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    cursor: pointer;
    user-select: none;
    background: #f7fcf8;
    transition: background 0.2s ease;
    white-space: nowrap;
    border-radius: 50px 0 0 50px;
}

.selector-trigger:hover {
    background: #e8f5e9;
}

.selector-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
}

.selector-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 64px;
}

.selector-arrow {
    font-size: 10px;
    color: #7f8c8d;
    transition: transform 0.25s ease, color 0.25s ease;
    margin-left: 2px;
}

.platform-selector.open .selector-arrow {
    transform: rotate(180deg);
    color: #27ae60;
}

/* 下拉面板 */
.selector-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.15);
    border: 1px solid #e0f0e0;
    padding: 6px;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.platform-selector.open .selector-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.selector-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.selector-option i.fa-eye {
    width: 18px;
    text-align: center;
    color: #27ae60;
}

.selector-option-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
}

.selector-option:hover {
    background: #eafaf1;
    color: #1e8449;
}

.selector-option.active {
    background: #27ae60;
    color: #fff;
    font-weight: 600;
}

.selector-option.active .selector-option-logo,
.selector-option.active i.fa-eye {
    filter: brightness(10);
}

/* 搜索框聚焦态下的选择器边框对齐 */
.search-box:focus-within .platform-selector {
    border-color: transparent;
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .selector-trigger {
        padding: 0 12px;
    }
    .selector-name {
        font-size: 13px;
        min-width: auto;
    }
    .selector-dropdown {
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .platform-selector {
        border-right: none;
        border-bottom: 1px solid #e0f0e0;
        width: 100%;
    }
    .selector-trigger {
        justify-content: center;
        padding: 12px;
    }
    .selector-dropdown {
        top: calc(100% + 4px);
        left: 50%;
        transform: translateX(-50%) translateY(-6px);
    }
    .platform-selector.open .selector-dropdown {
        transform: translateX(-50%) translateY(0);
    }
}