/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

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%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* 标题样式 */
h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

/* 副标题样式 */
.subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    border-radius: 2px;
}

/* 筛选控件样式 */
.filter-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color-light) var(--light-color);
}

/* 滚动条样式 */
.filter-container::-webkit-scrollbar {
    height: 6px;
}

.filter-container::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 3px;
}

.filter-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color-light);
    border-radius: 3px;
}

.filter-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

.filter-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    transition: transform 0.3s ease;
}

.filter-group:hover {
    transform: translateY(-2px);
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.filter-group:hover label {
    color: var(--primary-color);
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

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

.filter-group select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-group select option {
    padding: 1rem;
    background-color: white;
    color: var(--dark-color);
}

/* 重置按钮样式 */
#reset-button {
    align-self: flex-end;
    margin-top: auto;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--secondary-color), #6c757d);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#reset-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

#reset-button:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#reset-button:hover::before {
    left: 100%;
}

#reset-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 语音列表样式 */
.voice-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 语音卡片样式 */
.voice-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #e9ecef;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.voice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.voice-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.voice-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.voice-card .voice-info {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.voice-card .voice-info p {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 0.95rem;
    display: flex;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.voice-card .voice-info p:hover {
    color: var(--primary-color);
}

.voice-card .voice-info p strong {
    color: var(--secondary-color);
    min-width: 100px;
}

.voice-card .voice-info strong {
    color: #333;
}

/* 标签样式 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.tag {
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(0, 0, 0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.tag:hover::before {
    left: 100%;
}

.tag.gender-female {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
}

.tag.gender-female:hover {
    background: linear-gradient(135deg, #c82333, #d32f2f);
}

.tag.gender-male {
    background: linear-gradient(135deg, #17a2b8, #007bff);
    color: white;
}

.tag.gender-male:hover {
    background: linear-gradient(135deg, #138496, #0056b3);
}

.tag.multilingual {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.tag.multilingual:hover {
    background: linear-gradient(135deg, #218838, #17a682);
}

.tag.neural {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.tag.neural:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
}

.tag.scenario {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: var(--dark-color);
}

.tag.scenario:hover {
    background: linear-gradient(135deg, #e0a800, #e35e14);
}

.tag.personality {
    background: linear-gradient(135deg, #17a2b8, #00bcd4);
    color: white;
}

.tag.personality:hover {
    background: linear-gradient(135deg, #138496, #0097a7);
}

.tag.language {
    background: linear-gradient(135deg, #007bff, #6f42c1);
    color: white;
}

.tag.language:hover {
    background: linear-gradient(135deg, #0056b3, #5a32a3);
}

/* 语音详情区域样式 */
/* 辅助语言、语音场景和角色扮演标签特殊样式 */
.tag.style {
    background: linear-gradient(135deg, #17a2b8, #28a745);
    color: white;
}

.tag.style:hover {
    background: linear-gradient(135deg, #138496, #218838);
}

.tag.roleplay {
    background: linear-gradient(135deg, #e91e63, #ffc107);
    color: white;
}

.tag.roleplay:hover {
    background: linear-gradient(135deg, #c2185b, #e0a800);
}

/* 可展开区域样式 */
.expandable-section {
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    transition: all 0.3s ease;
    position: relative;
}

/* 为三个主要模块添加不同的顶部装饰条 */
.expandable-section:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #6f42c1);
}

.expandable-section:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #17a2b8, #28a745);
}

.expandable-section:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #e91e63, #ffc107);
}

.expandable-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.expandable-header {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    user-select: none;
    transition: background 0.3s ease;
}

.expandable-header:hover {
    background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, white 100%);
}

.expandable-header strong, .expandable-header h4 {
    margin: 0;
    color: #343a40;
    font-size: 1rem;
    font-weight: 600;
}

.expand-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0,123,255,0.1);
    color: #007bff;
    font-weight: bold;
    transition: all 0.3s ease;
}

.expandable-content {
    padding: 1rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

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

/* 标签容器样式 */
.style-tags, .roleplay-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1rem;
    }
    
    .filter-group label {
        min-width: auto;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    #reset-button {
        align-self: center;
        width: 100%;
        justify-content: center;
    }
    
    .voice-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .voice-card {
        padding: 1rem;
    }
    
    .voice-card h3 {
        font-size: 1.3rem;
    }
}

/* 无结果提示样式 */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
    border: 2px dashed #e9ecef;
    border-radius: var(--radius-lg);
    background-color: #f8f9fa;
    margin-bottom: 2rem;
}

.no-results p {
    margin-bottom: 1.5rem;
}

.no-results button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.no-results button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* 友情链接样式 */
.friend-links-section {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.friend-links-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.friend-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    border-radius: 2px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.friend-link {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.friend-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.1), transparent);
    transition: all 0.5s ease;
}

.friend-link:hover {
    background: linear-gradient(135deg, #007bff, #6f42c1);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.friend-link:hover::before {
    left: 100%;
}

.friend-links-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.friend-links-section a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}
