* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #ffffff;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 700px;
    padding: 40px 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
    padding-bottom: 60px;
    animation: fadeIn 0.6s ease;
}

/* 返回链接 */
.back-link {
    margin-bottom: 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    color: #666;
    text-decoration: none;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #2c3e50;
    border-color: #2c3e50;
    transform: translateX(-3px);
}

/* 工具区域 */
.tools-section {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.page-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    font-weight: 300;
}

/* 工具列表 */
.tools-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #2c3e50;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tool-item:hover::before {
    transform: scaleY(1);
}

.tool-item:hover {
    background: #ffffff;
    border-color: #2c3e50;
    transform: translateX(5px);
}

.tool-item.coming-soon {
    opacity: 0.5;
    cursor: default;
}

.tool-item.coming-soon:hover {
    transform: none;
    border-color: #e9ecef;
    background: #f8f9fa;
}

.tool-item.coming-soon::before {
    display: none;
}

.tool-icon {
    font-size: 32px;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.tool-info h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.tool-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.footer p {
    margin: 5px 0;
    font-size: 13px;
    color: #999;
}

.footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #2c3e50;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .tool-item {
        padding: 16px;
    }
    
    .tool-icon {
        font-size: 28px;
        margin-right: 15px;
        min-width: 35px;
    }
    
    .tool-info h3 {
        font-size: 16px;
    }
    
    .tool-info p {
        font-size: 13px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .page-title {
        color: #ffffff;
    }
    
    .page-subtitle {
        color: #999;
    }
    
    .back-btn {
        color: #999;
        border-color: #3c3c3c;
    }
    
    .back-btn:hover {
        color: #ffffff;
        border-color: #e0e0e0;
    }
    
    .tool-item {
        background: #2c2c2c;
        border-color: #3c3c3c;
        color: #e0e0e0;
    }
    
    .tool-item:hover {
        background: #333333;
        border-color: #e0e0e0;
    }
    
    .tool-item::before {
        background: #e0e0e0;
    }
    
    .tool-info h3 {
        color: #ffffff;
    }
    
    .tool-info p {
        color: #999;
    }
    
    .footer {
        border-top-color: #3c3c3c;
    }
    
    .footer a:hover {
        color: #ffffff;
    }
}
