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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

/* Logo */
.logo {
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease;
    text-align: center;
}

.logo h1 {
    font-size: 56px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
}

.logo-text {
    font-size: 60px;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    gap: 0px;
}

/* 彩色中文字 - Google 风格 */
.chinese-z { color: #4285F4; }  /* 蓝色 */
.chinese-s { color: #EA4335; }  /* 红色 */

.logo-pinyin {
    display: flex;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0px;
    padding: 2px 0;
    margin-left: 10px;
    align-items: center;
    transition: all 0.3s ease;
    text-shadow: 0px 1px 2px rgba(0,0,0,0.1);
}

.logo-pinyin:hover {
    transform: translateY(-2px);
}

.pinyin-space {
    margin: 0 8px;
    display: inline-block;
}

/* 彩色拼音字母 - Google 风格 */
/* AI 部分 */
.pinyin-a { color: #4285F4; }  /* 蓝色 A */
.pinyin-i { color: #EA4335; }  /* 红色 I */

/* Search 部分 */
.pinyin-s { color: #FBBC04; }  /* 黄色 S */
.pinyin-e { color: #34A853; }  /* 绿色 e */
.pinyin-r { color: #4285F4; }  /* 蓝色 a */
.pinyin-c { color: #EA4335; }  /* 红色 r */
.pinyin-h { color: #FBBC04; }  /* 黄色 c */

.logo .subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* 搜索框 */
.search-box {
    position: relative;
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease;
}

#searchInput {
    width: 100%;
    padding: 16px 48px 16px 20px;
    font-size: 16px;
    border: none;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    outline: none;
    transition: all 0.3s ease;
    background: white;
    color: #1d1d1f;
}

#searchInput::placeholder {
    color: #999;
}

#searchInput:focus {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

#searchBtn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #007AFF;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* AI 模型选择器 */
.model-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 0 20px;
    animation: fadeInUp 0.6s ease;
}

/* 隐藏模型选择器 */
.model-selector.hidden {
    display: none !important;
}

.model-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.model-btn {
    padding: 8px 16px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.model-btn:hover {
    border-color: #007AFF;
    color: #007AFF;
}

.model-btn.active {
    background: #007AFF;
    color: white;
    border-color: #007AFF;
}

.model-icon {
    font-size: 14px;
}

/* 加载动画 */
.loading {
    margin: 30px 0;
    animation: fadeIn 0.3s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: #007AFF;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

.loading p {
    color: #666;
    font-size: 14px;
}

/* 搜索结果 */
.results {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: fadeInUp 0.5s ease;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8eb;
}

.results-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.results-header h2 {
    font-size: 20px;
    color: #1d1d1f;
    font-weight: 700;
    letter-spacing: -0.5px;
}

#resultsCount {
    font-size: 13px;
    color: #FFF;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.download-btn {
    padding: 10px 18px;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.results-list {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 48px;
    }
    
    .logo-pinyin {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo-title {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }
    
    .logo-text {
        font-size: 40px;
    }
    
    .logo-pinyin {
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .results-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .results-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .results-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

.result-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid #e8e8eb;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007AFF 0%, #00A8E8 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.result-item:hover {
    border-color: #007AFF;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
    transform: translateY(-4px);
}

.result-item:hover::before {
    transform: scaleX(1);
}

.result-item .tag {
    display: inline-block;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.result-item:hover .tag {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.result-item .tag.ai-recommend {
    background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
}

.result-item h3 {
    font-size: 17px;
    color: #1d1d1f;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

.result-item .url {
    font-size: 12px;
    color: #007AFF;
    margin-bottom: 10px;
    word-break: break-all;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.result-item:hover .url {
    opacity: 1;
}

.result-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* 加载更多容器 */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e7;
}

.load-more-container.hidden {
    display: none;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
}

.load-more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .load-more-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 热门推荐 */
.hot-sites {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: fadeInUp 0.7s ease;
}

.hot-sites h3 {
    font-size: 16px;
    color: #1d1d1f;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 600;
}

.hot-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 1200px) {
    .hot-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hot-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hot-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

.hot-item {
    background: #f5f5f7;
    padding: 16px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.hot-item:hover {
    background: #eeeff0;
    border-color: #d0d0d0;
}

.hot-item h4 {
    font-size: 14px;
    color: #1d1d1f;
    margin-bottom: 6px;
    font-weight: 600;
}

.hot-item p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 设置按钮 */
.settings-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 100;
}

.settings-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    font-size: 18px;
    color: #1d1d1f;
    font-weight: 600;
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f7;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
}

.close-btn:hover {
    background: #e8e8ea;
}

.modal-body {
    padding: 20px;
}

.modal-body label {
    display: block;
    font-size: 13px;
    color: #1d1d1f;
    margin-bottom: 6px;
    font-weight: 600;
}

.modal-body input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d5d5d7;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
    color: #1d1d1f;
}

.modal-body input::placeholder {
    color: #999;
}

.modal-body input:focus {
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.modal-body .hint {
    font-size: 12px;
    color: #666;
    margin: 10px 0 16px;
    line-height: 1.5;
}

.modal-body .hint a {
    color: #007AFF;
    text-decoration: none;
}

.save-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: #007AFF;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-btn:hover {
    background: #0051D5;
}

/* 工具类 */
.hidden {
    display: none !important;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 48px;
    }
    
    .hot-list {
        grid-template-columns: 1fr;
    }
    
    .settings-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}
