/* 全局样式 */
:root {
    --primary-color: #ffffff;
    --secondary-color: #f5f5f5;
    --accent-color: #1e88e5;
    --text-color: #333333;
    --light-text: #666666;
    --border-color: #e6e6e6;
    --rank-bg: #f8f8f8;
    --rank-hot: #1e88e5;
    --rank-normal: #43a047;
    --rank-new: #7b1fa2;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    padding: 0 1rem;
    flex: 1;
}

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

/* 页眉 */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.header-time {
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo {
        margin-bottom: 0.5rem;
    }
}

/* 标签页 */
.tabs-container {
    display: flex;
    max-width: 800px;
    margin: 1rem auto 0;
    background-color: var(--primary-color);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 0.8rem 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-text);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.tab i {
    margin-right: 0.3rem;
}

/* 内容容器 */
.content-container {
    max-width: 800px;
    margin: 2rem auto 2rem;
    background-color: var(--primary-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1rem;
}

.tab-content {
    display: none;
}

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

/* 工具列表 */
.tool-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.tool-item:last-child {
    border-bottom: none;
}

.tool-rank {
    width: 24px;
    height: 24px;
    background-color: var(--rank-bg);
    color: var(--text-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.tool-item:nth-child(1) .tool-rank {
    background-color: var(--rank-hot);
    color: white;
}

.tool-item:nth-child(2) .tool-rank {
    background-color: var(--rank-normal);
    color: white;
}

.tool-item:nth-child(3) .tool-rank {
    background-color: var(--rank-new);
    color: white;
}

.tool-item:nth-child(4) .tool-rank {
    background-color: var(--rank-new);
    color: white;
}

.tool-info {
    flex: 1;
}

.tool-info h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.tool-info p {
    font-size: 0.8rem;
    color: var(--light-text);
}

.tool-link {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    border-radius: 50%;
    transition: var(--transition);
}

.tool-link:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

.tool-status {
    font-size: 0.75rem;
    color: var(--accent-color);
    background-color: rgba(30, 136, 229, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.coming-soon .tool-info h3,
.coming-soon .tool-info p {
    color: var(--light-text);
}

/* 更新信息 */
.update-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--light-text);
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.more-button {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
}

/* 占位文本 */
.placeholder-text {
    padding: 2rem;
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* 页脚 */
footer {
    background-color: var(--primary-color);
    text-align: center;
    padding: 1rem 0;
    color: var(--light-text);
    font-size: 0.8rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-block {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .tool-icon {
        margin: 0 auto 20px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
}
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 300;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .tools-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo h2,
    .footer-links h3,
    .footer-tools h3 {
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-tools h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}